示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new SingleAssemblyComponentResourceManager(typeof(AboutDialog));
     this.projectNameLabel     = new System.Windows.Forms.Label();
     this.versionLabel         = new System.Windows.Forms.Label();
     this.licenseLabel         = new System.Windows.Forms.Label();
     this.licenseLinkLabel     = new System.Windows.Forms.LinkLabel();
     this.authorsLabel         = new System.Windows.Forms.Label();
     this.authorsLinkLabel     = new System.Windows.Forms.LinkLabel();
     this.sourceLabel          = new System.Windows.Forms.Label();
     this.sourceLinkLabel      = new System.Windows.Forms.LinkLabel();
     this.homepageLabel        = new System.Windows.Forms.Label();
     this.homepageLinkLabel    = new System.Windows.Forms.LinkLabel();
     this.forumthreadLabel     = new System.Windows.Forms.Label();
     this.forumthreadLinkLabel = new System.Windows.Forms.LinkLabel();
     this.SuspendLayout();
     //
     // projectNameLabel
     //
     this.projectNameLabel.Location  = new System.Drawing.Point(6, 5);
     this.projectNameLabel.Anchor    = System.Windows.Forms.AnchorStyles.Top;
     this.projectNameLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.projectNameLabel.Name      = "projectNameLabel";
     this.projectNameLabel.Size      = new System.Drawing.Size(380, 13);
     this.projectNameLabel.TabIndex  = 0;
     this.projectNameLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.projectNameLabel, "projectNameLabel");
     //
     // versionLabel
     //
     this.versionLabel.Location  = new System.Drawing.Point(6, 25);
     this.versionLabel.Name      = "versionLabel";
     this.versionLabel.Size      = new System.Drawing.Size(100, 13);
     this.versionLabel.TabIndex  = 6;
     this.versionLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.versionLabel, "versionLabel");
     //
     // licenseLabel
     //
     this.licenseLabel.Location  = new System.Drawing.Point(6, 55);
     this.licenseLabel.Name      = "licenseLabel";
     this.licenseLabel.Size      = new System.Drawing.Size(100, 13);
     this.licenseLabel.TabIndex  = 6;
     this.licenseLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.licenseLabel, "licenseLabel");
     //
     // licenseLinkLabel
     //
     this.licenseLinkLabel.Location  = new System.Drawing.Point(110, 55);
     this.licenseLinkLabel.Name      = "licenseLinkLabel";
     this.licenseLinkLabel.Text      = "https://github.com/KSP-CKAN/CKAN/blob/master/LICENSE.md";
     this.licenseLinkLabel.LinkArea  = new System.Windows.Forms.LinkArea(0, 56);
     this.licenseLinkLabel.Size      = new System.Drawing.Size(380, 13);
     this.licenseLinkLabel.TabIndex  = 1;
     this.licenseLinkLabel.TabStop   = true;
     this.licenseLinkLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     this.licenseLinkLabel.UseCompatibleTextRendering = true;
     this.licenseLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
     //
     // authorsLabel
     //
     this.authorsLabel.Location  = new System.Drawing.Point(6, 75);
     this.authorsLabel.Name      = "authorsLabel";
     this.authorsLabel.Size      = new System.Drawing.Size(100, 13);
     this.authorsLabel.TabIndex  = 6;
     this.authorsLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.authorsLabel, "authorsLabel");
     //
     // authorsLinkLabel
     //
     this.authorsLinkLabel.Location     = new System.Drawing.Point(110, 75);
     this.authorsLinkLabel.Name         = "authorsLinkLabel";
     this.authorsLinkLabel.Text         = "https://github.com/KSP-CKAN/CKAN/graphs/contributors";
     this.authorsLinkLabel.LinkArea     = new System.Windows.Forms.LinkArea(0, 52);
     this.authorsLinkLabel.Size         = new System.Drawing.Size(380, 13);
     this.authorsLinkLabel.TabIndex     = 2;
     this.authorsLinkLabel.TabStop      = true;
     this.authorsLinkLabel.TextAlign    = System.Drawing.ContentAlignment.TopLeft;
     this.authorsLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
     //
     // sourceLabel
     //
     this.sourceLabel.Location  = new System.Drawing.Point(6, 95);
     this.sourceLabel.Name      = "sourceLabel";
     this.sourceLabel.Size      = new System.Drawing.Size(100, 13);
     this.sourceLabel.TabIndex  = 6;
     this.sourceLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.sourceLabel, "sourceLabel");
     //
     // sourceLinkLabel
     //
     this.sourceLinkLabel.Location     = new System.Drawing.Point(110, 95);
     this.sourceLinkLabel.Name         = "sourceLinkLabel";
     this.sourceLinkLabel.Text         = "https://github.com/KSP-CKAN/CKAN/";
     this.sourceLinkLabel.LinkArea     = new System.Windows.Forms.LinkArea(0, 33);
     this.sourceLinkLabel.Size         = new System.Drawing.Size(380, 13);
     this.sourceLinkLabel.TabIndex     = 3;
     this.sourceLinkLabel.TabStop      = true;
     this.sourceLinkLabel.TextAlign    = System.Drawing.ContentAlignment.TopLeft;
     this.sourceLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
     //
     // forumthreadLabel
     //
     this.forumthreadLabel.Location  = new System.Drawing.Point(6, 115);
     this.forumthreadLabel.Name      = "forumthreadLinkLabel";
     this.forumthreadLabel.Size      = new System.Drawing.Size(100, 13);
     this.forumthreadLabel.TabIndex  = 6;
     this.forumthreadLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.forumthreadLabel, "forumthreadLabel");
     //
     // forumthreadLinkLabel
     //
     this.forumthreadLinkLabel.Location  = new System.Drawing.Point(110, 115);
     this.forumthreadLinkLabel.Name      = "forumthreadLinkLabel";
     this.forumthreadLinkLabel.Text      = "http://forum.kerbalspaceprogram.com/index.php?/topic/154922-ckan";
     this.forumthreadLinkLabel.LinkArea  = new System.Windows.Forms.LinkArea(0, 64);
     this.forumthreadLinkLabel.Size      = new System.Drawing.Size(380, 13);
     this.forumthreadLinkLabel.TabIndex  = 4;
     this.forumthreadLinkLabel.TabStop   = true;
     this.forumthreadLinkLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     this.forumthreadLinkLabel.UseCompatibleTextRendering = true;
     this.forumthreadLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
     //
     // homepageLabel
     //
     this.homepageLabel.Location  = new System.Drawing.Point(6, 135);
     this.homepageLabel.Name      = "homepageLinkLabel";
     this.homepageLabel.Size      = new System.Drawing.Size(100, 13);
     this.homepageLabel.TabIndex  = 6;
     this.homepageLabel.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     resources.ApplyResources(this.homepageLabel, "homepageLabel");
     //
     // homepageLinkLabel
     //
     this.homepageLinkLabel.Location     = new System.Drawing.Point(110, 135);
     this.homepageLinkLabel.Name         = "homepageLinkLabel";
     this.homepageLinkLabel.Text         = "http://ksp-ckan.space";
     this.homepageLinkLabel.LinkArea     = new System.Windows.Forms.LinkArea(0, 21);
     this.homepageLinkLabel.Size         = new System.Drawing.Size(380, 13);
     this.homepageLinkLabel.TabIndex     = 5;
     this.homepageLinkLabel.TabStop      = true;
     this.homepageLinkLabel.TextAlign    = System.Drawing.ContentAlignment.TopLeft;
     this.homepageLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
     //
     // AboutDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(500, 155);
     this.Controls.Add(this.projectNameLabel);
     this.Controls.Add(this.versionLabel);
     this.Controls.Add(this.licenseLabel);
     this.Controls.Add(this.licenseLinkLabel);
     this.Controls.Add(this.authorsLabel);
     this.Controls.Add(this.authorsLinkLabel);
     this.Controls.Add(this.sourceLabel);
     this.Controls.Add(this.sourceLinkLabel);
     this.Controls.Add(this.forumthreadLabel);
     this.Controls.Add(this.forumthreadLinkLabel);
     this.Controls.Add(this.homepageLabel);
     this.Controls.Add(this.homepageLinkLabel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = Properties.Resources.AppIcon;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "AboutDialog";
     resources.ApplyResources(this, "$this");
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new SingleAssemblyComponentResourceManager(typeof(ManageMods));
     this.ToolTip    = new System.Windows.Forms.ToolTip();
     this.menuStrip2 = new System.Windows.Forms.MenuStrip();
     this.launchGameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.RefreshToolButton           = new System.Windows.Forms.ToolStripMenuItem();
     this.UpdateAllToolButton         = new System.Windows.Forms.ToolStripMenuItem();
     this.ApplyToolButton             = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterToolButton            = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterCompatibleButton      = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterInstalledButton       = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterInstalledUpdateButton = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterReplaceableButton     = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterCachedButton          = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterUncachedButton        = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterNewButton             = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterNotInstalledButton    = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterIncompatibleButton    = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterAllButton             = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterLabelsToolButton      = new System.Windows.Forms.ToolStripMenuItem();
     this.FilterTagsToolButton        = new System.Windows.Forms.ToolStripMenuItem();
     this.NavBackwardToolButton       = new System.Windows.Forms.ToolStripMenuItem();
     this.NavForwardToolButton        = new System.Windows.Forms.ToolStripMenuItem();
     this.EditModSearches             = new CKAN.EditModSearches();
     this.ModGrid                           = new System.Windows.Forms.DataGridView();
     this.InstallAllCheckbox                = new System.Windows.Forms.CheckBox();
     this.Installed                         = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     this.AutoInstalled                     = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     this.UpdateCol                         = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     this.ReplaceCol                        = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     this.ModName                           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Author                            = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.InstalledVersion                  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.LatestVersion                     = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.GameCompatibility                 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.SizeCol                           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ReleaseDate                       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.InstallDate                       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.DownloadCount                     = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Description                       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ModListContextMenuStrip           = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.LabelsContextMenuStrip            = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.ModListHeaderContextMenuStrip     = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.modListToolStripSeparator         = new System.Windows.Forms.ToolStripSeparator();
     this.tagFilterToolStripSeparator       = new System.Windows.Forms.ToolStripSeparator();
     this.untaggedFilterToolStripSeparator  = new System.Windows.Forms.ToolStripSeparator();
     this.labelsToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.labelToolStripSeparator           = new System.Windows.Forms.ToolStripSeparator();
     this.editLabelsToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this.reinstallToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.downloadContentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.purgeContentsToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ModGrid)).BeginInit();
     this.ModListContextMenuStrip.SuspendLayout();
     this.ModListHeaderContextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // Tooltip
     //
     this.ToolTip.AutoPopDelay = 10000;
     this.ToolTip.InitialDelay = 250;
     this.ToolTip.ReshowDelay  = 250;
     this.ToolTip.ShowAlways   = true;
     //
     // menuStrip2
     //
     this.menuStrip2.AutoSize         = false;
     this.menuStrip2.Dock             = System.Windows.Forms.DockStyle.Top;
     this.menuStrip2.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.menuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.launchGameToolStripMenuItem,
         this.RefreshToolButton,
         this.UpdateAllToolButton,
         this.ApplyToolButton,
         this.FilterToolButton,
         this.NavBackwardToolButton,
         this.NavForwardToolButton
     });
     this.menuStrip2.CanOverflow = true;
     this.menuStrip2.Location    = new System.Drawing.Point(0, 0);
     this.menuStrip2.Name        = "menuStrip2";
     this.menuStrip2.Size        = new System.Drawing.Size(5876, 48);
     this.menuStrip2.TabIndex    = 4;
     this.menuStrip2.Text        = "menuStrip2";
     //
     // launchGameToolStripMenuItem
     //
     this.launchGameToolStripMenuItem.Image        = global::CKAN.Properties.Resources.ksp;
     this.launchGameToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.launchGameToolStripMenuItem.Name         = "launchGameToolStripMenuItem";
     this.launchGameToolStripMenuItem.Size         = new System.Drawing.Size(146, 56);
     this.launchGameToolStripMenuItem.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.launchGameToolStripMenuItem.Click       += new System.EventHandler(this.launchGameToolStripMenuItem_Click);
     resources.ApplyResources(this.launchGameToolStripMenuItem, "launchGameToolStripMenuItem");
     //
     // RefreshToolButton
     //
     this.RefreshToolButton.Image        = global::CKAN.Properties.Resources.refresh;
     this.RefreshToolButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.RefreshToolButton.Name         = "RefreshToolButton";
     this.RefreshToolButton.Size         = new System.Drawing.Size(114, 56);
     this.RefreshToolButton.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.RefreshToolButton.Click       += new System.EventHandler(this.RefreshToolButton_Click);
     resources.ApplyResources(this.RefreshToolButton, "RefreshToolButton");
     //
     // UpdateAllToolButton
     //
     this.UpdateAllToolButton.Image        = global::CKAN.Properties.Resources.update;
     this.UpdateAllToolButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.UpdateAllToolButton.Name         = "UpdateAllToolButton";
     this.UpdateAllToolButton.Size         = new System.Drawing.Size(232, 56);
     this.UpdateAllToolButton.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.UpdateAllToolButton.Click       += new System.EventHandler(this.MarkAllUpdatesToolButton_Click);
     resources.ApplyResources(this.UpdateAllToolButton, "UpdateAllToolButton");
     //
     // ApplyToolButton
     //
     this.ApplyToolButton.Image        = global::CKAN.Properties.Resources.apply;
     this.ApplyToolButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.ApplyToolButton.Name         = "ApplyToolButton";
     this.ApplyToolButton.Size         = new System.Drawing.Size(173, 56);
     this.ApplyToolButton.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.ApplyToolButton.Click       += new System.EventHandler(this.ApplyToolButton_Click);
     resources.ApplyResources(this.ApplyToolButton, "ApplyToolButton");
     //
     // FilterToolButton
     //
     this.FilterToolButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.FilterCompatibleButton,
         this.FilterInstalledButton,
         this.FilterInstalledUpdateButton,
         this.FilterReplaceableButton,
         this.FilterCachedButton,
         this.FilterUncachedButton,
         this.FilterNewButton,
         this.FilterNotInstalledButton,
         this.FilterIncompatibleButton,
         this.FilterAllButton,
         this.tagFilterToolStripSeparator,
         this.FilterTagsToolButton,
         this.FilterLabelsToolButton
     });
     this.FilterToolButton.DropDown.Opening += new System.ComponentModel.CancelEventHandler(FilterToolButton_DropDown_Opening);
     this.FilterToolButton.Image             = global::CKAN.Properties.Resources.filter;
     this.FilterToolButton.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.FilterToolButton.Name              = "FilterToolButton";
     this.FilterToolButton.Size              = new System.Drawing.Size(201, 56);
     this.FilterToolButton.Overflow          = ToolStripItemOverflow.AsNeeded;
     resources.ApplyResources(this.FilterToolButton, "FilterToolButton");
     //
     // FilterCompatibleButton
     //
     this.FilterCompatibleButton.Name   = "FilterCompatibleButton";
     this.FilterCompatibleButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterCompatibleButton.Click += new System.EventHandler(this.FilterCompatibleButton_Click);
     resources.ApplyResources(this.FilterCompatibleButton, "FilterCompatibleButton");
     //
     // FilterInstalledButton
     //
     this.FilterInstalledButton.Name   = "FilterInstalledButton";
     this.FilterInstalledButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterInstalledButton.Click += new System.EventHandler(this.FilterInstalledButton_Click);
     resources.ApplyResources(this.FilterInstalledButton, "FilterInstalledButton");
     //
     // FilterInstalledUpdateButton
     //
     this.FilterInstalledUpdateButton.Name   = "FilterInstalledUpdateButton";
     this.FilterInstalledUpdateButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterInstalledUpdateButton.Click += new System.EventHandler(this.FilterInstalledUpdateButton_Click);
     resources.ApplyResources(this.FilterInstalledUpdateButton, "FilterInstalledUpdateButton");
     //
     // FilterReplaceableButton
     //
     this.FilterReplaceableButton.Name   = "FilterReplaceableButton";
     this.FilterReplaceableButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterReplaceableButton.Click += new System.EventHandler(this.FilterReplaceableButton_Click);
     resources.ApplyResources(this.FilterReplaceableButton, "FilterReplaceableButton");
     //
     // FilterCachedButton
     //
     this.FilterCachedButton.Name   = "FilterCachedButton";
     this.FilterCachedButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterCachedButton.Click += new System.EventHandler(this.FilterCachedButton_Click);
     resources.ApplyResources(this.FilterCachedButton, "FilterCachedButton");
     //
     // FilterUncachedButton
     //
     this.FilterUncachedButton.Name   = "FilterUncachedButton";
     this.FilterUncachedButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterUncachedButton.Click += new System.EventHandler(this.FilterUncachedButton_Click);
     resources.ApplyResources(this.FilterUncachedButton, "FilterUncachedButton");
     //
     // FilterNewButton
     //
     this.FilterNewButton.Name   = "FilterNewButton";
     this.FilterNewButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterNewButton.Click += new System.EventHandler(this.FilterNewButton_Click);
     resources.ApplyResources(this.FilterNewButton, "FilterNewButton");
     //
     // FilterNotInstalledButton
     //
     this.FilterNotInstalledButton.Name   = "FilterNotInstalledButton";
     this.FilterNotInstalledButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterNotInstalledButton.Click += new System.EventHandler(this.FilterNotInstalledButton_Click);
     resources.ApplyResources(this.FilterNotInstalledButton, "FilterNotInstalledButton");
     //
     // FilterIncompatibleButton
     //
     this.FilterIncompatibleButton.Name   = "FilterIncompatibleButton";
     this.FilterIncompatibleButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterIncompatibleButton.Click += new System.EventHandler(this.FilterIncompatibleButton_Click);
     resources.ApplyResources(this.FilterIncompatibleButton, "FilterIncompatibleButton");
     //
     // FilterAllButton
     //
     this.FilterAllButton.Name   = "FilterAllButton";
     this.FilterAllButton.Size   = new System.Drawing.Size(307, 30);
     this.FilterAllButton.Click += new System.EventHandler(this.FilterAllButton_Click);
     resources.ApplyResources(this.FilterAllButton, "FilterAllButton");
     //
     // FilterTagsToolButton
     //
     this.FilterTagsToolButton.Name = "FilterTagsToolButton";
     this.FilterTagsToolButton.Size = new System.Drawing.Size(179, 22);
     resources.ApplyResources(this.FilterTagsToolButton, "FilterTagsToolButton");
     this.FilterTagsToolButton.DropDown.Opening += new System.ComponentModel.CancelEventHandler(FilterTagsToolButton_DropDown_Opening);
     //
     // FilterLabelsToolButton
     //
     this.FilterLabelsToolButton.Name = "FilterLabelsToolButton";
     this.FilterLabelsToolButton.Size = new System.Drawing.Size(179, 22);
     resources.ApplyResources(this.FilterLabelsToolButton, "FilterLabelsToolButton");
     this.FilterLabelsToolButton.DropDown.Opening += new System.ComponentModel.CancelEventHandler(FilterLabelsToolButton_DropDown_Opening);
     //
     // NavBackwardToolButton
     //
     this.NavBackwardToolButton.Image        = global::CKAN.Properties.Resources.backward;
     this.NavBackwardToolButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.NavBackwardToolButton.Name         = "NavBackwardToolButton";
     this.NavBackwardToolButton.Size         = new System.Drawing.Size(44, 56);
     this.NavBackwardToolButton.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.NavBackwardToolButton.Click       += new System.EventHandler(this.NavBackwardToolButton_Click);
     resources.ApplyResources(this.NavBackwardToolButton, "NavBackwardToolButton");
     //
     // NavForwardToolButton
     //
     this.NavForwardToolButton.Image        = global::CKAN.Properties.Resources.forward;
     this.NavForwardToolButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.NavForwardToolButton.Name         = "NavForwardToolButton";
     this.NavForwardToolButton.Size         = new System.Drawing.Size(44, 56);
     this.NavForwardToolButton.Overflow     = ToolStripItemOverflow.AsNeeded;
     this.NavForwardToolButton.Click       += new System.EventHandler(this.NavForwardToolButton_Click);
     resources.ApplyResources(this.NavForwardToolButton, "NavForwardToolButton");
     //
     // EditModSearches
     //
     this.EditModSearches.Dock            = System.Windows.Forms.DockStyle.Top;
     this.EditModSearches.ApplySearches  += EditModSearches_ApplySearches;
     this.EditModSearches.SurrenderFocus += EditModSearches_SurrenderFocus;
     //
     // ModGrid
     //
     this.ModGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ModGrid.AllowUserToAddRows        = false;
     this.ModGrid.AllowUserToDeleteRows     = false;
     this.ModGrid.AllowUserToResizeRows     = false;
     this.ModGrid.BackgroundColor           = System.Drawing.SystemColors.Window;
     this.ModGrid.EnableHeadersVisualStyles = false;
     this.ModGrid.ColumnHeadersDefaultCellStyle.BackColor = System.Drawing.SystemColors.Control;
     this.ModGrid.ColumnHeadersDefaultCellStyle.ForeColor = System.Drawing.SystemColors.ControlText;
     this.ModGrid.DefaultCellStyle.ForeColor  = System.Drawing.SystemColors.WindowText;
     this.ModGrid.CellBorderStyle             = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     this.ModGrid.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     this.ModGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.ModGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.Installed,
         this.AutoInstalled,
         this.UpdateCol,
         this.ReplaceCol,
         this.ModName,
         this.Author,
         this.InstalledVersion,
         this.LatestVersion,
         this.GameCompatibility,
         this.SizeCol,
         this.ReleaseDate,
         this.InstallDate,
         this.DownloadCount,
         this.Description
     });
     this.ModGrid.Location                      = new System.Drawing.Point(0, 111);
     this.ModGrid.Margin                        = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.ModGrid.MultiSelect                   = false;
     this.ModGrid.Name                          = "ModGrid";
     this.ModGrid.RowHeadersVisible             = false;
     this.ModGrid.SelectionMode                 = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.ModGrid.Size                          = new System.Drawing.Size(1536, 837);
     this.ModGrid.StandardTab                   = true;
     this.ModGrid.TabIndex                      = 12;
     this.ModGrid.CellContentClick             += new System.Windows.Forms.DataGridViewCellEventHandler(this.ModList_CellContentClick);
     this.ModGrid.CellMouseDoubleClick         += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.ModList_CellMouseDoubleClick);
     this.ModGrid.ColumnHeaderMouseClick       += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.ModList_HeaderMouseClick);
     this.ModGrid.SelectionChanged             += new System.EventHandler(this.ModList_SelectionChanged);
     this.ModGrid.KeyDown                      += new System.Windows.Forms.KeyEventHandler(this.ModList_KeyDown);
     this.ModGrid.KeyPress                     += new System.Windows.Forms.KeyPressEventHandler(this.ModList_KeyPress);
     this.ModGrid.MouseDown                    += new System.Windows.Forms.MouseEventHandler(this.ModList_MouseDown);
     this.ModGrid.GotFocus                     += new System.EventHandler(this.ModList_GotFocus);
     this.ModGrid.LostFocus                    += new System.EventHandler(this.ModList_LostFocus);
     this.ModGrid.CurrentCellDirtyStateChanged += new System.EventHandler(this.ModList_CurrentCellDirtyStateChanged);
     this.ModGrid.CellValueChanged             += new System.Windows.Forms.DataGridViewCellEventHandler(this.ModList_CellValueChanged);
     this.ModGrid.Resize                       += new System.EventHandler(this.ModList_Resize);
     //
     // Installed
     //
     this.Installed.Name     = "Installed";
     this.Installed.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.Installed.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     this.Installed.Width = 50;
     resources.ApplyResources(this.Installed, "Installed");
     //
     // AutoInstalled
     //
     this.AutoInstalled.Name     = "AutoInstalled";
     this.AutoInstalled.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.AutoInstalled.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     this.AutoInstalled.Width = 50;
     resources.ApplyResources(this.AutoInstalled, "AutoInstalled");
     //
     // UpdateCol
     //
     this.UpdateCol.Name     = "UpdateCol";
     this.UpdateCol.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.UpdateCol.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     this.UpdateCol.Width = 46;
     resources.ApplyResources(this.UpdateCol, "UpdateCol");
     //
     // ReplaceCol
     //
     this.ReplaceCol.Name     = "ReplaceCol";
     this.ReplaceCol.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.ReplaceCol.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     this.ReplaceCol.Width = 46;
     resources.ApplyResources(this.ReplaceCol, "ReplaceCol");
     //
     // ModName
     //
     this.ModName.Name     = "ModName";
     this.ModName.ReadOnly = true;
     this.ModName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.ModName.Width    = 250;
     resources.ApplyResources(this.ModName, "ModName");
     //
     // Author
     //
     this.Author.Name     = "Author";
     this.Author.ReadOnly = true;
     this.Author.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.Author.Width    = 120;
     resources.ApplyResources(this.Author, "Author");
     //
     // InstalledVersion
     //
     this.InstalledVersion.Name     = "InstalledVersion";
     this.InstalledVersion.ReadOnly = true;
     this.InstalledVersion.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.InstalledVersion.Width    = 70;
     resources.ApplyResources(this.InstalledVersion, "InstalledVersion");
     //
     // LatestVersion
     //
     this.LatestVersion.Name     = "LatestVersion";
     this.LatestVersion.ReadOnly = true;
     this.LatestVersion.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.LatestVersion.Width    = 70;
     resources.ApplyResources(this.LatestVersion, "LatestVersion");
     //
     // GameCompatibility
     //
     this.GameCompatibility.Name     = "GameCompatibility";
     this.GameCompatibility.ReadOnly = true;
     this.GameCompatibility.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.GameCompatibility.Width    = 78;
     resources.ApplyResources(this.GameCompatibility, "GameCompatibility");
     //
     // SizeCol
     //
     this.SizeCol.Name     = "SizeCol";
     this.SizeCol.ReadOnly = true;
     this.SizeCol.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.SizeCol.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
     resources.ApplyResources(this.SizeCol, "SizeCol");
     //
     // ReleaseDate
     //
     this.ReleaseDate.Name     = "ReleaseDate";
     this.ReleaseDate.ReadOnly = true;
     this.ReleaseDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.ReleaseDate.Width    = 140;
     resources.ApplyResources(this.ReleaseDate, "ReleaseDate");
     //
     // InstallDate
     //
     this.InstallDate.Name     = "InstallDate";
     this.InstallDate.ReadOnly = true;
     this.InstallDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.InstallDate.Width    = 140;
     resources.ApplyResources(this.InstallDate, "InstallDate");
     //
     // DownloadCount
     //
     this.DownloadCount.Name     = "DownloadCount";
     this.DownloadCount.ReadOnly = true;
     this.DownloadCount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.DownloadCount.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
     this.DownloadCount.Width = 70;
     resources.ApplyResources(this.DownloadCount, "DownloadCount");
     //
     // Description
     //
     this.Description.Name     = "Description";
     this.Description.ReadOnly = true;
     this.Description.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
     this.Description.Width    = 821;
     resources.ApplyResources(this.Description, "Description");
     //
     // ModListContextMenuStrip
     //
     this.ModListContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.labelsToolStripMenuItem,
         this.modListToolStripSeparator,
         this.reinstallToolStripMenuItem,
         this.downloadContentsToolStripMenuItem,
         this.purgeContentsToolStripMenuItem
     });
     this.ModListContextMenuStrip.Name = "ModListContextMenuStrip";
     this.ModListContextMenuStrip.Size = new System.Drawing.Size(180, 70);
     //
     // labelsToolStripMenuItem
     //
     this.labelsToolStripMenuItem.Name     = "labelsToolStripMenuItem";
     this.labelsToolStripMenuItem.Size     = new System.Drawing.Size(179, 22);
     this.labelsToolStripMenuItem.DropDown = this.LabelsContextMenuStrip;
     resources.ApplyResources(this.labelsToolStripMenuItem, "labelsToolStripMenuItem");
     //
     // reinstallToolStripMenuItem
     //
     this.reinstallToolStripMenuItem.Name   = "reinstallToolStripMenuItem";
     this.reinstallToolStripMenuItem.Size   = new System.Drawing.Size(179, 22);
     this.reinstallToolStripMenuItem.Click += new System.EventHandler(this.reinstallToolStripMenuItem_Click);
     resources.ApplyResources(this.reinstallToolStripMenuItem, "reinstallToolStripMenuItem");
     //
     // downloadContentsToolStripMenuItem
     //
     this.downloadContentsToolStripMenuItem.Name   = "downloadContentsToolStripMenuItem";
     this.downloadContentsToolStripMenuItem.Size   = new System.Drawing.Size(179, 22);
     this.downloadContentsToolStripMenuItem.Click += new System.EventHandler(this.downloadContentsToolStripMenuItem_Click);
     resources.ApplyResources(this.downloadContentsToolStripMenuItem, "downloadContentsToolStripMenuItem");
     //
     // purgeContentsToolStripMenuItem
     //
     this.purgeContentsToolStripMenuItem.Name   = "purgeContentsToolStripMenuItem";
     this.purgeContentsToolStripMenuItem.Size   = new System.Drawing.Size(179, 22);
     this.purgeContentsToolStripMenuItem.Click += new System.EventHandler(this.purgeContentsToolStripMenuItem_Click);
     resources.ApplyResources(this.purgeContentsToolStripMenuItem, "purgeContentsToolStripMenuItem");
     //
     // LabelsContextMenuStrip
     //
     this.LabelsContextMenuStrip.Name = "LabelsContextMenuStrip";
     this.LabelsContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.editLabelsToolStripMenuItem
     });
     this.LabelsContextMenuStrip.Size     = new System.Drawing.Size(180, 70);
     this.LabelsContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(LabelsContextMenuStrip_Opening);
     //
     // editLabelsToolStripMenuItem
     //
     this.editLabelsToolStripMenuItem.Name   = "editLabelsToolStripMenuItem";
     this.editLabelsToolStripMenuItem.Size   = new System.Drawing.Size(179, 22);
     this.editLabelsToolStripMenuItem.Click += new System.EventHandler(this.editLabelsToolStripMenuItem_Click);
     resources.ApplyResources(this.editLabelsToolStripMenuItem, "editLabelsToolStripMenuItem");
     //
     // ModListHeaderContextMenuStrip
     //
     this.ModListHeaderContextMenuStrip.Name            = "ModListHeaderContextMenuStrip";
     this.ModListHeaderContextMenuStrip.AutoSize        = true;
     this.ModListHeaderContextMenuStrip.ShowCheckMargin = true;
     this.ModListHeaderContextMenuStrip.ItemClicked    += new System.Windows.Forms.ToolStripItemClickedEventHandler(ModListHeaderContextMenuStrip_ItemClicked);
     //
     // InstallAllCheckbox
     //
     this.InstallAllCheckbox.Location        = new System.Drawing.Point(18, 57);
     this.InstallAllCheckbox.Size            = new System.Drawing.Size(20, 20);
     this.InstallAllCheckbox.Checked         = true;
     this.InstallAllCheckbox.CheckedChanged += new System.EventHandler(this.InstallAllCheckbox_CheckChanged);
     this.InstallAllCheckbox.TabIndex        = 11;
     this.InstallAllCheckbox.TabStop         = false;
     //
     // ManageMods
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.Controls.Add(this.InstallAllCheckbox);
     this.Controls.Add(this.ModGrid);
     this.Controls.Add(this.EditModSearches);
     this.Controls.Add(this.menuStrip2);
     this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name   = "ManageMods";
     this.Size   = new System.Drawing.Size(1544, 948);
     resources.ApplyResources(this, "$this");
     this.menuStrip2.ResumeLayout(false);
     this.menuStrip2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ModGrid)).EndInit();
     this.ModListContextMenuStrip.ResumeLayout(false);
     this.ModListHeaderContextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new SingleAssemblyComponentResourceManager(typeof(NewUpdateDialog));
     this.label1              = new System.Windows.Forms.Label();
     this.VersionLabel        = new System.Windows.Forms.Label();
     this.ReleaseNotesTextbox = new System.Windows.Forms.RichTextBox();
     this.InstallUpdateButton = new System.Windows.Forms.Button();
     this.CancelUpdateButton  = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(9, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(53, 13);
     this.label1.TabIndex = 0;
     resources.ApplyResources(this.label1, "label1");
     //
     // VersionLabel
     //
     this.VersionLabel.AutoSize = true;
     this.VersionLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.VersionLabel.Location = new System.Drawing.Point(68, 9);
     this.VersionLabel.Name     = "VersionLabel";
     this.VersionLabel.Size     = new System.Drawing.Size(43, 13);
     this.VersionLabel.TabIndex = 1;
     resources.ApplyResources(this.VersionLabel, "VersionLabel");
     //
     // ReleaseNotesTextbox
     //
     this.ReleaseNotesTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.ReleaseNotesTextbox.Location = new System.Drawing.Point(12, 25);
     this.ReleaseNotesTextbox.Name     = "ReleaseNotesTextbox";
     this.ReleaseNotesTextbox.ReadOnly = true;
     this.ReleaseNotesTextbox.Size     = new System.Drawing.Size(402, 246);
     this.ReleaseNotesTextbox.TabIndex = 3;
     this.ReleaseNotesTextbox.Text     = "";
     //
     // InstallUpdateButton
     //
     this.InstallUpdateButton.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.InstallUpdateButton.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.InstallUpdateButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.InstallUpdateButton.Location                = new System.Drawing.Point(339, 277);
     this.InstallUpdateButton.Name                    = "InstallUpdateButton";
     this.InstallUpdateButton.Size                    = new System.Drawing.Size(75, 23);
     this.InstallUpdateButton.TabIndex                = 4;
     this.InstallUpdateButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.InstallUpdateButton, "InstallUpdateButton");
     //
     // CancelUpdateButton
     //
     this.CancelUpdateButton.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.CancelUpdateButton.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.CancelUpdateButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.CancelUpdateButton.Location                = new System.Drawing.Point(258, 277);
     this.CancelUpdateButton.Name                    = "CancelUpdateButton";
     this.CancelUpdateButton.Size                    = new System.Drawing.Size(75, 23);
     this.CancelUpdateButton.TabIndex                = 5;
     this.CancelUpdateButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.CancelUpdateButton, "CancelUpdateButton");
     //
     // NewUpdateDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(426, 310);
     this.Controls.Add(this.CancelUpdateButton);
     this.Controls.Add(this.InstallUpdateButton);
     this.Controls.Add(this.ReleaseNotesTextbox);
     this.Controls.Add(this.VersionLabel);
     this.Controls.Add(this.label1);
     this.Icon        = Properties.Resources.AppIcon;
     this.MinimumSize = new System.Drawing.Size(354, 245);
     this.Name        = "NewUpdateDialog";
     resources.ApplyResources(this, "$this");
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new SingleAssemblyComponentResourceManager(typeof(SelectionDialog));
     this.panel1        = new System.Windows.Forms.Panel();
     this.MessageLabel  = new System.Windows.Forms.Label();
     this.SelectButton  = new System.Windows.Forms.Button();
     this.DefaultButton = new System.Windows.Forms.Button();
     this.CancelButton  = new System.Windows.Forms.Button();
     this.OptionsList   = new System.Windows.Forms.ListBox();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.MessageLabel);
     this.panel1.Controls.Add(this.OptionsList);
     this.panel1.Controls.Add(this.CancelButton);
     this.panel1.Controls.Add(this.DefaultButton);
     this.panel1.Controls.Add(this.SelectButton);
     this.panel1.Location     = new System.Drawing.Point(10, 10);
     this.panel1.Size         = new System.Drawing.Size(400, 400);
     this.panel1.Name         = "panel1";
     this.OptionsList.TabStop = false;
     this.DefaultButton.UseVisualStyleBackColor = true;
     //
     // MessageLabel
     //
     this.MessageLabel.Location  = new System.Drawing.Point(5, 5);
     this.MessageLabel.Size      = new System.Drawing.Size(390, 40);
     this.MessageLabel.Name      = "MessageLabel";
     this.OptionsList.TabStop    = false;
     this.MessageLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.DefaultButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.MessageLabel, "MessageLabel");
     //
     // OptionsList
     //
     this.OptionsList.Location                  = new System.Drawing.Point(5, 55);
     this.OptionsList.Size                      = new System.Drawing.Size(390, 315);
     this.OptionsList.SelectionMode             = System.Windows.Forms.SelectionMode.One;
     this.OptionsList.MultiColumn               = false;
     this.OptionsList.SelectedIndexChanged     += new System.EventHandler(OptionsList_SelectedIndexChanged);
     this.OptionsList.Name                      = "OptionsList";
     this.DefaultButton.UseVisualStyleBackColor = true;
     //
     // SelectButton
     //
     this.SelectButton.Location                = new System.Drawing.Point(325, 375);
     this.SelectButton.Size                    = new System.Drawing.Size(60, 20);
     this.SelectButton.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.SelectButton.Name                    = "SelectButton";
     this.SelectButton.TabIndex                = 1;
     this.SelectButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.SelectButton, "SelectButton");
     //
     // DefaultButton
     //
     this.DefaultButton.Location                = new System.Drawing.Point(160, 375);
     this.DefaultButton.Size                    = new System.Drawing.Size(60, 20);
     this.DefaultButton.DialogResult            = System.Windows.Forms.DialogResult.Yes;
     this.DefaultButton.Name                    = "SelectButton";
     this.DefaultButton.TabIndex                = 0;
     this.DefaultButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.DefaultButton, "DefaultButton");
     //
     // CancelButton
     //
     this.CancelButton.Location                = new System.Drawing.Point(5, 375);
     this.CancelButton.Size                    = new System.Drawing.Size(60, 20);
     this.CancelButton.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.CancelButton.Name                    = "CancelButton";
     this.CancelButton.TabIndex                = 2;
     this.CancelButton.UseVisualStyleBackColor = true;
     resources.ApplyResources(this.CancelButton, "CancelButton");
     //
     // SelectionDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(420, 420);
     this.Controls.Add(this.panel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Icon            = Properties.Resources.AppIcon;
     this.Name            = "SelectionDialog";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     resources.ApplyResources(this, "$this");
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#5
0
        private void UpdateModInfo(GUIMod gui_module)
        {
            CkanModule module = gui_module.ToModule();

            Util.Invoke(MetadataModuleNameTextBox, () => MetadataModuleNameTextBox.Text = module.name);
            UpdateTagsAndLabels(module);
            Util.Invoke(MetadataModuleAbstractLabel, () => MetadataModuleAbstractLabel.Text = module.@abstract);
            Util.Invoke(MetadataModuleDescriptionTextBox, () =>
            {
                MetadataModuleDescriptionTextBox.Text = module.description
                                                        ?.Replace("\r\n", "\n").Replace("\n", Environment.NewLine);
                MetadataModuleDescriptionTextBox.ScrollBars =
                    string.IsNullOrWhiteSpace(module.description)
                        ? ScrollBars.None
                        : ScrollBars.Vertical;
            });

            Util.Invoke(MetadataModuleVersionTextBox, () => MetadataModuleVersionTextBox.Text = gui_module.LatestVersion.ToString());
            Util.Invoke(MetadataModuleLicenseTextBox, () => MetadataModuleLicenseTextBox.Text = string.Join(", ", module.license));
            Util.Invoke(MetadataModuleAuthorTextBox, () => MetadataModuleAuthorTextBox.Text   = gui_module.Authors);
            Util.Invoke(MetadataIdentifierTextBox, () => MetadataIdentifierTextBox.Text       = module.identifier);

            Util.Invoke(MetadataModuleReleaseStatusTextBox, () =>
            {
                if (module.release_status == null)
                {
                    ReleaseLabel.Visible = false;
                    MetadataModuleReleaseStatusTextBox.Visible = false;
                    MetaDataLowerLayoutPanel.LayoutSettings.RowStyles[3].Height = 0;
                }
                else
                {
                    ReleaseLabel.Visible = true;
                    MetadataModuleReleaseStatusTextBox.Visible = true;
                    MetaDataLowerLayoutPanel.LayoutSettings.RowStyles[3].Height = 30;
                    MetadataModuleReleaseStatusTextBox.Text = module.release_status.ToString();
                }
            });
            Util.Invoke(MetadataModuleGameCompatibilityTextBox, () => MetadataModuleGameCompatibilityTextBox.Text = gui_module.GameCompatibilityLong);

            Util.Invoke(ModInfoTabControl, () =>
            {
                // Mono doesn't draw TabPage.ImageIndex, so fake it
                const string fakeStopSign          = "<!> ";
                ComponentResourceManager resources = new SingleAssemblyComponentResourceManager(typeof(ModInfo));
                resources.ApplyResources(RelationshipTabPage, "RelationshipTabPage");
                resources.ApplyResources(AllModVersionsTabPage, "AllModVersionsTabPage");
                if (gui_module.IsIncompatible)
                {
                    if (!module.IsCompatibleKSP(manager.CurrentInstance.VersionCriteria()))
                    {
                        AllModVersionsTabPage.Text = fakeStopSign + AllModVersionsTabPage.Text;
                    }
                    else
                    {
                        RelationshipTabPage.Text = fakeStopSign + RelationshipTabPage.Text;
                    }
                }
            });
            Util.Invoke(ReplacementTextBox, () =>
            {
                if (module.replaced_by == null)
                {
                    ReplacementLabel.Visible   = false;
                    ReplacementTextBox.Visible = false;
                    MetaDataLowerLayoutPanel.LayoutSettings.RowStyles[6].Height = 0;
                }
                else
                {
                    ReplacementLabel.Visible   = true;
                    ReplacementTextBox.Visible = true;
                    MetaDataLowerLayoutPanel.LayoutSettings.RowStyles[6].Height = 30;
                    ReplacementTextBox.Text = module.replaced_by.ToString();
                }
            });

            Util.Invoke(MetaDataLowerLayoutPanel, () =>
            {
                ClearResourceLinks();
                var res = module.resources;
                if (res != null)
                {
                    AddResourceLink(Properties.Resources.ModInfoHomepageLabel, res.homepage);
                    AddResourceLink(Properties.Resources.ModInfoSpaceDockLabel, res.spacedock);
                    AddResourceLink(Properties.Resources.ModInfoCurseLabel, res.curse);
                    AddResourceLink(Properties.Resources.ModInfoRepositoryLabel, res.repository);
                    AddResourceLink(Properties.Resources.ModInfoBugTrackerLabel, res.bugtracker);
                    AddResourceLink(Properties.Resources.ModInfoContinuousIntegrationLabel, res.ci);
                    AddResourceLink(Properties.Resources.ModInfoLicenseLabel, res.license);
                    AddResourceLink(Properties.Resources.ModInfoManualLabel, res.manual);
                    AddResourceLink(Properties.Resources.ModInfoMetanetkanLabel, res.metanetkan);
                    AddResourceLink(Properties.Resources.ModInfoRemoteAvcLabel, res.remoteAvc);
                    AddResourceLink(Properties.Resources.ModInfoStoreLabel, res.store);
                    AddResourceLink(Properties.Resources.ModInfoSteamStoreLabel, res.steamstore);
                }
            });
        }