public PnlToolDownloadOptions(GPG.Multiplayer.Client.Vaulting.Tools.Tool tool)
 {
     int index;
     this.components = null;
     this.InitializeComponent();
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Any"), "<LOC>Any"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Unspecified"), "<LOC>Unspecified"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Untested"), "<LOC>Untested"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Alpha"), "<LOC>Alpha"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Beta"), "<LOC>Beta"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Release"), "<LOC>Release"));
     this.gpgTextBoxDev.Text = tool.DeveloperName;
     if (tool.Quality == null)
     {
         index = 0;
     }
     else
     {
         index = this.comboBoxReleaseQual.Items.IndexOf(tool.Quality);
     }
     if (index < 0)
     {
         index = 0;
     }
     this.comboBoxReleaseQual.SelectedIndex = index;
     this.mTool = tool;
     this.CriteriaChanged(null, null);
 }
Exemplo n.º 2
0
 public PnlToolDetailsView(GPG.Multiplayer.Client.Vaulting.Tools.Tool tool)
 {
     this.InitializeComponent();
     this.gpgLabelWebsite.Font = new Font(Program.Settings.StylePreferences.MasterFont, FontStyle.Underline);
     this.gpgLabelWebsite.ForeColor = Program.Settings.Chat.Links.WebColor;
     this.gpgLabelWebsite.Cursor = Cursors.Hand;
     this.gpgLabelDeveloper.Text = tool.DeveloperName;
     this.gpgLabelExeName.Text = tool.ExeName;
     this.gpgLabelNumberFiles.Text = tool.NumberOfFiles.ToString();
     this.gpgLabelQuality.Text = tool.QualityDisplay;
     this.gpgLabelWebsite.Text = tool.Website;
     this.mTool = tool;
 }
Exemplo n.º 3
0
 public PnlToolUploadOptions(GPG.Multiplayer.Client.Vaulting.Tools.Tool tool)
 {
     this.InitializeComponent();
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Unspecified"), "<LOC>Unspecified"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Untested"), "<LOC>Untested"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Alpha"), "<LOC>Alpha"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Beta"), "<LOC>Beta"));
     this.comboBoxReleaseQual.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Release"), "<LOC>Release"));
     this.comboBoxReleaseQual.SelectedIndex = 0;
     if ((tool.LocalFilePath != null) && (tool.LocalFilePath.Length > 0))
     {
         if (tool.LocalFilePath.EndsWith(".zip"))
         {
             this.gpgRadioButtonExeDir.Enabled = false;
             this.gpgRadioButtonExeDirSubs.Enabled = false;
             this.gpgRadioButtonExeOnly.Enabled = false;
         }
         else
         {
             this.gpgRadioButtonExeDir.Enabled = true;
             this.gpgRadioButtonExeDirSubs.Enabled = true;
             this.gpgRadioButtonExeOnly.Enabled = true;
         }
     }
     this.gpgTextBoxExePath.Text = tool.ExeName;
     this.gpgTextBoxVolunteer.Text = tool.DownloadVolunteerEffort;
     this.gpgTextBoxDeveloper.Text = tool.DeveloperName;
     this.gpgTextBoxWebsite.Text = tool.Website;
     for (int i = 0; i < this.comboBoxReleaseQual.Items.Count; i++)
     {
         if ((this.comboBoxReleaseQual.Items[i] as MultiVal<string, string>).Value2 == tool.Quality)
         {
             this.comboBoxReleaseQual.SelectedIndex = i;
             break;
         }
     }
     this.mTool = tool;
     this.ToolAttributeChanged(null, null);
 }
Exemplo n.º 4
0
 public IAdditionalContent CreateEmptyInstance()
 {
     GPG.Multiplayer.Client.Vaulting.Tools.Tool tool = new GPG.Multiplayer.Client.Vaulting.Tools.Tool();
     tool.ContentType = base.ContentType;
     return tool;
 }