Пример #1
0
        private void 设备信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var mf = new MachineForm();

            mf.Machine = DemoMachine.Ins;

            mf.ShowDialog();
        }
Пример #2
0
        private void richTextBoxMachine_DoubleClick(object sender, EventArgs e)
        {
            var mf = new MachineForm()
            {
                Machine = Machine.Ins,
            };

            mf.ShowDialog();
        }
Пример #3
0
 private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (MachineForm addForm = new MachineForm())
     {
         addForm.ShowDialog();
         addForm.Dispose();
     }
     loadData();
 }
Пример #4
0
        private void barButtonItemView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            MachineForm viewForm = new MachineForm();

            viewForm.currentMachineGuid = (Guid)machineGridView.GetFocusedRowCellValue("GUID");
            viewForm.edit = true;
            viewForm.view = true;
            viewForm.ShowDialog();
        }
Пример #5
0
 private void barButtonItemEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (MachineForm editForm = new MachineForm())
     {
         editForm.currentMachineGuid = (Guid)machineGridView.GetFocusedRowCellValue("GUID");
         editForm.edit = true;
         editForm.ShowDialog();
     }
     loadData();
 }
Пример #6
0
        private void Machine_btn_Click(object sender, EventArgs e)
        {
            MachineForm machinemasterform = new MachineForm();

            machinemasterform.ShowDialog();
        }