예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
        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();
        }