コード例 #1
0
 // constructor
 public Items(Shops shopsEditor)
 {
     this.shopsEditor = shopsEditor;
     InitializeComponent();
     itemName.BackgroundImage = Model.MenuBG;
     labelWindow = new EditLabel(itemName, itemNum, "Items", false);
     InitializeStrings();
     RefreshItems();
     if (settings.RememberLastIndex)
     {
         index = settings.LastItem;
     }
     //
     this.History = new History(this, itemName, itemNum);
 }
コード例 #2
0
 // constructor
 public ItemsEditor()
 {
     InitializeComponent();
     Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click));
     Do.AddShortcut(toolStrip3, Keys.F1, helpTips);
     Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor);
     this.toolTip1.InitialDelay = 0;
     // create editors
     shopsEditor          = new Shops(this);
     shopsEditor.TopLevel = false;
     shopsEditor.Dock     = DockStyle.Left;
     panel1.Controls.Add(shopsEditor);
     shopsEditor.Visible  = true;
     itemsEditor          = new Items(shopsEditor);
     itemsEditor.TopLevel = false;
     itemsEditor.Dock     = DockStyle.Left;
     panel1.Controls.Add(itemsEditor);
     itemsEditor.Visible = true;
     new ToolTipLabel(this, baseConvertor, helpTips);
     //
     this.History = new History(this, false);
 }