private void LoadExisting() { control = ReloadControl(); IScreenDefault screen = (IScreenDefault)ControlContainer.FindControl(control.GetType().Name); screen.LoadExisting(); // btnSave.Enabled = false; }
protected void btnNew_Click(object sender, EventArgs e) { SavedControlVirtualPath = "~/Controls/Notification/NotificationType.ascx"; Control control = (Control)ReloadControl(); IScreenDefault screen = (IScreenDefault)control; screen.ShowNew(); // btnSave.Enabled = true; }
protected void btnSave_Click(object sender, EventArgs e) { control = this.LoadControl(SavedControlVirtualPath); IScreenDefault screen = (IScreenDefault)ControlContainer.FindControl(control.GetType().Name); bool result = screen.Submit(); }