Blame | Last modification | View Log | RSS feed
#pragma onceusing namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System::Data;using namespace System::Drawing;namespace PluginManager {/// <summary>/// Summary for PackageInstalled////// WARNING: If you change the name of this class, you will need to change the/// 'Resource File Name' property for the managed resource compiler tool/// associated with all .resx files this class depends on. Otherwise,/// the designers will not be able to interact properly with localized/// resources associated with this form./// </summary>public ref class PackageInstalled : public System::Windows::Forms::Form{public:PackageInstalled(System::String ^title){InitializeComponent();this->Text = title;}ListViewItem ^AddPackage(System::String ^name, System::String ^author, System::String ^version, System::String ^status);ListViewItem ^AddPackageWithGroup(System::String ^name, System::String ^author, System::String ^version, System::String ^status, System::String ^group);void AdjustColumns();int PackageCount() { return ListPackages->Items->Count; }protected:/// <summary>/// Clean up any resources being used./// </summary>~PackageInstalled(){if (components){delete components;}}private: System::Windows::Forms::ListView^ ListPackages;protected:private: System::Windows::Forms::ColumnHeader^ columnHeader2;private: System::Windows::Forms::ColumnHeader^ columnHeader3;private: System::Windows::Forms::ColumnHeader^ columnHeader4;private: System::Windows::Forms::Panel^ panel1;private: System::Windows::Forms::Button^ ButExit;protected:protected:private:/// <summary>/// Required designer variable./// </summary>System::ComponentModel::Container ^components;#pragma region Windows Form Designer generated code/// <summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// </summary>void InitializeComponent(void){System::Windows::Forms::ColumnHeader^ columnHeader1;this->ListPackages = (gcnew System::Windows::Forms::ListView());this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());this->panel1 = (gcnew System::Windows::Forms::Panel());this->ButExit = (gcnew System::Windows::Forms::Button());columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());this->panel1->SuspendLayout();this->SuspendLayout();//// columnHeader1//columnHeader1->Text = L"Package";columnHeader1->Width = 160;//// ListPackages//this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(4) {columnHeader1, this->columnHeader2,this->columnHeader3, this->columnHeader4});this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;this->ListPackages->FullRowSelect = true;this->ListPackages->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;this->ListPackages->Location = System::Drawing::Point(0, 0);this->ListPackages->MultiSelect = false;this->ListPackages->Name = L"ListPackages";this->ListPackages->Size = System::Drawing::Size(555, 161);this->ListPackages->TabIndex = 0;this->ListPackages->UseCompatibleStateImageBehavior = false;this->ListPackages->View = System::Windows::Forms::View::Details;//// columnHeader2//this->columnHeader2->Text = L"Author";//// columnHeader3//this->columnHeader3->Text = L"Version";//// columnHeader4//this->columnHeader4->Text = L"Status";//// panel1//this->panel1->Controls->Add(this->ButExit);this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;this->panel1->Location = System::Drawing::Point(0, 161);this->panel1->Name = L"panel1";this->panel1->Size = System::Drawing::Size(555, 26);this->panel1->TabIndex = 1;//// ButExit//this->ButExit->DialogResult = System::Windows::Forms::DialogResult::OK;this->ButExit->Dock = System::Windows::Forms::DockStyle::Right;this->ButExit->Location = System::Drawing::Point(457, 0);this->ButExit->Name = L"ButExit";this->ButExit->Size = System::Drawing::Size(98, 26);this->ButExit->TabIndex = 0;this->ButExit->Text = L"Close";this->ButExit->UseVisualStyleBackColor = true;this->ButExit->Click += gcnew System::EventHandler(this, &PackageInstalled::button1_Click);//// PackageInstalled//this->AcceptButton = this->ButExit;this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;this->ClientSize = System::Drawing::Size(555, 187);this->ControlBox = false;this->Controls->Add(this->ListPackages);this->Controls->Add(this->panel1);this->Name = L"PackageInstalled";this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;this->Text = L"PackageInstalled";this->panel1->ResumeLayout(false);this->ResumeLayout(false);}#pragma endregionprivate: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {this->Close();}};}