Esempio n. 1
0
        public static LoginResult ShowLogin(NimbusTheme theme)
        {
            LoginForm logfrm = new LoginForm(theme);

            logfrm.ShowDialog();
            return(LoginForm.loginResult);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public LoginForm(NimbusTheme theme)
 {
     this.Theme = theme;
     InitializeComponent();
     btnCancel.Clicked += new EventHandler(btnCancel_Clicked);
     btnLogin.Clicked  += new EventHandler(btnLogin_Clicked);
 }
Esempio n. 4
0
 public NimbusMessageBox(NimbusTheme theme)
     : base(theme)
 {
     InitializeComponent();
     AllowResize  = false;
     this.TopMost = true;
 }
Esempio n. 5
0
 public FriendsList(NimbusTheme theme)
     : base(theme)
 {
     InitializeComponent();
     //this.Show();
     //events
     lstFriends.MouseDoubleClick += new MouseEventHandler(lstFriends_MouseDoubleClick);
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
        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();
        }
Esempio n. 9
0
 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;
 }
Esempio n. 10
0
        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);
        }
Esempio n. 11
0
 public void SetTheme(NimbusTheme theme)
 {
     this.theme = theme;
 }
Esempio n. 12
0
 public Slip(NimbusTheme theme)
 //:base(theme)
 {
     InitializeComponent();
 }
Esempio n. 13
0
 public void SetTheme(NimbusTheme theme)
 {
     Font = new Font(theme.ButtonFont, 34f, FontStyle.Bold);
 }