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