protected override void ClickModify(object arg1, EventArgs arg2) { try { this.newForm = new FormTestDeviceNew(); this.newForm.Entity = this.myGridView1.FindFirstSelect <TestDevice>(); this.newForm.ShowDialog(); this.LoadData(); } catch (Exception ex) { logger.Error(ex + ""); return; } }
protected override void ClickAdd(object arg1, EventArgs arg2) { this.newForm = new FormTestDeviceNew(); this.newForm.ShowDialog(); this.LoadData(); }