Example #1
0
 /// <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();
     }
 }
Example #2
0
 /// <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();
   }
 }