Exemplo n.º 1
0
 private void btnConveyorIO_Click(object sender, EventArgs e)
 {
     if (Machine.Instance.Setting.MachineSelect == MachineSelection.AD19)
     {
         FormMgr.Show <Drive.Conveyor.LeadShine.Forms.IOForms.IOForm>(this);
     }
 }
Exemplo n.º 2
0
        private void Cms_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            string itemText = e.ClickedItem.Text;

            if (itemText == lngResources[strIO])
            {
                FormMgr.Show <IOForm>(this);
            }
            else if (itemText == lngResources[strConveyorIO])
            {
                if (Machine.Instance.Setting.MachineSelect == MachineSelection.AD19)
                {
                    new Drive.Conveyor.LeadShine.Forms.IOForms.IOForm().ShowDialog();
                }
            }
            else if (itemText == lngResources[strScale])
            {
                new FormWeight().Setup().ShowDialog();
            }
            else if (itemText == lngResources[strHeight])
            {
                new DialogHeight().ShowDialog();
            }
            else if (itemText == lngResources[strHeater])
            {
                new FormThermostat().ShowDialog();
            }
            else if (itemText == lngResources[strCamera])
            {
                new TriggerDemo().ShowDialog();
                //new StatisticsForm().ShowDialog();
            }
        }
Exemplo n.º 3
0
 private void BeginBroadcastRunning()
 {
     this.BeginInvoke(new Action(() =>
     {
         if (Machine.Instance.Valve1.RunMode == Drive.ValveSystem.ValveRunMode.Look ||
             Machine.Instance.Valve1.RunMode == Drive.ValveSystem.ValveRunMode.InspectDot)
         {
             FormMgr.Show <CameraForm>(this);
         }
         MsgCenter.Broadcast(MsgType.RUNNING, this, null);
     }));
 }
Exemplo n.º 4
0
 private void BtnCamera_Click(object sender, EventArgs e)
 {
     FormMgr.Show <CameraForm>(this);
 }
Exemplo n.º 5
0
 private void BtnJog_Click(object sender, EventArgs e)
 {
     FormMgr.Show <JogForm>(this);
     FormMgr.GetForm <JogForm>().UpdateUI();
 }
Exemplo n.º 6
0
 private void btnIO_Click(object sender, EventArgs e)
 {
     FormMgr.Show <IOForm>(this);
 }
Exemplo n.º 7
0
 private void btnGlueManage_Click(object sender, EventArgs e)
 {
     FormMgr.Show <GlueManageForm>(this);
 }
Exemplo n.º 8
0
 private void btnConveyor_Click(object sender, EventArgs e)
 {
     FormMgr.Show <ConveyorControlForm>(this);
 }