- More mono fixes

This commit is contained in:
gb.luke 2010-07-08 17:18:28 +00:00
parent e696cf65db
commit fbba04d759
2 changed files with 39 additions and 30 deletions

View File

@ -94,7 +94,7 @@
this.koreaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.koreaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveaswadbtn = new System.Windows.Forms.Button(); this.saveaswadbtn = new System.Windows.Forms.Button();
this.keepenccontents = new System.Windows.Forms.CheckBox(); this.keepenccontents = new System.Windows.Forms.CheckBox();
this.button3 = new System.Windows.Forms.Button(); this.clearButton = new System.Windows.Forms.Button();
this.packbox = new System.Windows.Forms.CheckBox(); this.packbox = new System.Windows.Forms.CheckBox();
this.decryptbox = new System.Windows.Forms.CheckBox(); this.decryptbox = new System.Windows.Forms.CheckBox();
this.localuse = new System.Windows.Forms.CheckBox(); this.localuse = new System.Windows.Forms.CheckBox();
@ -477,10 +477,9 @@
this.checkBox1.AutoSize = true; this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(9, 72); this.checkBox1.Location = new System.Drawing.Point(9, 72);
this.checkBox1.Name = "checkBox1"; this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(228, 30); this.checkBox1.Size = new System.Drawing.Size(199, 30);
this.checkBox1.TabIndex = 35; this.checkBox1.TabIndex = 35;
this.checkBox1.Text = "I accept that by storing my password\r\nanyone can open the proxy file and view it." + this.checkBox1.Text = "I understand that NUSD stores proxy\r\npasswords in plain text.";
"";
this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
// //
@ -679,27 +678,27 @@
this.keepenccontents.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.keepenccontents.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.keepenccontents.UseVisualStyleBackColor = true; this.keepenccontents.UseVisualStyleBackColor = true;
// //
// button3 // clearButton
// //
this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.clearButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.button3.AutoSize = true; this.clearButton.AutoSize = true;
this.button3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.clearButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.button3.BackColor = System.Drawing.Color.Transparent; this.clearButton.BackColor = System.Drawing.Color.Transparent;
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.clearButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button3.Image = global::NUS_Downloader.Properties.Resources.picture_empty; this.clearButton.Image = global::NUS_Downloader.Properties.Resources.picture_empty;
this.button3.Location = new System.Drawing.Point(238, 360); this.clearButton.Location = new System.Drawing.Point(238, 360);
this.button3.MaximumSize = new System.Drawing.Size(0, 24); this.clearButton.MaximumSize = new System.Drawing.Size(0, 24);
this.button3.MinimumSize = new System.Drawing.Size(0, 24); this.clearButton.MinimumSize = new System.Drawing.Size(0, 24);
this.button3.Name = "button3"; this.clearButton.Name = "clearButton";
this.button3.Size = new System.Drawing.Size(24, 24); this.clearButton.Size = new System.Drawing.Size(24, 24);
this.button3.TabIndex = 31; this.clearButton.TabIndex = 31;
this.button3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.clearButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.button3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.clearButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.button3.UseVisualStyleBackColor = false; this.clearButton.UseVisualStyleBackColor = false;
this.button3.Click += new System.EventHandler(this.ClearStatusbox); this.clearButton.Click += new System.EventHandler(this.ClearStatusbox);
this.button3.MouseEnter += new System.EventHandler(this.clearButton_MouseEnter); this.clearButton.MouseEnter += new System.EventHandler(this.clearButton_MouseEnter);
this.button3.MouseLeave += new System.EventHandler(this.clearButton_MouseLeave); this.clearButton.MouseLeave += new System.EventHandler(this.clearButton_MouseLeave);
// //
// packbox // packbox
// //
@ -729,15 +728,17 @@
// //
// localuse // localuse
// //
this.localuse.AutoSize = true;
this.localuse.Checked = true; this.localuse.Checked = true;
this.localuse.CheckState = System.Windows.Forms.CheckState.Checked; this.localuse.CheckState = System.Windows.Forms.CheckState.Checked;
this.localuse.Image = global::NUS_Downloader.Properties.Resources.drive_disk; this.localuse.Image = global::NUS_Downloader.Properties.Resources.drive_disk;
this.localuse.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.localuse.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.localuse.Location = new System.Drawing.Point(91, 390); this.localuse.Location = new System.Drawing.Point(91, 390);
this.localuse.MinimumSize = new System.Drawing.Size(0, 22);
this.localuse.Name = "localuse"; this.localuse.Name = "localuse";
this.localuse.Size = new System.Drawing.Size(171, 22); this.localuse.Size = new System.Drawing.Size(162, 22);
this.localuse.TabIndex = 8; this.localuse.TabIndex = 8;
this.localuse.Text = "Use Local Files If Available"; this.localuse.Text = "Use Local Files If Present";
this.localuse.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.localuse.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.localuse.UseVisualStyleBackColor = true; this.localuse.UseVisualStyleBackColor = true;
// //
@ -791,7 +792,7 @@
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.downloadstartbtn); this.Controls.Add(this.downloadstartbtn);
this.Controls.Add(this.wadnamebox); this.Controls.Add(this.wadnamebox);
this.Controls.Add(this.button3); this.Controls.Add(this.clearButton);
this.Controls.Add(this.Extrasbtn); this.Controls.Add(this.Extrasbtn);
this.Controls.Add(this.statusbox); this.Controls.Add(this.statusbox);
this.Controls.Add(this.packbox); this.Controls.Add(this.packbox);
@ -848,7 +849,7 @@
private System.Windows.Forms.ToolStripMenuItem TurboGrafxCDMenuList; private System.Windows.Forms.ToolStripMenuItem TurboGrafxCDMenuList;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem RegionCodesList; private System.Windows.Forms.ToolStripMenuItem RegionCodesList;
private System.Windows.Forms.Button button3; private System.Windows.Forms.Button clearButton;
private System.Windows.Forms.ContextMenuStrip extrasStrip; private System.Windows.Forms.ContextMenuStrip extrasStrip;
private System.Windows.Forms.ToolStripMenuItem loadInfoFromTMDToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem loadInfoFromTMDToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;

View File

@ -160,6 +160,12 @@ namespace NUS_Downloader
{ {
this.Font = new System.Drawing.Font("Tahoma", 8); this.Font = new System.Drawing.Font("Tahoma", 8);
InitializeComponent(); InitializeComponent();
if (Type.GetType("Mono.Runtime") != null)
{
saveaswadbtn.Text = "Save As";
clearButton.Text = "Clear";
keepenccontents.Text = "Keep Enc. Contents";
}
System.Drawing.Size mysize = new System.Drawing.Size(280, this.decryptbox.Top + this.decryptbox.Height + 30); System.Drawing.Size mysize = new System.Drawing.Size(280, this.decryptbox.Top + this.decryptbox.Height + 30);
this.MaximumSize = this.MinimumSize = this.Size = mysize; this.MaximumSize = this.MinimumSize = this.Size = mysize;
@ -3387,7 +3393,7 @@ namespace NUS_Downloader
// expand clear button // expand clear button
/*button3.Left = 194; /*button3.Left = 194;
button3.Size = new System.Drawing.Size(68, 21);*/ button3.Size = new System.Drawing.Size(68, 21);*/
button3.Text = "Clear"; clearButton.Text = "Clear";
//button3.ImageAlign = ContentAlignment.MiddleLeft; //button3.ImageAlign = ContentAlignment.MiddleLeft;
} }
@ -3396,7 +3402,8 @@ namespace NUS_Downloader
// shrink clear button // shrink clear button
/*button3.Left = 239; /*button3.Left = 239;
button3.Size = new System.Drawing.Size(23, 21);*/ button3.Size = new System.Drawing.Size(23, 21);*/
button3.Text = String.Empty; if (Type.GetType ("Mono.Runtime") == null)
clearButton.Text = String.Empty;
//button3.ImageAlign = ContentAlignment.MiddleCenter; //button3.ImageAlign = ContentAlignment.MiddleCenter;
} }
@ -3412,6 +3419,7 @@ namespace NUS_Downloader
{ {
/*saveaswadbtn.Left = 230; /*saveaswadbtn.Left = 230;
saveaswadbtn.Size = new Size(32, 22);*/ saveaswadbtn.Size = new Size(32, 22);*/
if (Type.GetType("Mono.Runtime") == null)
saveaswadbtn.Text = String.Empty; saveaswadbtn.Text = String.Empty;
//saveaswadbtn.ImageAlign = ContentAlignment.MiddleCenter; //saveaswadbtn.ImageAlign = ContentAlignment.MiddleCenter;
} }