Пример #1
0
        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();
                }
            }
        }
Пример #2
0
        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();
                }
            }
        }