// constructor
 public FormationsEditor()
 {
     InitializeComponent();
     Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click));
     Do.AddShortcut(toolStrip3, Keys.F1, helpTips);
     Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor);
     // create editors
     formationsEditor     = new Formations();
     packsEditor          = new FormationPacks(formationsEditor);
     packsEditor.TopLevel = false;
     packsEditor.Dock     = DockStyle.Top;
     panel1.Controls.Add(packsEditor);
     packsEditor.Visible       = true;
     formationsEditor.TopLevel = false;
     formationsEditor.Dock     = DockStyle.Top;
     panel1.Controls.Add(formationsEditor);
     formationsEditor.Visible = true;
     new ToolTipLabel(this, baseConvertor, helpTips);
     //
     if (settings.RememberLastIndex)
     {
         packsEditor.Index      = Settings.Default.LastFormationPack;
         formationsEditor.Index = Settings.Default.LastFormation;
     }
     this.History = new History(this, false);
 }
 // constructor
 public FormationPacks(Formations formationsEditor)
 {
     this.formationsEditor = formationsEditor;
     InitializeComponent();
     searchWindow = new Search(packNum, searchBox, searchFormationPacks, new Function(LoadSearch), "treeView");
     labelWindow  = new EditLabel(null, packNum, "Packs", false);
     RefreshFormationPacks();
     //
     this.History = new History(this, null, packNum);
 }