示例#1
0
        public MainForm(ConsoleWindow consoleWnd)
        {
            InitializeComponent();
            this.console = consoleWnd;
            this.Text = GameConstants.NameGame + " - GLauncher";
            this.SuspendLayout();
            this.Main = new MainControl();
            this.Controls.Add(Main);
            this.Main.BringToFront();
            this.Main.SlideSide = DevComponents.DotNetBar.Controls.eSlideSide.Right;
            this.Main.Click += delegate(object sender, EventArgs e) { Main.IsOpen = false; };
            this.Main.TileNews.Click += delegate(object sender, EventArgs e)
            {
                this.Main.IsOpen = false;
                this.TabNews.Select();
            };

            this.Main.TileSettingsGame.Click += delegate(object sender, EventArgs e)
            {
                if (_SettingsGame == null) { _SettingsGame = new SettingsGameControl(); }
                this._SettingsGame.CloseUserControl += CloseUserControl;
                if (!this.IsModalPanelDisplayed) { this.ShowModalPanel(_SettingsGame, eSlideSide.Left); }
            };

            this.ResumeLayout(false);
            UpdateControlsSizeAndLocation(Main);
        }
示例#2
0
        public SplashForm()
        {
            InitializeComponent();

            consoleWnd = new ConsoleWindow();
            mainForm = new MainForm(consoleWnd);

            ConsoleConstants.WriteInConsole("GLauncher iniciado", Color.DarkBlue);

            new Thread(LoadLauncher).Start();
        }