private void btnCreateView_Click(object sender, EventArgs e) { using (CreateView createView = new CreateView()) { createView.FrontendApplication = FrontendApplication; createView.BackendApplication = BackendApplication; createView.Owner = this; if (createView.ShowDialog() == DialogResult.OK) { SelectedView = modelService.GetInitializedDomainObject <DataAccess.Domain.View>(createView.NewView.Id); PopulateViewFields(); EnableDisableButtons(); } } }
private void btnCreateView_Click(object sender, EventArgs e) { using (CreateView createView = new CreateView()) { createView.FrontendApplication = FrontendApplication; createView.BackendApplication = BackendApplication; createView.Owner = this; if (createView.ShowDialog() == DialogResult.OK) { SelectedView = createView.NewView; PopulateViewFields(); CheckEnableDisableOK(); } } }