public delegate void UpdateTaskList(TaskInfo step);//声明一个更新主线程的委托 //绑定工作人员卡和内镜卡 public void AddTaskList(TaskInfo info) { try { EXListView iTaskList = TaskList[info.Group]; if (iTaskList.InvokeRequired) { UpdateTaskList updatedelegate = new UpdateTaskList(AddTaskList); ParentForm.Invoke(updatedelegate, new object[] { info }); } else { iTaskList.BeginUpdate(); //movie EXListViewItem item = new EXListViewItem(info.Card); string cardname = ""; string workName = info.CleanWorker; if (Cardlist.ContainsKey(info.Card)) { cardname = Cardlist[info.Card]; } if (Cardlist.ContainsKey(info.CleanWorker)) { workName = Cardlist[info.CleanWorker]; } item.SubItems.Add(cardname); item.SubItems.Add(workName); item.SubItems.Add(info.errorInfo); for (int i = 4; i < iTaskList.Columns.Count; i++) { EXControlListViewSubItem cs = new EXControlListViewSubItem(); SkinProgressBar b = new SkinProgressBar(); b.TextFormat = SkinProgressBar.TxtFormat.None; b.Tag = item; b.Minimum = 0; b.Maximum = 100; b.Step = 1; item.SubItems.Add(cs); iTaskList.AddControlToSubItem(b, cs); } iTaskList.Items.Add(item); EXControlListViewSubItem subitem = item.SubItems[info.Step + 3] as EXControlListViewSubItem; SkinProgressBar p = subitem.MyControl as SkinProgressBar; p.Maximum = info.Time * 10; Thread th = new Thread(new ParameterizedThreadStart(UpdateProgressBarMethod)); th.IsBackground = true; th.Start(p); iTaskList.EndUpdate(); } } catch (Exception ex) { LogHelper.WriteLog(typeof(Exception), ex); } }
public void Init(Dictionary <string, List <StepInfo> > infolist) { try { int txtheight = 16; int height = ParentForm.Size.Height / infolist.Count - txtheight; int icount = 0; foreach (var item in infolist) { SkinLabel tt = new SkinLabel(); tt.Location = new Point(0, icount * height + txtheight * icount); tt.Size = new Size(200, txtheight); tt.Text = item.Key; ParentForm.Controls.Add(tt); EXListView iTaskList = new EXListView(); ImageList image = new ImageList(); image.ImageSize = new Size(24, 24);//这边设置宽和高 iTaskList.SmallImageList = image; iTaskList.MySortBrush = SystemBrushes.ControlLight; iTaskList.MyHighlightBrush = Brushes.Goldenrod; iTaskList.GridLines = true; iTaskList.Location = new Point(0, icount * height + txtheight * (icount + 1)); iTaskList.Size = new Size(ParentForm.Size.Width, height - 3); iTaskList.ControlPadding = 4; int colwidth = (ParentForm.Size.Width) / (item.Value.Count + 4); iTaskList.Columns.Add(new EXEditableColumnHeader("内镜编号", colwidth)); iTaskList.Columns.Add(new EXEditableColumnHeader("内镜名称", colwidth)); iTaskList.Columns.Add(new EXEditableColumnHeader("洗消人员", colwidth)); iTaskList.Columns.Add(new EXEditableColumnHeader("消息", colwidth)); foreach (StepInfo info in item.Value) { iTaskList.Columns.Add(new EXColumnHeader(info.name, colwidth)); } TxtList.Add(item.Key, tt); TaskList.Add(item.Key, iTaskList); ParentForm.Controls.Add(iTaskList); icount++; } } catch (Exception ex) { LogHelper.WriteLog(typeof(Exception), ex); } }
public void SizeChange() { int icount = 0; int height = ParentForm.Size.Height / TaskList.Count; foreach (var item in TaskList) { EXListView iTaskList = item.Value; iTaskList.Location = new Point(0, icount * height); iTaskList.Size = new Size(ParentForm.Size.Width, height - 3); int colwidth = (ParentForm.Size.Width) / iTaskList.Columns.Count - 1; foreach (ColumnHeader ch in iTaskList.Columns) { ch.Width = colwidth; } icount++; } }
//开始清洗工作并开始计时 public void StartTask(TaskInfo info) { try { EXListView iTaskList = TaskList[info.Group]; if (iTaskList.InvokeRequired) { UpdateTaskList updatedelegate = new UpdateTaskList(StartTask); ParentForm.Invoke(updatedelegate, new object[] { info }); } else { ListViewItem foundItem = iTaskList.FindItemWithText(info.Card, true, 0); //参数1:要查找的文本;参数2:是否子项也要查找;参数3:开始查找位置 { foundItem.SubItems[3].Text = info.errorInfo; } if (info.bStart) { if (info.Step > 1) { EXControlListViewSubItem Stopsubitem = foundItem.SubItems[info.Step + 2] as EXControlListViewSubItem; SkinProgressBar Stopp = Stopsubitem.MyControl as SkinProgressBar; progressList.Add(Stopp); } EXControlListViewSubItem subitem = foundItem.SubItems[info.Step + 3] as EXControlListViewSubItem; SkinProgressBar p = subitem.MyControl as SkinProgressBar; p.Maximum = info.Time * 10; Thread th = new Thread(new ParameterizedThreadStart(UpdateProgressBarMethod)); th.IsBackground = true; th.Start(p); } } } catch (Exception ex) { LogHelper.WriteLog(typeof(Exception), ex); } }
public void Endupdate(TaskInfo info) { EXListView iTaskList = TaskList[info.Group]; if (iTaskList.InvokeRequired) { UpdateTaskList updatedelegate = new UpdateTaskList(Endupdate); ParentForm.Invoke(updatedelegate, new object[] { info }); } else { ListViewItem foundItem = iTaskList.FindItemWithText(info.Card, false, 0); //参数1:要查找的文本;参数2:是否子项也要查找;参数3:开始查找位置 for (int i = 4; i < iTaskList.Columns.Count; i++) { EXControlListViewSubItem subitem = foundItem.SubItems[i] as EXControlListViewSubItem; iTaskList.RemoveControlFromSubItem(subitem); } iTaskList.Items.Remove(foundItem); } }
public void SizeChange() { int icount = 0; int txtheight = 16; int height = ParentForm.Size.Height / TaskList.Count - txtheight; foreach (var item in TaskList) { SkinLabel tt = TxtList[item.Key]; tt.Location = new Point(0, icount * height + txtheight * icount); tt.Size = new Size(200, txtheight); EXListView iTaskList = item.Value; iTaskList.Location = new Point(0, icount * height + txtheight * (icount + 1)); iTaskList.Size = new Size(ParentForm.Size.Width, height - 3); int colwidth = (ParentForm.Size.Width) / iTaskList.Columns.Count - 1; foreach (ColumnHeader ch in iTaskList.Columns) { ch.Width = colwidth; } icount++; } }
private void EndTask(TaskInfo info) { EXListView iTaskList = TaskList[info.Group]; ListViewItem foundItem = iTaskList.FindItemWithText(info.Card, true, 0); //参数1:要查找的文本;参数2:是否子项也要查找;参数3:开始查找位置 }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SSHTransfer)); this.grpFiles = new System.Windows.Forms.GroupBox(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tpSimple = new System.Windows.Forms.TabPage(); this.lblLocalFile = new System.Windows.Forms.Label(); this.btnBrowse = new System.Windows.Forms.Button(); this.txtLocalFile = new System.Windows.Forms.TextBox(); this.lblRemoteFile = new System.Windows.Forms.Label(); this.txtRemoteFile = new System.Windows.Forms.TextBox(); this.tpFull = new System.Windows.Forms.TabPage(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.btnLocalBrowserGo = new System.Windows.Forms.Button(); this.txtLocalBrowserPath = new System.Windows.Forms.TextBox(); this.lvLocalBrowser = new EXControls.EXListView(); this.clmLFBIcon = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.clmName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.clSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.splitContainer3 = new System.Windows.Forms.SplitContainer(); this.btnRemoteList = new System.Windows.Forms.Button(); this.txtRemoteFolderPath = new System.Windows.Forms.TextBox(); this.lvSSHFileBrowser = new EXControls.EXListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.grpConnection = new System.Windows.Forms.GroupBox(); this.radProtSFTP = new System.Windows.Forms.RadioButton(); this.radProtSCP = new System.Windows.Forms.RadioButton(); this.lblProtocol = new System.Windows.Forms.Label(); this.lblPassword = new System.Windows.Forms.Label(); this.lblUser = new System.Windows.Forms.Label(); this.lblPort = new System.Windows.Forms.Label(); this.lblHost = new System.Windows.Forms.Label(); this.txtPort = new System.Windows.Forms.TextBox(); this.txtHost = new System.Windows.Forms.TextBox(); this.txtPassword = new System.Windows.Forms.TextBox(); this.txtUser = new System.Windows.Forms.TextBox(); this.btnTransfer = new System.Windows.Forms.Button(); this.pbStatus = new System.Windows.Forms.ProgressBar(); this.grpFiles.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tpSimple.SuspendLayout(); this.tpFull.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); this.splitContainer3.Panel1.SuspendLayout(); this.splitContainer3.Panel2.SuspendLayout(); this.splitContainer3.SuspendLayout(); this.grpConnection.SuspendLayout(); this.SuspendLayout(); // // grpFiles // this.grpFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grpFiles.Controls.Add(this.tabControl1); this.grpFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.grpFiles.Location = new System.Drawing.Point(12, 153); this.grpFiles.Name = "grpFiles"; this.grpFiles.Size = new System.Drawing.Size(976, 480); this.grpFiles.TabIndex = 2000; this.grpFiles.TabStop = false; this.grpFiles.Text = "Files"; // // tabControl1 // this.tabControl1.Controls.Add(this.tpSimple); this.tabControl1.Controls.Add(this.tpFull); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl1.Location = new System.Drawing.Point(3, 16); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(970, 461); this.tabControl1.TabIndex = 51; this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); // // tpSimple // this.tpSimple.Controls.Add(this.lblLocalFile); this.tpSimple.Controls.Add(this.btnBrowse); this.tpSimple.Controls.Add(this.txtLocalFile); this.tpSimple.Controls.Add(this.lblRemoteFile); this.tpSimple.Controls.Add(this.txtRemoteFile); this.tpSimple.Location = new System.Drawing.Point(4, 22); this.tpSimple.Name = "tpSimple"; this.tpSimple.Padding = new System.Windows.Forms.Padding(3); this.tpSimple.Size = new System.Drawing.Size(962, 435); this.tpSimple.TabIndex = 0; this.tpSimple.Text = Language.SSHTransfer_ApplyLanguage_Simple; this.tpSimple.UseVisualStyleBackColor = true; // // lblLocalFile // this.lblLocalFile.AutoSize = true; this.lblLocalFile.Location = new System.Drawing.Point(6, 28); this.lblLocalFile.Name = "lblLocalFile"; this.lblLocalFile.Size = new System.Drawing.Size(52, 13); this.lblLocalFile.TabIndex = 10; this.lblLocalFile.Text = "Local file:"; // // btnBrowse // this.btnBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnBrowse.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBrowse.Location = new System.Drawing.Point(800, 24); this.btnBrowse.Name = "btnBrowse"; this.btnBrowse.Size = new System.Drawing.Size(81, 23); this.btnBrowse.TabIndex = 30; this.btnBrowse.Text = "Browse"; this.btnBrowse.UseVisualStyleBackColor = true; this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click); // // txtLocalFile // this.txtLocalFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtLocalFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtLocalFile.Location = new System.Drawing.Point(91, 26); this.txtLocalFile.Name = "txtLocalFile"; this.txtLocalFile.Size = new System.Drawing.Size(703, 20); this.txtLocalFile.TabIndex = 20; // // lblRemoteFile // this.lblRemoteFile.AutoSize = true; this.lblRemoteFile.Location = new System.Drawing.Point(6, 54); this.lblRemoteFile.Name = "lblRemoteFile"; this.lblRemoteFile.Size = new System.Drawing.Size(63, 13); this.lblRemoteFile.TabIndex = 40; this.lblRemoteFile.Text = "Remote file:"; // // txtRemoteFile // this.txtRemoteFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtRemoteFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtRemoteFile.Location = new System.Drawing.Point(91, 52); this.txtRemoteFile.Name = "txtRemoteFile"; this.txtRemoteFile.Size = new System.Drawing.Size(790, 20); this.txtRemoteFile.TabIndex = 50; // // tpFull // this.tpFull.Controls.Add(this.splitContainer1); this.tpFull.Location = new System.Drawing.Point(4, 22); this.tpFull.Name = "tpFull"; this.tpFull.Padding = new System.Windows.Forms.Padding(3); this.tpFull.Size = new System.Drawing.Size(962, 435); this.tpFull.TabIndex = 1; this.tpFull.Text = Language.SSHTransfer_ApplyLanguage_Full; this.tpFull.UseVisualStyleBackColor = true; // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(3, 3); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); this.splitContainer1.Size = new System.Drawing.Size(956, 429); this.splitContainer1.SplitterDistance = 455; this.splitContainer1.TabIndex = 0; // // splitContainer2 // this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainer2.Location = new System.Drawing.Point(0, 0); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer2.Panel1 // this.splitContainer2.Panel1.Controls.Add(this.btnLocalBrowserGo); this.splitContainer2.Panel1.Controls.Add(this.txtLocalBrowserPath); // // splitContainer2.Panel2 // this.splitContainer2.Panel2.Controls.Add(this.lvLocalBrowser); this.splitContainer2.Size = new System.Drawing.Size(455, 429); this.splitContainer2.SplitterDistance = 31; this.splitContainer2.TabIndex = 0; // // btnLocalBrowserGo // this.btnLocalBrowserGo.Anchor = System.Windows.Forms.AnchorStyles.Right; this.btnLocalBrowserGo.Location = new System.Drawing.Point(384, 2); this.btnLocalBrowserGo.Name = "btnLocalBrowserGo"; this.btnLocalBrowserGo.Size = new System.Drawing.Size(68, 27); this.btnLocalBrowserGo.TabIndex = 1; this.btnLocalBrowserGo.Text = "List"; this.btnLocalBrowserGo.UseVisualStyleBackColor = true; this.btnLocalBrowserGo.Click += new System.EventHandler(this.btnLocalBrowserGo_Click); // // txtLocalBrowserPath // this.txtLocalBrowserPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.txtLocalBrowserPath.Location = new System.Drawing.Point(3, 6); this.txtLocalBrowserPath.Name = "txtLocalBrowserPath"; this.txtLocalBrowserPath.Size = new System.Drawing.Size(375, 20); this.txtLocalBrowserPath.TabIndex = 0; // // lvLocalBrowser // this.lvLocalBrowser.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.clmLFBIcon, this.clmName, this.clSize}); this.lvLocalBrowser.ControlPadding = 4; this.lvLocalBrowser.Dock = System.Windows.Forms.DockStyle.Fill; this.lvLocalBrowser.FullRowSelect = true; this.lvLocalBrowser.Location = new System.Drawing.Point(0, 0); this.lvLocalBrowser.Name = "lvLocalBrowser"; this.lvLocalBrowser.OwnerDraw = true; this.lvLocalBrowser.Size = new System.Drawing.Size(455, 394); this.lvLocalBrowser.TabIndex = 0; this.lvLocalBrowser.UseCompatibleStateImageBehavior = false; this.lvLocalBrowser.View = System.Windows.Forms.View.Details; this.lvLocalBrowser.ItemActivate += new System.EventHandler(this.lvLocalBrowser_ItemActivate); this.lvLocalBrowser.SelectedIndexChanged += new System.EventHandler(this.lvLocalBrowser_SelectedIndexChanged); this.lvLocalBrowser.Click += new System.EventHandler(this.lvLocalBrowser_Click); this.lvLocalBrowser.MouseClick += new System.Windows.Forms.MouseEventHandler(this.lvLocalBrowser_MouseClick); this.lvLocalBrowser.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lvLocalBrowser_MouseDoubleClick); // // clmLFBIcon // this.clmLFBIcon.Text = ""; this.clmLFBIcon.Width = 20; // // clmName // this.clmName.Text = "Name"; // // clSize // this.clSize.Text = "Size"; // // splitContainer3 // this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainer3.Location = new System.Drawing.Point(0, 0); this.splitContainer3.Name = "splitContainer3"; this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer3.Panel1 // this.splitContainer3.Panel1.Controls.Add(this.btnRemoteList); this.splitContainer3.Panel1.Controls.Add(this.txtRemoteFolderPath); // // splitContainer3.Panel2 // this.splitContainer3.Panel2.Controls.Add(this.lvSSHFileBrowser); this.splitContainer3.Size = new System.Drawing.Size(497, 429); this.splitContainer3.SplitterDistance = 32; this.splitContainer3.TabIndex = 1; // // btnRemoteList // this.btnRemoteList.Anchor = System.Windows.Forms.AnchorStyles.Right; this.btnRemoteList.Location = new System.Drawing.Point(426, 2); this.btnRemoteList.Name = "btnRemoteList"; this.btnRemoteList.Size = new System.Drawing.Size(68, 27); this.btnRemoteList.TabIndex = 3; this.btnRemoteList.Text = "List"; this.btnRemoteList.UseVisualStyleBackColor = true; this.btnRemoteList.Click += new System.EventHandler(this.button1_Click); // // txtRemoteFolderPath // this.txtRemoteFolderPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.txtRemoteFolderPath.Location = new System.Drawing.Point(3, 6); this.txtRemoteFolderPath.Name = "txtRemoteFolderPath"; this.txtRemoteFolderPath.Size = new System.Drawing.Size(417, 20); this.txtRemoteFolderPath.TabIndex = 2; this.txtRemoteFolderPath.Text = "/"; // // lvSSHFileBrowser // this.lvSSHFileBrowser.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3}); this.lvSSHFileBrowser.ControlPadding = 4; this.lvSSHFileBrowser.Dock = System.Windows.Forms.DockStyle.Fill; this.lvSSHFileBrowser.FullRowSelect = true; this.lvSSHFileBrowser.Location = new System.Drawing.Point(0, 0); this.lvSSHFileBrowser.Name = "lvSSHFileBrowser"; this.lvSSHFileBrowser.OwnerDraw = true; this.lvSSHFileBrowser.Size = new System.Drawing.Size(497, 393); this.lvSSHFileBrowser.TabIndex = 1; this.lvSSHFileBrowser.UseCompatibleStateImageBehavior = false; this.lvSSHFileBrowser.View = System.Windows.Forms.View.Details; this.lvSSHFileBrowser.ItemActivate += new System.EventHandler(this.lvSSHFileBrowser_ItemActivate); this.lvSSHFileBrowser.Click += new System.EventHandler(this.lvSSHFileBrowser_Click); this.lvSSHFileBrowser.MouseClick += new System.Windows.Forms.MouseEventHandler(this.lvSSHFileBrowser_MouseClick_1); this.lvSSHFileBrowser.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lvSSHFileBrowser_MouseClick); // // columnHeader1 // this.columnHeader1.Text = ""; this.columnHeader1.Width = 20; // // columnHeader2 // this.columnHeader2.Text = "Name"; // // columnHeader3 // this.columnHeader3.Text = "Size"; // // grpConnection // this.grpConnection.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grpConnection.Controls.Add(this.radProtSFTP); this.grpConnection.Controls.Add(this.radProtSCP); this.grpConnection.Controls.Add(this.lblProtocol); this.grpConnection.Controls.Add(this.lblPassword); this.grpConnection.Controls.Add(this.lblUser); this.grpConnection.Controls.Add(this.lblPort); this.grpConnection.Controls.Add(this.lblHost); this.grpConnection.Controls.Add(this.txtPort); this.grpConnection.Controls.Add(this.txtHost); this.grpConnection.Controls.Add(this.txtPassword); this.grpConnection.Controls.Add(this.txtUser); this.grpConnection.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.grpConnection.Location = new System.Drawing.Point(12, 12); this.grpConnection.Name = "grpConnection"; this.grpConnection.Size = new System.Drawing.Size(976, 135); this.grpConnection.TabIndex = 1000; this.grpConnection.TabStop = false; this.grpConnection.Text = "Connection"; // // radProtSFTP // this.radProtSFTP.AutoSize = true; this.radProtSFTP.Checked = true; this.radProtSFTP.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.radProtSFTP.Location = new System.Drawing.Point(153, 103); this.radProtSFTP.Name = "radProtSFTP"; this.radProtSFTP.Size = new System.Drawing.Size(51, 17); this.radProtSFTP.TabIndex = 110; this.radProtSFTP.TabStop = true; this.radProtSFTP.Text = "SFTP"; this.radProtSFTP.UseVisualStyleBackColor = true; this.radProtSFTP.CheckedChanged += new System.EventHandler(this.radProtSFTP_CheckedChanged); // // radProtSCP // this.radProtSCP.AutoSize = true; this.radProtSCP.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.radProtSCP.Location = new System.Drawing.Point(92, 103); this.radProtSCP.Name = "radProtSCP"; this.radProtSCP.Size = new System.Drawing.Size(45, 17); this.radProtSCP.TabIndex = 100; this.radProtSCP.Text = "SCP"; this.radProtSCP.UseVisualStyleBackColor = true; // // lblProtocol // this.lblProtocol.AutoSize = true; this.lblProtocol.Location = new System.Drawing.Point(20, 105); this.lblProtocol.Name = "lblProtocol"; this.lblProtocol.Size = new System.Drawing.Size(49, 13); this.lblProtocol.TabIndex = 90; this.lblProtocol.Text = "Protocol:"; // // lblPassword // this.lblPassword.AutoSize = true; this.lblPassword.Location = new System.Drawing.Point(20, 79); this.lblPassword.Name = "lblPassword"; this.lblPassword.Size = new System.Drawing.Size(56, 13); this.lblPassword.TabIndex = 70; this.lblPassword.Text = "Password:"******"lblUser"; this.lblUser.Size = new System.Drawing.Size(32, 13); this.lblUser.TabIndex = 50; this.lblUser.Text = "User:"******"lblPort"; this.lblPort.Size = new System.Drawing.Size(29, 13); this.lblPort.TabIndex = 30; this.lblPort.Text = "Port:"; // // lblHost // this.lblHost.AutoSize = true; this.lblHost.Location = new System.Drawing.Point(20, 27); this.lblHost.Name = "lblHost"; this.lblHost.Size = new System.Drawing.Size(32, 13); this.lblHost.TabIndex = 10; this.lblHost.Text = "Host:"; // // txtPort // this.txtPort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.txtPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtPort.Location = new System.Drawing.Point(925, 25); this.txtPort.Name = "txtPort"; this.txtPort.Size = new System.Drawing.Size(30, 20); this.txtPort.TabIndex = 40; // // txtHost // this.txtHost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtHost.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtHost.Location = new System.Drawing.Point(105, 25); this.txtHost.Name = "txtHost"; this.txtHost.Size = new System.Drawing.Size(779, 20); this.txtHost.TabIndex = 20; // // txtPassword // this.txtPassword.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtPassword.Location = new System.Drawing.Point(105, 77); this.txtPassword.Name = "txtPassword"; this.txtPassword.PasswordChar = '*'; this.txtPassword.Size = new System.Drawing.Size(779, 20); this.txtPassword.TabIndex = 80; // // txtUser // this.txtUser.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtUser.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtUser.Location = new System.Drawing.Point(105, 51); this.txtUser.Name = "txtUser"; this.txtUser.Size = new System.Drawing.Size(779, 20); this.txtUser.TabIndex = 60; // // btnTransfer // this.btnTransfer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnTransfer.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnTransfer.Image = global::My.Resources.Resources.SSHTransfer; this.btnTransfer.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnTransfer.Location = new System.Drawing.Point(905, 668); this.btnTransfer.Name = "btnTransfer"; this.btnTransfer.Size = new System.Drawing.Size(83, 29); this.btnTransfer.TabIndex = 10000; this.btnTransfer.Text = Language.SSHTransfer_Upload_Transfer; this.btnTransfer.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btnTransfer.UseVisualStyleBackColor = true; this.btnTransfer.Click += new System.EventHandler(this.btnTransfer_Click); // // pbStatus // this.pbStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pbStatus.Location = new System.Drawing.Point(12, 639); this.pbStatus.Name = "pbStatus"; this.pbStatus.Size = new System.Drawing.Size(976, 23); this.pbStatus.TabIndex = 3000; // // SSHTransfer // this.ClientSize = new System.Drawing.Size(1000, 709); this.Controls.Add(this.grpFiles); this.Controls.Add(this.grpConnection); this.Controls.Add(this.btnTransfer); this.Controls.Add(this.pbStatus); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "SSHTransfer"; this.TabText = "SSH File Transfer"; this.Text = "SSH File Transfer"; this.Load += new System.EventHandler(this.SSHTransfer_Load); this.grpFiles.ResumeLayout(false); this.tabControl1.ResumeLayout(false); this.tpSimple.ResumeLayout(false); this.tpSimple.PerformLayout(); this.tpFull.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel1.PerformLayout(); this.splitContainer2.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); this.splitContainer2.ResumeLayout(false); this.splitContainer3.Panel1.ResumeLayout(false); this.splitContainer3.Panel1.PerformLayout(); this.splitContainer3.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); this.splitContainer3.ResumeLayout(false); this.grpConnection.ResumeLayout(false); this.grpConnection.PerformLayout(); this.ResumeLayout(false); }
public MainForm(string[] args) { if (args != null) { bool verbose = false; for (int i = 0; i < args.Length; i++) { if (args[i].Equals("-v")) { verbose = true; } } if (verbose) { SpringCard.LibCs.SystemConsole.Show(); } } InitializeComponent(); if ((Screen.PrimaryScreen.Bounds.Width <= 1200) || (Screen.PrimaryScreen.Bounds.Height < 800)) { WindowState = FormWindowState.Maximized; } FileVersionInfo info = FileVersionInfo.GetVersionInfo(Application.ExecutablePath); Text = Text + " v." + info.ProductVersion; Settings.Load(); lvReaders = new EXListView(); pMain.Controls.Add(lvReaders); lvReaders.AllowColumnReorder = false; lvReaders.AutoArrange = false; lvReaders.AutoSize = false; lvReaders.Dock = DockStyle.Fill; lvReaders.FullRowSelect = true; lvReaders.HeaderStyle = ColumnHeaderStyle.None; lvReaders.MyHighlightBrush = new SolidBrush(Color.FromArgb(240, 240, 240)); lvReaders.MultiSelect = false; lvReaders.SmallImageList = readerImages; lvReaders.ContextMenuStrip = readerPopupMenu; lvReaders.ShowItemToolTips = true; lvReaders.ShowGroups = true; EXColumnHeader col; col = new EXColumnHeader("", 20); lvReaders.Columns.Add(col); col = new EXColumnHeader("Reader Name", 355); lvReaders.Columns.Add(col); col = new EXColumnHeader("", 20); lvReaders.Columns.Add(col); col = new EXColumnHeader("Status", 145); lvReaders.Columns.Add(col); col = new EXColumnHeader("Card ATR", lvReaders.ClientRectangle.Width - 560); lvReaders.Columns.Add(col); lvReaders.SelectedIndexChanged += new System.EventHandler(LvReaderSelectedIndexChanged); lvReaders.DoubleClick += new System.EventHandler(LvReaderDoubleClicked); lvReaders.KeyPress += new System.Windows.Forms.KeyPressEventHandler(LvReaderKeyPress); foreach (Control control in Controls) { SetHintHandler(control); } }
private void init() { System.Net.ServicePointManager.MaxServicePoints = Int32.MaxValue; System.Net.ServicePointManager.DefaultConnectionLimit = Int32.MaxValue; System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; try { txtLink.Text = Setting.Instance.Link; txtSavePath.Text = Setting.Instance.SavePath; cbDownloadAllPage.Checked = Setting.Instance.AllPage; cbSubDirectory.Checked = Setting.Instance.SubDirectory; cbIgnoreSmallImage.Checked = Setting.Instance.IgnoreSmallImage; cbCreateDirByThreadName.Checked = Setting.Instance.CreateDirByThreadName; nrMaxImageInSubDirectory.Value = Setting.Instance.MaxImageInSubDirectory; nrNumberThreads.Value = Setting.Instance.NumberThreads; nrFormPage.Value = Setting.Instance.FromPage; nrToPage.Value = Setting.Instance.ToPage; } catch { } if (string.IsNullOrEmpty(txtSavePath.Text)) { txtSavePath.Text = Path.Combine(Application.StartupPath, "Images"); } if (!string.IsNullOrEmpty(Setting.Instance.Cookies)) { btnLogin.Enabled = false; btnLogin.Text = "Đang đăng nhập"; var vozClient = new NextVozClient(Setting.Instance.Cookies); Task.Run(async() => { try { await vozClient.Login(Setting.Instance.Cookies); this.Invoke((Action)(() => { btnLogin.Enabled = true; btnLogin.Text = "Đăng xuất"; })); } catch { this.Invoke((Action)(() => { btnLogin.Enabled = true; btnLogin.Text = "Đăng nhập"; })); } }); } btnLogin.Enabled = string.IsNullOrEmpty(Setting.Instance.Cookies); _downloader = new NextVozDownloadImage(); if (!string.IsNullOrEmpty(Setting.Instance.Link)) { linkChanged(); } SetDoubleBuffered(this.lvDownloadProcess); EXListView lv = new EXListView(); lv.Location = lvDownloadProcess.Location; lv.Width = lvDownloadProcess.Width; lv.Height = lvDownloadProcess.Height; lv.Anchor = lvDownloadProcess.Anchor; this.Controls.Remove(lvDownloadProcess); this.Controls.Add(lv); lv.Columns.Add("Link", 450); lv.Columns.Add("Process", 300); Status.Init(lbStatus, lbTotalDownloaded, lbTotalSize); DownloadProcess.Init(lv); }
private void InitializeComponent() { //imglst_genre ImageList imglst_genre = new ImageList(); imglst_genre.ColorDepth = ColorDepth.Depth32Bit; imglst_genre.Images.Add(Image.FromFile("music.png")); imglst_genre.Images.Add(Image.FromFile("love.png")); imglst_genre.Images.Add(Image.FromFile("comedy.png")); imglst_genre.Images.Add(Image.FromFile("drama.png")); imglst_genre.Images.Add(Image.FromFile("horror.ico")); imglst_genre.Images.Add(Image.FromFile("family.ico")); //excmbx_genre EXComboBox excmbx_genre = new EXComboBox(); excmbx_genre.DropDownStyle = ComboBoxStyle.DropDownList; excmbx_genre.MyHighlightBrush = Brushes.Goldenrod; excmbx_genre.ItemHeight = 20; excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[0], "Music")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[1], "Romantic")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[2], "Comedy")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[3], "Drama")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[4], "Horror")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[5], "Family")); excmbx_genre.Items.Add(new EXComboBox.EXMultipleImagesItem(new ArrayList(new object[] { Image.FromFile("love.png"), Image.FromFile("comedy.png") }), "Romantic comedy")); //excmbx_rate EXComboBox excmbx_rate = new EXComboBox(); excmbx_rate.MyHighlightBrush = Brushes.Goldenrod; excmbx_rate.DropDownStyle = ComboBoxStyle.DropDownList; ImageList imglst_rate = new ImageList(); imglst_rate.ColorDepth = ColorDepth.Depth32Bit; imglst_rate.Images.Add(Image.FromFile("rate.png")); for (int i = 1; i < 6; i++) { ArrayList _arlst1 = new ArrayList(); for (int j = 0; j < i; j++) { _arlst1.Add(imglst_rate.Images[0]); } excmbx_rate.Items.Add(new EXComboBox.EXMultipleImagesItem("", _arlst1, i.ToString())); } //lstv lstv = new EXListView(); lstv.MySortBrush = SystemBrushes.ControlLight; lstv.MyHighlightBrush = Brushes.Goldenrod; lstv.GridLines = true; lstv.Location = new Point(10, 40); lstv.Size = new Size(500, 400); lstv.ControlPadding = 4; lstv.MouseMove += new MouseEventHandler(lstv_MouseMove); lstv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); //add SmallImageList to ListView - images will be shown in ColumnHeaders ImageList colimglst = new ImageList(); colimglst.Images.Add("down", Image.FromFile("down.png")); colimglst.Images.Add("up", Image.FromFile("up.png")); colimglst.ColorDepth = ColorDepth.Depth32Bit; colimglst.ImageSize = new Size(20, 20); // this will affect the row height lstv.SmallImageList = colimglst; //add columns and items lstv.Columns.Add(new EXEditableColumnHeader("Movie", 20)); lstv.Columns.Add(new EXColumnHeader("Progress", 120)); lstv.Columns.Add(new EXEditableColumnHeader("Genre", excmbx_genre, 60)); lstv.Columns.Add(new EXEditableColumnHeader("Rate", excmbx_rate, 100)); lstv.Columns.Add(new EXColumnHeader("Status", 80)); EXBoolColumnHeader boolcol = new EXBoolColumnHeader("Conclusion", 80); boolcol.Editable = true; boolcol.TrueImage = Image.FromFile("true.png"); boolcol.FalseImage = Image.FromFile("false.png"); lstv.Columns.Add(boolcol); lstv.BeginUpdate(); for (int i = 0; i < 100; i++) { //movie EXListViewItem item = new EXListViewItem(i.ToString()); EXControlListViewSubItem cs = new EXControlListViewSubItem(); ProgressBar b = new ProgressBar(); b.Tag = item; b.Minimum = 0; b.Maximum = 1000; b.Step = 1; item.SubItems.Add(cs); lstv.AddControlToSubItem(b, cs); //genre item.SubItems.Add(new EXMultipleImagesListViewSubItem(new ArrayList(new object[] { imglst_genre.Images[1], imglst_genre.Images[2] }), "Romantic comedy")); //rate item.SubItems.Add(new EXMultipleImagesListViewSubItem(new ArrayList(new object[] { imglst_rate.Images[0] }), "1")); //cancel and resume EXControlListViewSubItem cs1 = new EXControlListViewSubItem(); LinkLabel llbl = new LinkLabel(); llbl.Text = "Start"; llbl.Tag = cs; llbl.LinkClicked += new LinkLabelLinkClickedEventHandler(llbl_LinkClicked); item.SubItems.Add(cs1); lstv.AddControlToSubItem(llbl, cs1); //conclusion item.SubItems.Add(new EXBoolListViewSubItem(true)); lstv.Items.Add(item); } lstv.EndUpdate(); //statusstrip1 statusstrip1.Items.AddRange(new ToolStripItem[] { toolstripstatuslabel1 }); //btn btn.Location = new Point(10, 450); btn.Text = "Remove Control"; btn.AutoSize = true; btn.Click += new EventHandler(btn_Click); //btn2 btn2.Location = new Point(btn.Right + 20, 450); btn2.Text = "Remove Image"; btn2.AutoSize = true; btn2.Click += new EventHandler(btn2_Click); //this this.ClientSize = new Size(520, 510); this.Controls.Add(statusstrip1); Label lbl = new Label(); lbl.Text = "Doubleclick on the subitems to edit..."; lbl.Bounds = new Rectangle(10, 10, 480, 20); this.Controls.Add(lbl); this.Controls.Add(lstv); this.Controls.Add(btn); this.Controls.Add(btn2); }
public MainForm(string[] args) { if (args != null) { bool verbose = false; for (int i = 0; i < args.Length; i++) { if (args[i].Equals("-v")) { verbose = true; } } if (verbose) { SpringCard.LibCs.SystemConsole.Show(); } } InitializeComponent(); Settings.Load(); lvReaders = new EXListView(); pMain.Controls.Add(lvReaders); lvReaders.AllowColumnReorder = false; lvReaders.AutoArrange = false; lvReaders.AutoSize = false; lvReaders.Dock = DockStyle.Fill; lvReaders.FullRowSelect = true; lvReaders.HeaderStyle = ColumnHeaderStyle.None; lvReaders.MyHighlightBrush = new SolidBrush(Color.FromArgb(240, 240, 240)); lvReaders.MultiSelect = false; lvReaders.SmallImageList = readerImages; lvReaders.ContextMenuStrip = readerPopupMenu; lvReaders.ShowItemToolTips = true; lvReaders.ShowGroups = true; EXColumnHeader col; col = new EXColumnHeader("", 20); lvReaders.Columns.Add(col); col = new EXColumnHeader("Reader Name", 255); lvReaders.Columns.Add(col); col = new EXColumnHeader("", 20); lvReaders.Columns.Add(col); col = new EXColumnHeader("Status", 145); lvReaders.Columns.Add(col); col = new EXColumnHeader("Card ATR", lvReaders.ClientRectangle.Width - 460); lvReaders.Columns.Add(col); lvReaders.SelectedIndexChanged += new System.EventHandler(LvReaderSelectedIndexChanged); lvReaders.DoubleClick += new System.EventHandler(LvReaderDoubleClicked); lvReaders.KeyPress += new System.Windows.Forms.KeyPressEventHandler(LvReaderKeyPress); foreach (Control control in Controls) { SetHintHandler(control); } }
private void InitializeComponent() { //imglst_genre ImageList imglst_genre = new ImageList(); imglst_genre.ColorDepth = ColorDepth.Depth32Bit; imglst_genre.Images.Add(Image.FromFile("music.png")); imglst_genre.Images.Add(Image.FromFile("love.png")); imglst_genre.Images.Add(Image.FromFile("comedy.png")); imglst_genre.Images.Add(Image.FromFile("drama.png")); imglst_genre.Images.Add(Image.FromFile("horror.ico")); imglst_genre.Images.Add(Image.FromFile("family.ico")); //excmbx_genre EXComboBox excmbx_genre = new EXComboBox(); excmbx_genre.DropDownStyle = ComboBoxStyle.DropDownList; excmbx_genre.MyHighlightBrush = Brushes.Goldenrod; excmbx_genre.ItemHeight = 20; excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[0], "Music")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[1], "Romantic")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[2], "Comedy")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[3], "Drama")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[4], "Horror")); excmbx_genre.Items.Add(new EXComboBox.EXImageItem(imglst_genre.Images[5], "Family")); excmbx_genre.Items.Add(new EXComboBox.EXMultipleImagesItem(new ArrayList(new object[] {Image.FromFile("love.png"), Image.FromFile("comedy.png")}), "Romantic comedy")); //excmbx_rate EXComboBox excmbx_rate = new EXComboBox(); excmbx_rate.MyHighlightBrush = Brushes.Goldenrod; excmbx_rate.DropDownStyle = ComboBoxStyle.DropDownList; ImageList imglst_rate = new ImageList(); imglst_rate.ColorDepth = ColorDepth.Depth32Bit; imglst_rate.Images.Add(Image.FromFile("rate.png")); for (int i = 1; i < 6; i++) { ArrayList _arlst1 = new ArrayList(); for (int j = 0; j < i; j++) { _arlst1.Add(imglst_rate.Images[0]); } excmbx_rate.Items.Add(new EXComboBox.EXMultipleImagesItem("", _arlst1, i.ToString())); } //lstv lstv = new EXListView(); lstv.MySortBrush = SystemBrushes.ControlLight; lstv.MyHighlightBrush = Brushes.Goldenrod; lstv.GridLines = true; lstv.Location = new Point(10, 40); lstv.Size = new Size(500, 400); lstv.ControlPadding = 4; lstv.MouseMove += new MouseEventHandler(lstv_MouseMove); lstv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); //add SmallImageList to ListView - images will be shown in ColumnHeaders ImageList colimglst = new ImageList(); colimglst.Images.Add("down", Image.FromFile("down.png")); colimglst.Images.Add("up", Image.FromFile("up.png")); colimglst.ColorDepth = ColorDepth.Depth32Bit; colimglst.ImageSize = new Size(20, 20); // this will affect the row height lstv.SmallImageList = colimglst; //add columns and items lstv.Columns.Add(new EXEditableColumnHeader("Movie", 20)); lstv.Columns.Add(new EXColumnHeader("Progress", 120)); lstv.Columns.Add(new EXEditableColumnHeader("Genre", excmbx_genre, 60)); lstv.Columns.Add(new EXEditableColumnHeader("Rate", excmbx_rate, 100)); lstv.Columns.Add(new EXColumnHeader("Status", 80)); EXBoolColumnHeader boolcol = new EXBoolColumnHeader("Conclusion", 80); boolcol.Editable = true; boolcol.TrueImage = Image.FromFile("true.png"); boolcol.FalseImage = Image.FromFile("false.png"); lstv.Columns.Add(boolcol); lstv.BeginUpdate(); for (int i = 0; i < 100; i++) { //movie EXListViewItem item = new EXListViewItem(i.ToString()); EXControlListViewSubItem cs = new EXControlListViewSubItem(); ProgressBar b = new ProgressBar(); b.Tag = item; b.Minimum = 0; b.Maximum = 1000; b.Step = 1; item.SubItems.Add(cs); lstv.AddControlToSubItem(b, cs); //genre item.SubItems.Add(new EXMultipleImagesListViewSubItem(new ArrayList(new object[] {imglst_genre.Images[1], imglst_genre.Images[2]}), "Romantic comedy")); //rate item.SubItems.Add(new EXMultipleImagesListViewSubItem(new ArrayList(new object[] {imglst_rate.Images[0]}), "1")); //cancel and resume EXControlListViewSubItem cs1 = new EXControlListViewSubItem(); LinkLabel llbl = new LinkLabel(); llbl.Text = "Start"; llbl.Tag = cs; llbl.LinkClicked += new LinkLabelLinkClickedEventHandler(llbl_LinkClicked); item.SubItems.Add(cs1); lstv.AddControlToSubItem(llbl, cs1); //conclusion item.SubItems.Add(new EXBoolListViewSubItem(true)); lstv.Items.Add(item); } lstv.EndUpdate(); //statusstrip1 statusstrip1.Items.AddRange(new ToolStripItem[] {toolstripstatuslabel1}); //btn btn.Location = new Point(10, 450); btn.Text = "Remove Control"; btn.AutoSize = true; btn.Click += new EventHandler(btn_Click); //btn2 btn2.Location = new Point(btn.Right + 20, 450); btn2.Text = "Remove Image"; btn2.AutoSize = true; btn2.Click += new EventHandler(btn2_Click); //this this.ClientSize = new Size(520, 510); this.Controls.Add(statusstrip1); Label lbl = new Label(); lbl.Text = "Doubleclick on the subitems to edit..."; lbl.Bounds = new Rectangle(10, 10, 480, 20); this.Controls.Add(lbl); this.Controls.Add(lstv); this.Controls.Add(btn); this.Controls.Add(btn2); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.btnGCNCreate = new System.Windows.Forms.Button(); this.btnGCNCancel = new System.Windows.Forms.Button(); this.lvGCNGrid = new EXListView(); this.label1 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.textBox4 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.textBox6 = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.textBox7 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.textBox8 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btnGCNCreate // this.btnGCNCreate.Location = new System.Drawing.Point(529, 584); this.btnGCNCreate.Name = "btnGCNCreate"; this.btnGCNCreate.Size = new System.Drawing.Size(75, 23); this.btnGCNCreate.TabIndex = 16; this.btnGCNCreate.Text = "Appliquer"; this.btnGCNCreate.UseVisualStyleBackColor = true; this.btnGCNCreate.Click += new System.EventHandler(this.BtnGCNCreateClick); // // btnGCNCancel // this.btnGCNCancel.Location = new System.Drawing.Point(12, 584); this.btnGCNCancel.Name = "btnGCNCancel"; this.btnGCNCancel.Size = new System.Drawing.Size(75, 23); this.btnGCNCancel.TabIndex = 15; this.btnGCNCancel.Text = "Fermer"; this.btnGCNCancel.UseVisualStyleBackColor = true; this.btnGCNCancel.Click += new System.EventHandler(this.BtnGCNCancelClick); // // lvGCNGrid // this.lvGCNGrid.ControlPadding = 4; this.lvGCNGrid.FullRowSelect = true; this.lvGCNGrid.GridLines = true; this.lvGCNGrid.Location = new System.Drawing.Point(12, 96); this.lvGCNGrid.Name = "lvGCNGrid"; this.lvGCNGrid.OwnerDraw = true; this.lvGCNGrid.Size = new System.Drawing.Size(592, 364); this.lvGCNGrid.TabIndex = 14; this.lvGCNGrid.UseCompatibleStateImageBehavior = false; this.lvGCNGrid.View = System.Windows.Forms.View.Details; // // label1 // this.label1.Location = new System.Drawing.Point(23, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 23); this.label1.TabIndex = 17; this.label1.Text = "Dimanche"; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(23, 36); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(54, 20); this.textBox1.TabIndex = 18; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(86, 36); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(54, 20); this.textBox2.TabIndex = 20; // // label2 // this.label2.Location = new System.Drawing.Point(86, 9); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(54, 23); this.label2.TabIndex = 19; this.label2.Text = "Lundi"; // // textBox3 // this.textBox3.Location = new System.Drawing.Point(149, 36); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(54, 20); this.textBox3.TabIndex = 22; // // label3 // this.label3.Location = new System.Drawing.Point(149, 9); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(54, 23); this.label3.TabIndex = 21; this.label3.Text = "Mardi"; // // textBox4 // this.textBox4.Location = new System.Drawing.Point(212, 36); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(54, 20); this.textBox4.TabIndex = 24; // // label4 // this.label4.Location = new System.Drawing.Point(212, 9); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(54, 23); this.label4.TabIndex = 23; this.label4.Text = "Mercredi"; // // textBox5 // this.textBox5.Location = new System.Drawing.Point(275, 36); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(54, 20); this.textBox5.TabIndex = 26; // // label5 // this.label5.Location = new System.Drawing.Point(275, 9); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(54, 23); this.label5.TabIndex = 25; this.label5.Text = "Jeudi"; // // textBox6 // this.textBox6.Location = new System.Drawing.Point(338, 36); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(54, 20); this.textBox6.TabIndex = 28; // // label6 // this.label6.Location = new System.Drawing.Point(338, 9); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(54, 23); this.label6.TabIndex = 27; this.label6.Text = "Vendredi"; // // textBox7 // this.textBox7.Location = new System.Drawing.Point(401, 36); this.textBox7.Name = "textBox7"; this.textBox7.Size = new System.Drawing.Size(54, 20); this.textBox7.TabIndex = 30; // // label7 // this.label7.Location = new System.Drawing.Point(401, 9); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(54, 23); this.label7.TabIndex = 29; this.label7.Text = "Samedi"; // // label8 // this.label8.Location = new System.Drawing.Point(23, 70); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(306, 23); this.label8.TabIndex = 31; this.label8.Text = "heure serveur"; // // textBox8 // this.textBox8.Location = new System.Drawing.Point(12, 466); this.textBox8.Multiline = true; this.textBox8.Name = "textBox8"; this.textBox8.ReadOnly = true; this.textBox8.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.textBox8.Size = new System.Drawing.Size(592, 112); this.textBox8.TabIndex = 32; // // button1 // this.button1.Location = new System.Drawing.Point(361, 584); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 33; this.button1.Text = "Recharger"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.Button1Click); // // button2 // this.button2.Location = new System.Drawing.Point(191, 584); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 34; this.button2.Text = "Supprimer"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.Button2Click); // // PQCheckHMI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(616, 618); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.textBox8); this.Controls.Add(this.label8); this.Controls.Add(this.textBox7); this.Controls.Add(this.label7); this.Controls.Add(this.textBox6); this.Controls.Add(this.label6); this.Controls.Add(this.textBox5); this.Controls.Add(this.label5); this.Controls.Add(this.textBox4); this.Controls.Add(this.label4); this.Controls.Add(this.textBox3); this.Controls.Add(this.label3); this.Controls.Add(this.textBox2); this.Controls.Add(this.label2); this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Controls.Add(this.btnGCNCreate); this.Controls.Add(this.btnGCNCancel); this.Controls.Add(this.lvGCNGrid); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "PQCheckHMI"; this.Text = "PQCheckHMI"; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.lvGCNListGroup = new EXListView(); this.btnGCNGDelete = new System.Windows.Forms.Button(); this.btnGCNGToggle = new System.Windows.Forms.Button(); this.btnGCNGUpdate = new System.Windows.Forms.Button(); this.btnGCNGMap = new System.Windows.Forms.Button(); this.SuspendLayout(); // // lvGCNListGroup // this.lvGCNListGroup.ControlPadding = 4; this.lvGCNListGroup.FullRowSelect = true; this.lvGCNListGroup.GridLines = true; this.lvGCNListGroup.Location = new System.Drawing.Point(12, 79); this.lvGCNListGroup.Name = "lvGCNListGroup"; this.lvGCNListGroup.OwnerDraw = true; this.lvGCNListGroup.Size = new System.Drawing.Size(613, 516); this.lvGCNListGroup.TabIndex = 2; this.lvGCNListGroup.UseCompatibleStateImageBehavior = false; this.lvGCNListGroup.View = System.Windows.Forms.View.Details; // // btnGCNGDelete // this.btnGCNGDelete.Location = new System.Drawing.Point(12, 12); this.btnGCNGDelete.Name = "btnGCNGDelete"; this.btnGCNGDelete.Size = new System.Drawing.Size(278, 23); this.btnGCNGDelete.TabIndex = 3; this.btnGCNGDelete.Text = "btnGCNGDelete"; this.btnGCNGDelete.UseVisualStyleBackColor = true; this.btnGCNGDelete.Click += new System.EventHandler(this.BtnGCNGDeleteClick); // // btnGCNGToggle // this.btnGCNGToggle.Location = new System.Drawing.Point(12, 41); this.btnGCNGToggle.Name = "btnGCNGToggle"; this.btnGCNGToggle.Size = new System.Drawing.Size(278, 23); this.btnGCNGToggle.TabIndex = 4; this.btnGCNGToggle.Text = "btnGCNGToggle"; this.btnGCNGToggle.UseVisualStyleBackColor = true; this.btnGCNGToggle.Click += new System.EventHandler(this.BtnGCNGToggleClick); // // btnGCNGUpdate // this.btnGCNGUpdate.Location = new System.Drawing.Point(347, 12); this.btnGCNGUpdate.Name = "btnGCNGUpdate"; this.btnGCNGUpdate.Size = new System.Drawing.Size(278, 23); this.btnGCNGUpdate.TabIndex = 5; this.btnGCNGUpdate.Text = "btnGCNGUpdate"; this.btnGCNGUpdate.UseVisualStyleBackColor = true; this.btnGCNGUpdate.Click += new System.EventHandler(this.BtnGCNGUpdateClick); // // btnGCNGMap // this.btnGCNGMap.Location = new System.Drawing.Point(347, 41); this.btnGCNGMap.Name = "btnGCNGMap"; this.btnGCNGMap.Size = new System.Drawing.Size(278, 23); this.btnGCNGMap.TabIndex = 6; this.btnGCNGMap.Text = "btnGCNGMap"; this.btnGCNGMap.UseVisualStyleBackColor = true; this.btnGCNGMap.Click += new System.EventHandler(this.BtnGCNGMapClick); // // NotificationGroup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(637, 612); this.Controls.Add(this.btnGCNGMap); this.Controls.Add(this.btnGCNGUpdate); this.Controls.Add(this.btnGCNGToggle); this.Controls.Add(this.btnGCNGDelete); this.Controls.Add(this.lvGCNListGroup); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NotificationGroup"; this.Text = "NotificationGroup"; this.ResumeLayout(false); this.btnGCNGDelete.TabIndex = 3; this.btnGCNGDelete.Text = "btnGCNGDelete"; this.btnGCNGDelete.UseVisualStyleBackColor = true; // // btnGCNGToggle // this.btnGCNGToggle.Location = new System.Drawing.Point(12, 41); this.btnGCNGToggle.Name = "btnGCNGToggle"; this.btnGCNGToggle.Size = new System.Drawing.Size(278, 23); this.btnGCNGToggle.TabIndex = 4; this.btnGCNGToggle.Text = "btnGCNGToggle"; this.btnGCNGToggle.UseVisualStyleBackColor = true; // // btnGCNGUpdate // this.btnGCNGUpdate.Location = new System.Drawing.Point(347, 12); this.btnGCNGUpdate.Name = "btnGCNGUpdate"; this.btnGCNGUpdate.Size = new System.Drawing.Size(278, 23); this.btnGCNGUpdate.TabIndex = 5; this.btnGCNGUpdate.Text = "btnGCNGUpdate"; this.btnGCNGUpdate.UseVisualStyleBackColor = true; // // btnGCNGMap // this.btnGCNGMap.Location = new System.Drawing.Point(347, 41); this.btnGCNGMap.Name = "btnGCNGMap"; this.btnGCNGMap.Size = new System.Drawing.Size(278, 23); this.btnGCNGMap.TabIndex = 6; this.btnGCNGMap.Text = "btnGCNGMap"; this.btnGCNGMap.UseVisualStyleBackColor = true; // // NotificationGroup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(637, 612); this.Controls.Add(this.btnGCNGMap); this.Controls.Add(this.btnGCNGUpdate); this.Controls.Add(this.btnGCNGToggle); this.Controls.Add(this.btnGCNGDelete); this.Controls.Add(this.lvGCNListGroup); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NotificationGroup"; this.Text = "NotificationGroup"; this.ResumeLayout(false); }
public static void Init(EXListView lv) { _lv = lv; }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.lvGCNGrid = new EXListView(); this.lblGCNNom = new System.Windows.Forms.Label(); this.tbGCNName = new System.Windows.Forms.TextBox(); this.tbGCNRadius = new System.Windows.Forms.TextBox(); this.lblGCNRadius = new System.Windows.Forms.Label(); this.lblGCNEmail = new System.Windows.Forms.Label(); this.lblGCNGrid = new System.Windows.Forms.Label(); this.tbGCNCenter = new System.Windows.Forms.TextBox(); this.lblGCNCentre = new System.Windows.Forms.Label(); this.btnGCNMap = new System.Windows.Forms.Button(); this.tbGCNAllCoords = new System.Windows.Forms.TextBox(); this.btnGCNCancel = new System.Windows.Forms.Button(); this.btnGCNCreate = new System.Windows.Forms.Button(); this.cbGCNEmails = new System.Windows.Forms.ComboBox(); this.SuspendLayout(); // // lvGCNGrid // this.lvGCNGrid.ControlPadding = 4; this.lvGCNGrid.FullRowSelect = true; this.lvGCNGrid.GridLines = true; this.lvGCNGrid.Location = new System.Drawing.Point(119, 111); this.lvGCNGrid.Name = "lvGCNGrid"; this.lvGCNGrid.OwnerDraw = true; this.lvGCNGrid.Size = new System.Drawing.Size(376, 372); this.lvGCNGrid.TabIndex = 1; this.lvGCNGrid.UseCompatibleStateImageBehavior = false; this.lvGCNGrid.View = System.Windows.Forms.View.Details; // // lblGCNNom // this.lblGCNNom.Location = new System.Drawing.Point(13, 515); this.lblGCNNom.Name = "lblGCNNom"; this.lblGCNNom.Size = new System.Drawing.Size(178, 23); this.lblGCNNom.TabIndex = 2; this.lblGCNNom.Text = "#nom"; // // tbGCNName // this.tbGCNName.Location = new System.Drawing.Point(197, 515); this.tbGCNName.Name = "tbGCNName"; this.tbGCNName.Size = new System.Drawing.Size(264, 20); this.tbGCNName.TabIndex = 3; this.tbGCNName.Text = "MGMN"; // // tbGCNRadius // this.tbGCNRadius.Location = new System.Drawing.Point(197, 489); this.tbGCNRadius.Name = "tbGCNRadius"; this.tbGCNRadius.Size = new System.Drawing.Size(264, 20); this.tbGCNRadius.TabIndex = 5; this.tbGCNRadius.Text = "20"; // // lblGCNRadius // this.lblGCNRadius.Location = new System.Drawing.Point(13, 489); this.lblGCNRadius.Name = "lblGCNRadius"; this.lblGCNRadius.Size = new System.Drawing.Size(178, 23); this.lblGCNRadius.TabIndex = 4; this.lblGCNRadius.Text = "#rayon"; // // lblGCNEmail // this.lblGCNEmail.Location = new System.Drawing.Point(12, 542); this.lblGCNEmail.Name = "lblGCNEmail"; this.lblGCNEmail.Size = new System.Drawing.Size(178, 23); this.lblGCNEmail.TabIndex = 6; this.lblGCNEmail.Text = "#email"; // // lblGCNGrid // this.lblGCNGrid.Location = new System.Drawing.Point(13, 85); this.lblGCNGrid.Name = "lblGCNGrid"; this.lblGCNGrid.Size = new System.Drawing.Size(353, 23); this.lblGCNGrid.TabIndex = 7; this.lblGCNGrid.Text = "#type"; // // tbGCNCenter // this.tbGCNCenter.Location = new System.Drawing.Point(118, 9); this.tbGCNCenter.Name = "tbGCNCenter"; this.tbGCNCenter.Size = new System.Drawing.Size(218, 20); this.tbGCNCenter.TabIndex = 9; // // lblGCNCentre // this.lblGCNCentre.Location = new System.Drawing.Point(12, 9); this.lblGCNCentre.Name = "lblGCNCentre"; this.lblGCNCentre.Size = new System.Drawing.Size(100, 23); this.lblGCNCentre.TabIndex = 8; this.lblGCNCentre.Text = "#centre"; // // btnGCNMap // this.btnGCNMap.Location = new System.Drawing.Point(342, 6); this.btnGCNMap.Name = "btnGCNMap"; this.btnGCNMap.Size = new System.Drawing.Size(24, 24); this.btnGCNMap.TabIndex = 10; this.btnGCNMap.UseVisualStyleBackColor = true; this.btnGCNMap.Click += new System.EventHandler(this.BtnGCNMapClick); // // tbGCNAllCoords // this.tbGCNAllCoords.Location = new System.Drawing.Point(118, 35); this.tbGCNAllCoords.Multiline = true; this.tbGCNAllCoords.Name = "tbGCNAllCoords"; this.tbGCNAllCoords.ReadOnly = true; this.tbGCNAllCoords.Size = new System.Drawing.Size(248, 49); this.tbGCNAllCoords.TabIndex = 11; // // btnGCNCancel // this.btnGCNCancel.Location = new System.Drawing.Point(13, 599); this.btnGCNCancel.Name = "btnGCNCancel"; this.btnGCNCancel.Size = new System.Drawing.Size(75, 23); this.btnGCNCancel.TabIndex = 12; this.btnGCNCancel.Text = "#cancel"; this.btnGCNCancel.UseVisualStyleBackColor = true; this.btnGCNCancel.Click += new System.EventHandler(this.BtnGCNCancelClick); // // btnGCNCreate // this.btnGCNCreate.Location = new System.Drawing.Point(420, 599); this.btnGCNCreate.Name = "btnGCNCreate"; this.btnGCNCreate.Size = new System.Drawing.Size(75, 23); this.btnGCNCreate.TabIndex = 13; this.btnGCNCreate.Text = "#valider"; this.btnGCNCreate.UseVisualStyleBackColor = true; this.btnGCNCreate.Click += new System.EventHandler(this.BtnGCNCreateClick); // // cbGCNEmails // this.cbGCNEmails.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbGCNEmails.FormattingEnabled = true; this.cbGCNEmails.Location = new System.Drawing.Point(197, 542); this.cbGCNEmails.Name = "cbGCNEmails"; this.cbGCNEmails.Size = new System.Drawing.Size(264, 21); this.cbGCNEmails.TabIndex = 14; // // NotificationCreation // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(512, 634); this.Controls.Add(this.cbGCNEmails); this.Controls.Add(this.btnGCNCreate); this.Controls.Add(this.btnGCNCancel); this.Controls.Add(this.tbGCNAllCoords); this.Controls.Add(this.btnGCNMap); this.Controls.Add(this.tbGCNCenter); this.Controls.Add(this.lblGCNCentre); this.Controls.Add(this.lblGCNGrid); this.Controls.Add(this.lblGCNEmail); this.Controls.Add(this.tbGCNRadius); this.Controls.Add(this.lblGCNRadius); this.Controls.Add(this.tbGCNName); this.Controls.Add(this.lblGCNNom); this.Controls.Add(this.lvGCNGrid); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NotificationCreation"; this.Text = "NotificationCreation"; this.ResumeLayout(false); this.PerformLayout(); }