示例#1
0
        private void Page_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            modViewList.Children.Clear();

            for (int i = 0; i < Settings.Mods.Length; i++)
            {
                CustomButton b = new CustomButton();

                b.Name = Settings.Mods[i].getModID();

                b.Width = modViewList.ActualWidth - 10;
                b.Height = 35;

                if (Settings.Mods[i].getModVersion() == AppSettings.getPropertyValue<string>(Settings.Mods[i].getModID() + "_InstallVersion"))
                {
                    b.ButtonDefaultBackground = Color.FromRgb(31, 32, 37);
                    b.ButtonMouseOverBackground = Color.FromRgb(46, 48, 54);
                }
                else
                {
                    b.ButtonDefaultBackground = Color.FromRgb(31, 32, 37);
                    b.ButtonMouseOverBackground = Color.FromRgb(46, 48, 54);
                }

                b.ButtonTextColor = Color.FromRgb(255, 255, 255);
                b.ButtonTextSize = 13;
                b.ButtonText = Settings.Mods[i].getModName() + " Ver. " + Settings.Mods[i].getModVersion() + " Install: " + AppSettings.getPropertyValue<string>(Settings.Mods[i].getModID() + "_InstallVersion");

                b.MouseDown += install_Click;

                modViewList.Children.Add(b);

                Canvas.SetLeft(b, 5);
                Canvas.SetTop(b, 5 + (40 * i));
            }

            modViewList.Height = 5 + (40 * Settings.Mods.Length);
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 10 "..\..\..\..\GUI\Pages\pageDownload.xaml"
     ((Jan18101997.ExileLauncher.GUI.Pages.pageDownload)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.back = ((Launcher.Controller.CustomButton)(target));
     
     #line 13 "..\..\..\..\GUI\Pages\pageDownload.xaml"
     this.back.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.back_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.downloadProgress = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 4:
     this.installStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.modViewList = ((System.Windows.Controls.Canvas)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 10 "..\..\..\..\GUI\Pages\pageGameRunning.xaml"
     ((Jan18101997.ExileLauncher.GUI.Pages.pageGameRunning)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.back = ((Launcher.Controller.CustomButton)(target));
     
     #line 13 "..\..\..\..\GUI\Pages\pageGameRunning.xaml"
     this.back.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.back_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 11 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Jan18101997.ExileLauncher.GUI.Pages.pageMainMenue)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.currentVersionInfo = ((Launcher.Controller.CustomButton)(target));
     
     #line 14 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     this.currentVersionInfo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.download_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 15 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.twitch_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 16 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.teamSpeak_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 17 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.forum_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 18 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lauchGame_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.launchDirectConnect = ((Launcher.Controller.CustomButton)(target));
     
     #line 19 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     this.launchDirectConnect.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lauchGame_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 20 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.gameSettings_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 21 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.about_Click);
     
     #line default
     #line hidden
     
     #line 21 "..\..\..\..\GUI\Pages\pageMainMenue.xaml"
     ((Launcher.Controller.CustomButton)(target)).Loaded += new System.Windows.RoutedEventHandler(this.CustomButton_Loaded);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }