internal Devices.DevicesForm ShowForm() { Devices.DevicesForm form = new DevicesForm(); form.Width = 800; form.Height = 460; this.Width = 800; form.Text = dev.Info.Name; this.Dock = DockStyle.Fill; form.Controls.Add(this); return(form); }
public static Form ShowForm() { UCDevicesCollectionConfig uc = new UCDevicesCollectionConfig(); Devices.DevicesForm form = new DevicesForm(); form.Width = 800; form.Height = 600; uc.Dock = DockStyle.Fill; form.Controls.Add(uc); return(form); }
public virtual void ShowQueueForm() { DevicesForm form = new DevicesForm(); Control.UCQueue ucqueue = new Control.UCQueue(this); ucqueue.Dock = System.Windows.Forms.DockStyle.Fill; form.Text = Info.Name + "检查队列"; form.Width = 800; form.Height = 400; form.Controls.Add(ucqueue); CommandsChanged += ucqueue.DevCommandsChanged; form.FormClosing += (o, e) => CommandsChanged -= ucqueue.DevCommandsChanged; form.Show(); }