Exemple #1
0
        private void MainWindow_Load(object sender, EventArgs e)
        {
            Program.trayIcon    = new TrayIcon();
            Program.OnShutdown += Program.trayIcon.Dispose;
            Program.OnShutdown += LogCenter.Instance.Kill;
            Program.updater     = new Updates.UpdateChecker();
            Program.updater.Updater();
            Program.OnShutdown += Program.updater.Close;
            // call the log purger
            LogCenter.Instance.CleanLogs();

            log      = new LogDisplay();
            log.Dock = DockStyle.Fill;

            splitContainer1.Panel2.Controls.Add(log);

            // load up the adapter control handler
            ac      = new AdapterControl();
            ac.Dock = DockStyle.Fill;

            // load up the options tab handler
            od      = new OptionsDisplay();
            od.Dock = DockStyle.Fill;

            // load up the options tab handler
            help      = new Help();
            help.Dock = DockStyle.Fill;

            MainWindow_Resize(null, null);
            if (GeneralConfiguration.Instance.StartMinimized)
            {
                this.WindowState = FormWindowState.Minimized;
            }
            splitContainer1.Panel1.BackgroundImage = ThemeConfiguration.GetCurrentBanner();
            ThemeChanged();
        }
Exemple #2
0
        private void MainWindow_Load(object sender, EventArgs e)
        {
            Program.trayIcon = new TrayIcon();
                Program.OnShutdown += Program.trayIcon.Dispose;
                Program.OnShutdown += LogCenter.Instance.Kill;
                Program.updater = new Updates.UpdateChecker();
                Program.updater.Updater();
                Program.OnShutdown += Program.updater.Close;
                // call the log purger
                LogCenter.Instance.CleanLogs();

                log = new LogDisplay();
                log.Dock = DockStyle.Fill;

                splitContainer1.Panel2.Controls.Add(log);

                // load up the adapter control handler
                ac = new AdapterControl();
                ac.Dock = DockStyle.Fill;

                // load up the options tab handler
                od = new OptionsDisplay();
                od.Dock = DockStyle.Fill;

                // load up the options tab handler
                help = new Help();
                help.Dock = DockStyle.Fill;

                multistring.SetString(Language.ENGLISH, "Log", "Log");
                multistring.SetString(Language.ENGLISH, "Options", "Options");
                multistring.SetString(Language.ENGLISH, "Adapters", "Adapters");
                multistring.SetString(Language.ENGLISH, "Help", "Help");

                multistring.SetString(Language.DUTCH, "Log", "Log");
                multistring.SetString(Language.DUTCH, "Options", "Opties");
                multistring.SetString(Language.DUTCH, "Adapters", "Adapters");
                multistring.SetString(Language.DUTCH, "Help", "Help");

                multistring.SetString(Language.HEBREW, "Log", "יומן רישום");
                multistring.SetString(Language.HEBREW, "Options", "אפשרויות");
                multistring.SetString(Language.HEBREW, "Adapters", "מתאמים");
                multistring.SetString(Language.HEBREW, "Help", "עזרה");

                multistring.SetString(Language.CHINESE, "Log", "登录");
                multistring.SetString(Language.CHINESE, "Options", "选项");
                multistring.SetString(Language.CHINESE, "Adapters", "适配器");
                multistring.SetString(Language.CHINESE, "Help", "帮助");

                multistring.SetString(Language.GERMAN, "Log", "Log");
                multistring.SetString(Language.GERMAN, "Options", "Optionen");
                multistring.SetString(Language.GERMAN, "Adapters", "Adapter");
                multistring.SetString(Language.GERMAN, "Help", "Hilfe");

                multistring.SetString(Language.RUSSIAN, "Log", "журнал");
                multistring.SetString(Language.RUSSIAN, "Options", "опции");
                multistring.SetString(Language.RUSSIAN, "Adapters", "Адаптеры");
                multistring.SetString(Language.RUSSIAN, "Help", "Помогите");

                multistring.SetString(Language.SPANISH, "Log", "Log");
                multistring.SetString(Language.SPANISH, "Options", "Opciones");
                multistring.SetString(Language.SPANISH, "Adapters", "Adaptadores");
                multistring.SetString(Language.SPANISH, "Help", "Ayuda");

                multistring.SetString(Language.PORTUGUESE, "Log", "Entrar");
                multistring.SetString(Language.PORTUGUESE, "Options", "Opções");
                multistring.SetString(Language.PORTUGUESE, "Adapters", "Adaptadores");
                multistring.SetString(Language.PORTUGUESE, "Help", "Ajudar");

                multistring.SetString(Language.JAPANESE, "Log", "ログ");
                multistring.SetString(Language.JAPANESE, "Options", "オプション");
                multistring.SetString(Language.JAPANESE, "Adapters", "アダプター");
                multistring.SetString(Language.JAPANESE, "Help", "ヘルプ");

                multistring.SetString(Language.ITALIAN, "Log", "Registro");
                multistring.SetString(Language.ITALIAN, "Options", "Opzioni");
                multistring.SetString(Language.ITALIAN, "Adapters", "Adattatori");
                multistring.SetString(Language.ITALIAN, "Help", "Guida");

                multistring.SetString(Language.FRENCH, "Log", "Journal");
                multistring.SetString(Language.FRENCH, "Options", "Options");
                multistring.SetString(Language.FRENCH, "Adapters", "Adaptateurs");
                multistring.SetString(Language.FRENCH, "Help", "Aide");

                MainWindow_Resize(null, null);
                if (GeneralConfiguration.Instance.StartMinimized)
                {
                    this.WindowState = FormWindowState.Minimized;
                }
                ThemeChanged();
                LanguageChanged();
        }
			private void MainWindow_Load(object sender, EventArgs e) 
            {
                Program.trayIcon = new TrayIcon();
                Program.OnShutdown += Program.trayIcon.Dispose;                
                Program.OnShutdown += LogCenter.Instance.Kill;
                Program.updater = new Updates.UpdateChecker();
                Program.updater.Updater();
                Program.OnShutdown += Program.updater.Close;
                // call the log purger
                LogCenter.Instance.CleanLogs();

                log = new LogDisplay();
                log.Dock = DockStyle.Fill;

                splitContainer1.Panel2.Controls.Add(log);

                // load up the adapter control handler
                ac = new AdapterControl();
                ac.Dock = DockStyle.Fill;

                // load up the options tab handler
                od = new OptionsDisplay();
                od.Dock = DockStyle.Fill;

                // load up the options tab handler
                help = new Help();
                help.Dock = DockStyle.Fill;

                multistring.SetString(Language.ENGLISH, "Log", "Log");
                multistring.SetString(Language.ENGLISH, "Options", "Options");
                multistring.SetString(Language.ENGLISH, "Adapters", "Adapters");
                multistring.SetString(Language.ENGLISH, "Help", "Help");

                multistring.SetString(Language.DUTCH, "Log", "Log");
                multistring.SetString(Language.DUTCH, "Options", "Opties");
                multistring.SetString(Language.DUTCH, "Adapters", "Adapters");
                multistring.SetString(Language.DUTCH, "Help", "Help");

                multistring.SetString(Language.HEBREW, "Log", "יומן רישום");
                multistring.SetString(Language.HEBREW, "Options", "אפשרויות");
                multistring.SetString(Language.HEBREW, "Adapters", "מתאמים");
                multistring.SetString(Language.HEBREW, "Help", "עזרה");

                multistring.SetString(Language.CHINESE, "Log", "登录");
                multistring.SetString(Language.CHINESE, "Options", "选项");
                multistring.SetString(Language.CHINESE, "Adapters", "适配器");
                multistring.SetString(Language.CHINESE, "Help", "帮助");

                multistring.SetString(Language.GERMAN, "Log", "Log");
                multistring.SetString(Language.GERMAN, "Options", "Optionen");
                multistring.SetString(Language.GERMAN, "Adapters", "Adapter");
                multistring.SetString(Language.GERMAN, "Help", "Hilfe");

                multistring.SetString(Language.RUSSIAN, "Log", "журнал");
                multistring.SetString(Language.RUSSIAN, "Options", "опции");
                multistring.SetString(Language.RUSSIAN, "Adapters", "Адаптеры");
                multistring.SetString(Language.RUSSIAN, "Help", "Помогите");

                multistring.SetString(Language.SPANISH, "Log", "Log");
                multistring.SetString(Language.SPANISH, "Options", "Opciones");
                multistring.SetString(Language.SPANISH, "Adapters", "Adaptadores");
                multistring.SetString(Language.SPANISH, "Help", "Ayuda");

                multistring.SetString(Language.PORTUGUESE, "Log", "Entrar");
                multistring.SetString(Language.PORTUGUESE, "Options", "Opções");
                multistring.SetString(Language.PORTUGUESE, "Adapters", "Adaptadores");
                multistring.SetString(Language.PORTUGUESE, "Help", "Ajudar");

                multistring.SetString(Language.JAPANESE, "Log", "ログ");
                multistring.SetString(Language.JAPANESE, "Options", "オプション");
                multistring.SetString(Language.JAPANESE, "Adapters", "アダプター");
                multistring.SetString(Language.JAPANESE, "Help", "ヘルプ");

                multistring.SetString(Language.ITALIAN, "Log", "Registro");
                multistring.SetString(Language.ITALIAN, "Options", "Opzioni");
                multistring.SetString(Language.ITALIAN, "Adapters", "Adattatori");
                multistring.SetString(Language.ITALIAN, "Help", "Guida");

                multistring.SetString(Language.FRENCH, "Log", "Journal");
                multistring.SetString(Language.FRENCH, "Options", "Options");
                multistring.SetString(Language.FRENCH, "Adapters", "Adaptateurs");
                multistring.SetString(Language.FRENCH, "Help", "Aide");

                MainWindow_Resize(null, null);
                if (GeneralConfiguration.Instance.StartMinimized)
                {
                    this.WindowState = FormWindowState.Minimized;
                }
                ThemeChanged();
                LanguageChanged();
			}