private void simpleButtonAdd_Click(object sender, EventArgs e) { var view = new AddUpdateLD(); view.LawDictionaryModels = LawDictionaryModels; view.BaseView = this; view.ShowDialog(this); }
private void simpleButtonUpdate_Click(object sender, EventArgs e) { if (SelectedModel == null) { return; } var view = new AddUpdateLD(); view.IsUpdate = true; view.LawDictionaryModel = SelectedModel; view.LawDictionaryModels = LawDictionaryModels; view.ShowDialog(this); if (view.IsSave) { ShowAjax(); writeData(); CloseAjax(); } }
private void simpleButtonUpdate_Click(object sender, EventArgs e) { if (SelectedModel == null) return; var view = new AddUpdateLD(); view.IsUpdate = true; view.LawDictionaryModel = SelectedModel; view.LawDictionaryModels = LawDictionaryModels; view.ShowDialog(this); if (view.IsSave) { ShowAjax(); writeData(); CloseAjax(); } }