protected virtual void ClickAdd(object arg1, EventArgs arg2) { if (this.formNew == null) { this.formNew = new FormNew <T>(); } this.formNew.Entity = default(T); this.formNew.ShowDialog(); this.LoadData(); }
protected virtual void ClickModify(object arg1, EventArgs arg2) { try { if (this.formNew == null) { this.formNew = new FormNew <T>(); } this.formNew.Entity = this.myGridView1.FindFirstSelect <T>(); this.formNew.ShowDialog(); this.LoadData(); } catch (Exception ex) { logger.Error(ex + ""); return; } }