Subversion Repositories spk

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#pragma once
2
 
3
using namespace System;
4
using namespace System::ComponentModel;
5
using namespace System::Collections;
6
using namespace System::Windows::Forms;
7
using namespace System::Data;
8
using namespace System::Drawing;
9
 
10
 
11
namespace PluginManager {
12
 
13
	/// <summary>
14
	/// Summary for PackageInstalled
15
	///
16
	/// WARNING: If you change the name of this class, you will need to change the
17
	///          'Resource File Name' property for the managed resource compiler tool
18
	///          associated with all .resx files this class depends on.  Otherwise,
19
	///          the designers will not be able to interact properly with localized
20
	///          resources associated with this form.
21
	/// </summary>
22
	public ref class PackageInstalled : public System::Windows::Forms::Form
23
	{
24
	public:
25
		PackageInstalled(System::String ^title)
26
		{
27
			InitializeComponent();
28
 
29
			this->Text = title;
30
		}
31
 
32
		ListViewItem ^AddPackage(System::String ^name, System::String ^author, System::String ^version, System::String ^status);
33
		ListViewItem ^AddPackageWithGroup(System::String ^name, System::String ^author, System::String ^version, System::String ^status, System::String ^group);
34
		void AdjustColumns();
35
 
36
		int PackageCount() { return ListPackages->Items->Count; }
37
 
38
	protected:
39
		/// <summary>
40
		/// Clean up any resources being used.
41
		/// </summary>
42
		~PackageInstalled()
43
		{
44
			if (components)
45
			{
46
				delete components;
47
			}
48
		}
49
	private: System::Windows::Forms::ListView^  ListPackages;
50
	protected: 
51
 
52
 
53
	private: System::Windows::Forms::ColumnHeader^  columnHeader2;
54
	private: System::Windows::Forms::ColumnHeader^  columnHeader3;
55
	private: System::Windows::Forms::ColumnHeader^  columnHeader4;
56
	private: System::Windows::Forms::Panel^  panel1;
57
	private: System::Windows::Forms::Button^  ButExit;
58
 
59
	protected: 
60
 
61
	protected: 
62
 
63
	private:
64
		/// <summary>
65
		/// Required designer variable.
66
		/// </summary>
67
		System::ComponentModel::Container ^components;
68
 
69
#pragma region Windows Form Designer generated code
70
		/// <summary>
71
		/// Required method for Designer support - do not modify
72
		/// the contents of this method with the code editor.
73
		/// </summary>
74
		void InitializeComponent(void)
75
		{
76
			System::Windows::Forms::ColumnHeader^  columnHeader1;
77
			this->ListPackages = (gcnew System::Windows::Forms::ListView());
78
			this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
79
			this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
80
			this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
81
			this->panel1 = (gcnew System::Windows::Forms::Panel());
82
			this->ButExit = (gcnew System::Windows::Forms::Button());
83
			columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
84
			this->panel1->SuspendLayout();
85
			this->SuspendLayout();
86
			// 
87
			// columnHeader1
88
			// 
89
			columnHeader1->Text = L"Package";
90
			columnHeader1->Width = 160;
91
			// 
92
			// ListPackages
93
			// 
94
			this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(4) {columnHeader1, this->columnHeader2, 
95
				this->columnHeader3, this->columnHeader4});
96
			this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;
97
			this->ListPackages->FullRowSelect = true;
98
			this->ListPackages->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
99
			this->ListPackages->Location = System::Drawing::Point(0, 0);
100
			this->ListPackages->MultiSelect = false;
101
			this->ListPackages->Name = L"ListPackages";
102
			this->ListPackages->Size = System::Drawing::Size(555, 161);
103
			this->ListPackages->TabIndex = 0;
104
			this->ListPackages->UseCompatibleStateImageBehavior = false;
105
			this->ListPackages->View = System::Windows::Forms::View::Details;
106
			// 
107
			// columnHeader2
108
			// 
109
			this->columnHeader2->Text = L"Author";
110
			// 
111
			// columnHeader3
112
			// 
113
			this->columnHeader3->Text = L"Version";
114
			// 
115
			// columnHeader4
116
			// 
117
			this->columnHeader4->Text = L"Status";
118
			// 
119
			// panel1
120
			// 
121
			this->panel1->Controls->Add(this->ButExit);
122
			this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
123
			this->panel1->Location = System::Drawing::Point(0, 161);
124
			this->panel1->Name = L"panel1";
125
			this->panel1->Size = System::Drawing::Size(555, 26);
126
			this->panel1->TabIndex = 1;
127
			// 
128
			// ButExit
129
			// 
130
			this->ButExit->DialogResult = System::Windows::Forms::DialogResult::OK;
131
			this->ButExit->Dock = System::Windows::Forms::DockStyle::Right;
132
			this->ButExit->Location = System::Drawing::Point(457, 0);
133
			this->ButExit->Name = L"ButExit";
134
			this->ButExit->Size = System::Drawing::Size(98, 26);
135
			this->ButExit->TabIndex = 0;
136
			this->ButExit->Text = L"Close";
137
			this->ButExit->UseVisualStyleBackColor = true;
138
			this->ButExit->Click += gcnew System::EventHandler(this, &PackageInstalled::button1_Click);
139
			// 
140
			// PackageInstalled
141
			// 
142
			this->AcceptButton = this->ButExit;
143
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
144
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
145
			this->ClientSize = System::Drawing::Size(555, 187);
146
			this->ControlBox = false;
147
			this->Controls->Add(this->ListPackages);
148
			this->Controls->Add(this->panel1);
149
			this->Name = L"PackageInstalled";
150
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
151
			this->Text = L"PackageInstalled";
152
			this->panel1->ResumeLayout(false);
153
			this->ResumeLayout(false);
154
 
155
		}
156
#pragma endregion
157
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
158
				 this->Close();
159
			 }
160
};
161
}