void form_mainWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (form_mainWindow.WndClosed)
         this.Close();
     else
     {
         form_mainWindow.FormClosed -= form_mainWindow_FormClosed;
         form_mainWindow = null;
     }
 }
 public void ShowMainWindow()
 {            
     if (form_mainWindow == null || form_mainWindow.IsDisposed)
     {
         form_mainWindow = new GUI.Form_main();
         form_mainWindow.Gestures = m_gestures;
         form_mainWindow.Engine = m_engine;
         form_mainWindow.SetListView();
         form_mainWindow.FormClosed += this.form_mainWindow_FormClosed;
         form_mainWindow.Translate();
     }
     form_mainWindow.Show();
     form_mainWindow.ShowMainForm();
 }