public static LoginResult ShowLogin(NimbusTheme theme) { LoginForm logfrm = new LoginForm(theme); logfrm.ShowDialog(); return(LoginForm.loginResult); }
public NimbusMain(NimbusTheme theme) : base(theme) { InitializeComponent(); splash = new Splash(theme); splash.Show(); #if DEBUG ConsoleManager.Show(); #endif SetSettings(); RenewRegistry(); InitialiseFactory(); SetEvents(); CreateContextMenu(); ConfigureCaptionButtons(); ConfigureNotifyIcon(); ConfigureControls(); ShowCollection(); brwLibrary.Navigate(Globals.Homepage); //brwLibrary.Navigate("http://svn.thethoughtradar.com/test.html"); //brwLibrary.Navigate("http://trac.webkit.org/export/41842/trunk/LayoutTests/scrollbars/overflow-scrollbar-combinations.html"); CheckForUpdatesDelegate chk = new CheckForUpdatesDelegate(CheckForUpdates); chk.BeginInvoke(null, null); }
public LoginForm(NimbusTheme theme) { this.Theme = theme; InitializeComponent(); btnCancel.Clicked += new EventHandler(btnCancel_Clicked); btnLogin.Clicked += new EventHandler(btnLogin_Clicked); }
public NimbusMessageBox(NimbusTheme theme) : base(theme) { InitializeComponent(); AllowResize = false; this.TopMost = true; }
public FriendsList(NimbusTheme theme) : base(theme) { InitializeComponent(); //this.Show(); //events lstFriends.MouseDoubleClick += new MouseEventHandler(lstFriends_MouseDoubleClick); }
public NexusForm(NimbusTheme theme) { this.Theme = theme; this.Icon = theme.Icon; this.BackColor = theme.BackgroundColor; this.CaptionFont = new Font(theme.CaptionFontFamily, theme.CaptionFontSize); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.DoubleBuffered = true; }
public NimbusContextMenu(NimbusTheme theme) { this.theme = theme; MenuItems = new List <NMenuItem>(); FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; TopMost = true; Font = new Font(theme.CaptionFontFamily, theme.CaptionFontSize); DoubleBuffered = true; ShowInTaskbar = false; this.Deactivate += new EventHandler(NimbusContextMenu_Deactivate); }
public Splash(NimbusTheme Theme) { this.ShowInTaskbar = false; this.Theme = Theme; this.TopMost = true; this.StartPosition = FormStartPosition.CenterScreen; bg = Image.FromFile(Theme.SplashFile); versionText = String.Format("Version: {0}", FileVersionInfo.GetVersionInfo(Application.ExecutablePath).FileVersion); InitializeComponent(); }
public Slip(NimbusTheme theme, string text) //:base(theme) { InitializeComponent(); this.ForeColor = Color.FromArgb(57, 116, 145); this.BackColor = theme.BackgroundColor; this.TopMost = true; this.text = text; this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.ShowInTaskbar = false; }
protected override void OnCreateMainForm() { try { Factory.CurrentTheme = NimbusTheme.FromFile(Path.GetDirectoryName(Application.ExecutablePath) + "\\themes\\default\\default.theme"); } catch (ThemingError e) { MessageBox.Show(e.Error); Application.Exit(); } mainForm = new NimbusMain(Factory.CurrentTheme); this.MainForm = mainForm; string[] args = new string[this.CommandLineArgs.Count]; this.CommandLineArgs.CopyTo(args, 0); base.OnCreateMainForm(); mainForm.ProcessArgs(args); }
public void SetTheme(NimbusTheme theme) { this.theme = theme; }
public Slip(NimbusTheme theme) //:base(theme) { InitializeComponent(); }
public void SetTheme(NimbusTheme theme) { Font = new Font(theme.ButtonFont, 34f, FontStyle.Bold); }