private void OnAddClick(object sender, EventArgs e) { Item obj = new Item(); if (ItemForm.ShowForm(obj)) { this.LoadListData(obj); } }
private void OnOpenClick(object sender, EventArgs e) { Item obj = this.GetSelected(); if (obj != null) { obj.RefershData(); } if (ItemForm.ShowForm(obj)) { this.LoadListData(obj); } }