Changeset 13558 for lang

Show
Ignore:
Timestamp:
06/09/08 01:44:45 (5 years ago)
Author:
poolmmjp
Message:

最小化のときはタスクトレイだけに残るようにした。

Location:
lang/csharp/MMMMB/MMMMB
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/MMMMB/MMMMB/MainForm.Designer.cs

    r11290 r13558  
    6262            this.exitMenu}); 
    6363            this.notifyMenu.Name = "notifyMenu"; 
    64             this.notifyMenu.Size = new System.Drawing.Size(153, 76); 
     64            this.notifyMenu.Size = new System.Drawing.Size(110, 54); 
    6565            //  
    6666            // openMenu 
     
    6868            this.openMenu.Font = new System.Drawing.Font("MS UI Gothic", 9F, System.Drawing.FontStyle.Bold); 
    6969            this.openMenu.Name = "openMenu"; 
    70             this.openMenu.Size = new System.Drawing.Size(152, 22); 
     70            this.openMenu.Size = new System.Drawing.Size(109, 22); 
    7171            this.openMenu.Text = "開く(&O)"; 
    7272            this.openMenu.Click += new System.EventHandler(this.openMenu_Click); 
     
    7575            //  
    7676            this.notifyMenuSeparator.Name = "notifyMenuSeparator"; 
    77             this.notifyMenuSeparator.Size = new System.Drawing.Size(149, 6); 
     77            this.notifyMenuSeparator.Size = new System.Drawing.Size(106, 6); 
    7878            //  
    7979            // exitMenu 
    8080            //  
    8181            this.exitMenu.Name = "exitMenu"; 
    82             this.exitMenu.Size = new System.Drawing.Size(152, 22); 
     82            this.exitMenu.Size = new System.Drawing.Size(109, 22); 
    8383            this.exitMenu.Text = "終了(&X)"; 
    8484            this.exitMenu.Click += new System.EventHandler(this.exitMenu_Click); 
     
    9595            this.Padding = new System.Windows.Forms.Padding(3); 
    9696            this.Text = "MMMMB"; 
     97            this.Resize += new System.EventHandler(this.MainForm_Resize); 
    9798            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); 
    9899            this.Load += new System.EventHandler(this.MainForm_Load); 
  • lang/csharp/MMMMB/MMMMB/MainForm.cs

    r11290 r13558  
    131131        private void openMenu_Click(object sender, EventArgs e) 
    132132        { 
     133            this.Show(); 
     134            this.WindowState = FormWindowState.Normal; 
    133135            this.Activate(); 
    134136        } 
     
    138140            this.Close(); 
    139141        } 
     142 
     143        private void MainForm_Resize(object sender, EventArgs e) 
     144        { 
     145            if (this.WindowState == FormWindowState.Minimized) 
     146            { 
     147                this.Hide(); 
     148            } 
     149        } 
    140150    } 
    141151}