public void ClearSongControls() { UniqueIdBox.Text = "(No song selected)"; TitleBox.Clear(); SubtitleBox.Clear(); BackgroundBox.Clear(); ComposerBox.Clear(); ArrangerBox.Clear(); CopyrightBox.Clear(); LicenseBox.Clear(); MadeFamousByBox.Clear(); DifficultyBox.Value = 0; RatingBox.Value = 0; FingerHintBox.Clear(); HandsBox.Clear(); TagBox.Clear(); TagList.Items.Clear(); BookmarkMeasureBox.Value = 1; BookmarkDescriptionBox.Clear(); BookmarkList.Items.Clear(); PropertiesGroup.Enabled = false; }
private void AboutControl_Load(object sender, EventArgs e) { TitleLabel.Text = "Sarcaukar V" + Application.ProductVersion; CopyrightBox.Text = System.Text.Encoding.Default.GetString(global::Sardauscan.Properties.Resources.LICENSE).Replace("\n", "\r\n"); CopyrightBox.Select(0, 0); CreditBox.Text = global::Sardauscan.Properties.Resources.CREDIT; CreditBox.Select(0, 0); }
private static void SetCopyright(Control control, CopyrightBox copyright) { copyright.Text = "Copyright © 2004 smartService Solution. All rights reserved."; if (UserAuthorize.GetUserProfile(control) != null) { copyright.EmployeeID = UserAuthorize.GetUserProfile(control).EmployeeID; } }
public static void SetMenu(Control control, HeaderBox header, SubmenuBox sub, CopyrightBox copyright) { UserAuthorize.CheckAuthorize(control); if (Pages.Request(control).Form["_menuTab_"] == "-1") { Pages.Response(control).Redirect(Pages.Url(control, Pages.LOGOUT_PAGE)); } if (header != null) { AdminMenu.SetMainMenu(control, header); object item = Pages.Session(control)[UserAuthorize.SES_ADMINTYPE]; header.IsAdmin = (item == null ? true : item.ToString() != "BUSINESS"); } if (sub != null) { sub.Items = AdminMenu.GetSubMenu(control, header.ActiveIndex); } if (copyright != null) { AdminMenu.SetCopyright(control, copyright); } }
void ReleaseDesignerOutlets() { if (AddTagButton != null) { AddTagButton.Dispose(); AddTagButton = null; } if (ArrangerBox != null) { ArrangerBox.Dispose(); ArrangerBox = null; } if (BackgroundBox != null) { BackgroundBox.Dispose(); BackgroundBox = null; } if (BookmarkLabelBox != null) { BookmarkLabelBox.Dispose(); BookmarkLabelBox = null; } if (BookmarkList != null) { BookmarkList.Dispose(); BookmarkList = null; } if (BookmarkMeasureBox != null) { BookmarkMeasureBox.Dispose(); BookmarkMeasureBox = null; } if (ComposerBox != null) { ComposerBox.Dispose(); ComposerBox = null; } if (CopyrightBox != null) { CopyrightBox.Dispose(); CopyrightBox = null; } if (DifficultyBox != null) { DifficultyBox.Dispose(); DifficultyBox = null; } if (FingerHintBox != null) { FingerHintBox.Dispose(); FingerHintBox = null; } if (HandsBox != null) { HandsBox.Dispose(); HandsBox = null; } if (LicenseBox != null) { LicenseBox.Dispose(); LicenseBox = null; } if (MadeFamousByBox != null) { MadeFamousByBox.Dispose(); MadeFamousByBox = null; } if (PartsBox != null) { PartsBox.Dispose(); PartsBox = null; } if (PropertiesGroup != null) { PropertiesGroup.Dispose(); PropertiesGroup = null; } if (RatingBox != null) { RatingBox.Dispose(); RatingBox = null; } if (RemoveBookmarkButton != null) { RemoveBookmarkButton.Dispose(); RemoveBookmarkButton = null; } if (RemoveTagButton != null) { RemoveTagButton.Dispose(); RemoveTagButton = null; } if (RetargetButton != null) { RetargetButton.Dispose(); RetargetButton = null; } if (SongList != null) { SongList.Dispose(); SongList = null; } if (SubtitleBox != null) { SubtitleBox.Dispose(); SubtitleBox = null; } if (TagBox != null) { TagBox.Dispose(); TagBox = null; } if (TagList != null) { TagList.Dispose(); TagList = null; } if (TitleBox != null) { TitleBox.Dispose(); TitleBox = null; } if (UniqueIdBox != null) { UniqueIdBox.Dispose(); UniqueIdBox = null; } }