コード例 #1
0
ファイル: MainForm.cs プロジェクト: MortyDice/fomm
 /// <summary>
 ///   Handles the <see cref="Button.Click" /> event of the file manager button.
 /// </summary>
 /// <remarks>
 ///   Displays the file manager.
 /// </remarks>
 /// <param name="sender">The object that trigger the event.</param>
 /// <param name="e">An <see cref="EventArgs" /> describing the event arguments.</param>
 private void butFileManager_Click(object sender, EventArgs e)
 {
     if (m_fmgFileManagerForm != null)
     {
         m_fmgFileManagerForm.Focus();
     }
     else
     {
         m_fmgFileManagerForm             = new FileManager.FileManager();
         m_fmgFileManagerForm.FormClosed += delegate
         {
             m_fmgFileManagerForm = null;
         };
         m_fmgFileManagerForm.Show();
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: IntegralLee/fomm
 /// <summary>
 ///   Handles the <see cref="Button.Click" /> event of the file manager button.
 /// </summary>
 /// <remarks>
 ///   Displays the file manager.
 /// </remarks>
 /// <param name="sender">The object that trigger the event.</param>
 /// <param name="e">An <see cref="EventArgs" /> describing the event arguments.</param>
 private void butFileManager_Click(object sender, EventArgs e)
 {
   if (m_fmgFileManagerForm != null)
   {
     m_fmgFileManagerForm.Focus();
   }
   else
   {
     m_fmgFileManagerForm = new FileManager.FileManager();
     m_fmgFileManagerForm.FormClosed += delegate
     {
       m_fmgFileManagerForm = null;
     };
     m_fmgFileManagerForm.Show();
   }
 }