public override void OnAddNew() { base.OnAddNew(); MAS140_MachineMaster form = new MAS140_MachineMaster(); if (form.ShowDialog(this) == DialogResult.OK) { LoadData(false); } }
private void OpenMachineMaster() { if (!ActivePermission.Edit) { return; } if (shtView.RowCount <= 0) { return; } string MACHINE_CD = shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.MACHINE_CD).ToString(); MAS140_MachineMaster form = new MAS140_MachineMaster(MACHINE_CD); if (form.ShowDialog(null) == DialogResult.OK) { LoadData(false); } }