void ReleaseDesignerOutlets() { if (SWebView != null) { SWebView.Dispose(); SWebView = null; } if (EncapsulatingView != null) { EncapsulatingView.Dispose(); EncapsulatingView = null; } if (FormClose != null) { FormClose.Dispose(); FormClose = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } }
void ReleaseDesignerOutlets() { if (EncapsulatingView != null) { EncapsulatingView.Dispose(); EncapsulatingView = null; } if (FormClose != null) { FormClose.Dispose(); FormClose = null; } if (SecureWebView != null) { SecureWebView.Dispose(); SecureWebView = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } }
void ReleaseDesignerOutlets() { if (FormClose != null) { FormClose.Dispose(); FormClose = null; } if (EncapsulatingView != null) { EncapsulatingView.Dispose(); EncapsulatingView = null; } if (PaymentButton != null) { PaymentButton.Dispose(); PaymentButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } }
/// <summary> /// Populate values from the base palette. /// </summary> public void PopulateFromBase() { // Populate only the designated styles Generic.PopulateFromBase(PaletteButtonSpecStyle.Generic); Close.PopulateFromBase(PaletteButtonSpecStyle.Close); Context.PopulateFromBase(PaletteButtonSpecStyle.Context); Next.PopulateFromBase(PaletteButtonSpecStyle.Next); Previous.PopulateFromBase(PaletteButtonSpecStyle.Previous); ArrowLeft.PopulateFromBase(PaletteButtonSpecStyle.ArrowLeft); ArrowRight.PopulateFromBase(PaletteButtonSpecStyle.ArrowRight); ArrowUp.PopulateFromBase(PaletteButtonSpecStyle.ArrowUp); ArrowDown.PopulateFromBase(PaletteButtonSpecStyle.ArrowDown); DropDown.PopulateFromBase(PaletteButtonSpecStyle.DropDown); PinVertical.PopulateFromBase(PaletteButtonSpecStyle.PinVertical); PinHorizontal.PopulateFromBase(PaletteButtonSpecStyle.PinHorizontal); FormClose.PopulateFromBase(PaletteButtonSpecStyle.FormClose); FormMax.PopulateFromBase(PaletteButtonSpecStyle.FormMax); FormMin.PopulateFromBase(PaletteButtonSpecStyle.FormMin); FormRestore.PopulateFromBase(PaletteButtonSpecStyle.FormRestore); PendantClose.PopulateFromBase(PaletteButtonSpecStyle.PendantClose); PendantRestore.PopulateFromBase(PaletteButtonSpecStyle.PendantRestore); PendantMin.PopulateFromBase(PaletteButtonSpecStyle.PendantMin); PendantRestore.PopulateFromBase(PaletteButtonSpecStyle.PendantRestore); WorkspaceMaximize.PopulateFromBase(PaletteButtonSpecStyle.WorkspaceMaximize); WorkspaceRestore.PopulateFromBase(PaletteButtonSpecStyle.WorkspaceRestore); RibbonMinimize.PopulateFromBase(PaletteButtonSpecStyle.RibbonMinimize); RibbonExpand.PopulateFromBase(PaletteButtonSpecStyle.RibbonExpand); }
public CreateAccountForm(FormClose hClose, ReturnToMenu hReturn, CreateAccount hCreate) { handleClose = hClose; handleReturnToMenu = hReturn; handleCreateAccount = hCreate; InitializeComponent(); BackColor = Color.SteelBlue; }
public RetireBookForm(FormClose hClose, ReturnToMenu hReturn, RetireBook hRetire) { handleClose = hClose; handleReturnToMenu = hReturn; handleRetireBook = hRetire; InitializeComponent(); BackColor = Color.SteelBlue; }
public UpdateConditionForm(FormClose hClose, ReturnToMenu hReturn, UpdateCondition hUpdate) { handleClose = hClose; handleReturnToMenu = hReturn; handleUpdateCondition = hUpdate; InitializeComponent(); BackColor = Color.SteelBlue; }
public ResetPasswordForm(FormClose hClose, ReturnToMenu hReturn, ResetPassword hReset) { handleClose = hClose; handleReturnToMenu = hReturn; handleResetPassword = hReset; InitializeComponent(); BackColor = Color.SteelBlue; }
public RenewBooksForm(FormClose hClose, ReturnToMenu hReturn, RenewBooks hRenewBooks) { InitializeComponent(); BackColor = Color.SteelBlue; handleClose = hClose; handleReturnToMenu = hReturn; handleRenewBooks = hRenewBooks; }
public CheckOutForm(FormClose hClose, ReturnToMenu hReturn, AddToBookList hAddToCart, CheckOut hCheckOut) { handleClose = hClose; handleReturnToMenu = hReturn; handleAddToCart = hAddToCart; handleCheckOut = hCheckOut; InitializeComponent(); BackColor = Color.SteelBlue; }
public ReturnBooksForm(FormClose hClose, ReturnToMenu hReturnToMenu, AddToBookList hAddToList, Return hReturn) { handleClose = hClose; handleReturnToMenu = hReturnToMenu; handleAddToBookList = hAddToList; handleReturn = hReturn; InitializeComponent(); BackColor = Color.SteelBlue; }
public AddBookForm(FormClose hClose, ReturnToMenu hReturnToMenu, GenreRequest hGenreRequest, AddBook hAdd) { handleClose = hClose; handleReturnToMenu = hReturnToMenu; handleAdd = hAdd; InitializeComponent(); BackColor = Color.SteelBlue; uxInfoPanel.BackColor = Color.LightSteelBlue; genres = hGenreRequest(); genres.ForEach(genre => uxGenreBox.Items.Add(genre)); }
public ViewBookForm(FormClose hClose, ReturnToMenu hReturnToMenu, GenreRequest hGenreRequest, SearchBooks hSearchBooks) { handleClose = hClose; handleReturnToMenu = hReturnToMenu; handleSearchBooks = hSearchBooks; InitializeComponent(); BackColor = Color.SteelBlue; uxQueryPanel.BackColor = Color.LightSteelBlue; genres = hGenreRequest(); genres.ForEach(genre => uxGenreBox.Items.Add(genre)); }
/// <summary> /// 关闭该窗口 /// </summary> private void closeThis() { if (this.InvokeRequired) { FormClose fc = new FormClose(closeThis); this.Invoke(fc); } else { //退出整个程序,执行更新后开启新程序 Application.Exit(); } }
public PatronMainMenuForm(FormClose hClose, LogoutButton hLogout, ViewBooksButton hViewBooks, CheckOutButton hCheckOut, RenewBooksButton hRenewBooks) { handleClose = hClose; handleLogOut = hLogout; handleViewBooks = hViewBooks; handleCheckOut = hCheckOut; handleRenewBooks = hRenewBooks; InitializeComponent(); BackColor = Color.SteelBlue; uxWelcomeLabel.BackColor = Color.LightSteelBlue; uxButtonPanel.BackColor = Color.LightSteelBlue; }
public AdminMainMenuForm(FormClose hClose, LogoutButton hLogout, ViewBooksButton hViewBooks, CheckOutButton hCheckOut, RenewBooksButton hRenewBooks, ReturnBooksButton hReturnBooks, UpdateConditionButton hUpdate, RetireBookButton hRetire, ResetPasswordButton hReset, AddBookButton hAdd, CreateAccountButton hCreate) { handleClose = hClose; handleLogOut = hLogout; handleViewBooks = hViewBooks; handleCheckOut = hCheckOut; handleRenewBooks = hRenewBooks; handleReturnBooks = hReturnBooks; handleUpdateCondition = hUpdate; handleRetireBook = hRetire; handleResetPassword = hReset; handleAddBook = hAdd; handleCreateAccount = hCreate; InitializeComponent(); BackColor = Color.SteelBlue; uxWelcomeLabel.BackColor = Color.LightSteelBlue; uxButtonPanel.BackColor = Color.LightSteelBlue; }
public void Shutdown() { FormClose closefrm = new FormClose(_notifFakeForm.Close); _notifFakeForm.Invoke(closefrm); }
private void VPrincipal_FormClosed(object sender, FormClosedEventArgs e) { FormClose?.Invoke(this, e); Dispose(); }
private void SpellForm_Deactivate(object sender, EventArgs e) { FormClose?.Invoke(this, e); }
public virtual void OnFormClose() { FormClose?.Invoke(this, EventArgs.Empty); }