private void 设备信息ToolStripMenuItem_Click(object sender, EventArgs e) { var mf = new MachineForm(); mf.Machine = DemoMachine.Ins; mf.ShowDialog(); }
private void richTextBoxMachine_DoubleClick(object sender, EventArgs e) { var mf = new MachineForm() { Machine = Machine.Ins, }; mf.ShowDialog(); }
private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (MachineForm addForm = new MachineForm()) { addForm.ShowDialog(); addForm.Dispose(); } loadData(); }
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(); }
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(); }
private void Machine_btn_Click(object sender, EventArgs e) { MachineForm machinemasterform = new MachineForm(); machinemasterform.ShowDialog(); }