Ejemplo n.º 1
0
 private void btnHaRepacker_Click(object sender, EventArgs e)
 {
     try
     {
         HaRepacker.Program.WzMan = new HaRepackerLib.WzFileManager();
         bool firstRun = HaRepacker.Program.PrepareApplication();
         HaRepacker.GUI.MainForm mf = new HaRepacker.GUI.MainForm(null, false, firstRun);
         mf.unloadAllToolStripMenuItem.Visible = false;
         mf.reloadAllToolStripMenuItem.Visible = false;
         foreach (DictionaryEntry entry in Program.WzManager.wzFiles)
         {
             mf.Interop_AddLoadedWzFileToManager((WzFile)entry.Value);
         }
         mf.ShowDialog();
         HaRepacker.Program.EndApplication(false);
     }
     catch (Exception ex)
     {
         HaRepackerLib.Warning.Error("Exception while running HaRepacker: " + ex.Message);
     }
 }
        void Ribbon_HaRepackerClicked()
        {
            WaitWindow ww = new WaitWindow("Opening HaRepacker...");

            ww.Show();
            Application.DoEvents();
            HaRepacker.Program.WzMan = new HaRepacker.WzFileManager();
            bool firstRun = HaRepacker.Program.PrepareApplication(false);

            HaRepacker.GUI.MainForm mf = new HaRepacker.GUI.MainForm(null, false, firstRun);
            mf.unloadAllToolStripMenuItem.Visible = false;
            mf.reloadAllToolStripMenuItem.Visible = false;
            foreach (KeyValuePair <string, WzFile> entry in Program.WzManager.wzFiles)
            {
                mf.Interop_AddLoadedWzFileToManager(entry.Value);
            }
            ww.EndWait();
            lock (multiBoard)
            {
                mf.ShowDialog();
            }
            HaRepacker.Program.EndApplication(false, false);
        }
Ejemplo n.º 3
0
 private void btnHaRepacker_Click(object sender, EventArgs e)
 {
     try
     {
         HaRepacker.Program.WzMan = new HaRepackerLib.WzFileManager();
         bool firstRun = HaRepacker.Program.PrepareApplication();
         HaRepacker.GUI.MainForm mf = new HaRepacker.GUI.MainForm(null, false, firstRun);
         mf.unloadAllToolStripMenuItem.Visible = false;
         mf.reloadAllToolStripMenuItem.Visible = false;
         foreach (DictionaryEntry entry in Program.WzManager.wzFiles)
             mf.Interop_AddLoadedWzFileToManager((WzFile)entry.Value);
         mf.ShowDialog();
         HaRepacker.Program.EndApplication(false);
     }
     catch (Exception ex)
     {
         HaRepackerLib.Warning.Error("Exception while running HaRepacker: " + ex.Message);
     }
 }
Ejemplo n.º 4
0
 void ribbon_HaRepackerClicked()
 {
     WaitWindow ww = new WaitWindow("Opening HaRepacker...");
     ww.Show();
     Application.DoEvents();
     HaRepacker.Program.WzMan = new HaRepackerLib.WzFileManager();
     bool firstRun = HaRepacker.Program.PrepareApplication(false);
     HaRepacker.GUI.MainForm mf = new HaRepacker.GUI.MainForm(null, false, firstRun);
     mf.unloadAllToolStripMenuItem.Visible = false;
     mf.reloadAllToolStripMenuItem.Visible = false;
     foreach (KeyValuePair<string, WzFile> entry in Program.WzManager.wzFiles)
         mf.Interop_AddLoadedWzFileToManager(entry.Value);
     ww.EndWait();
     lock (multiBoard)
     {
         mf.ShowDialog();
     }
     HaRepacker.Program.EndApplication(false, false);
 }