Beispiel #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            Boolean showEditor = false;

            if (e.Args != null && e.Args.Length > 0)
            {
                List <String> args = new List <String>(e.Args);
                if (args.Contains("-editor"))
                {
                    showEditor = true;
                }
                if (args.Contains("-force"))
                {
                    DatabaseUpdater.DeleteDataFolder();
                }
            }

            LogProvider.Log("x64 hash: " + Hashing.SHA2Hash(Paths.EXTERNAL_DIRECTORY + @"\7zip\7zr-x64.exe"));
            LogProvider.Log("x86 hash: " + Hashing.SHA2Hash(Paths.EXTERNAL_DIRECTORY + @"\7zip\7zr-x86.exe"));

            GameSelector gs = new GameSelector(showEditor);

            gs.Show();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameSelectionWindow = ((Universal_Game_Configurator.GameSelector)(target));
                return;

            case 2:
                this.titleBorder = ((System.Windows.Controls.DockPanel)(target));

            #line 55 "..\..\GameSelector.xaml"
                this.titleBorder.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBorder_MouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.windowTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.btnMinimizeWindow = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.btnCloseWindow = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.GamesListView = ((System.Windows.Controls.ListView)(target));

            #line 71 "..\..\GameSelector.xaml"
                this.GamesListView.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GamesListView_SizeChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.dataGridView = ((System.Windows.Controls.GridView)(target));
                return;

            case 8:
                this.GridCol1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 9:
                this.GridCol2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.GridCol3 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.TitleText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.txtBoxSearch = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 240 "..\..\GameSelector.xaml"
                this.txtBoxSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtBoxSearch_TextChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.imgRefresh = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.imgDownloadDb = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }