コード例 #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);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Editor.cs プロジェクト: ilvmoney/hasuite-new
 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);
     }
 }
コード例 #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);
 }