コード例 #1
0
ファイル: frmMenu.cs プロジェクト: thomasw234/StockManagement
 /// <summary>
 /// Initialises the menu
 /// </summary>
 /// <param name="mtMenuType">The type of menu to show</param>
 /// <param name="s">The size of the menu</param>
 /// <param name="t">A reference to the TillEngine</param>
 public frmMenu(MenuType mtMenuType, Size s, ref TillEngine.TillEngine t)
 {
     rAroundListboxes     = new Rectangle(0, 0, 0, 0);
     this.Size            = s;
     this.StartPosition   = FormStartPosition.CenterScreen;
     currentMenuType      = mtMenuType;
     sFontName            = Properties.Settings.Default.sFontName;
     sShopName            = t.sShopName();
     cFrmBackColour       = Properties.Settings.Default.cFrmBackColour;
     cFrmForeColour       = Properties.Settings.Default.cFrmForeColour;
     this.BackColor       = cFrmBackColour;
     this.ForeColor       = cFrmForeColour;
     this.FormBorderStyle = FormBorderStyle.None;
     this.ForeColor       = cFrmForeColour;
     CreateMenu(mtMenuType);
     tEngine     = t;
     this.Paint += new PaintEventHandler(frmMenu_Paint);
 }