コード例 #1
0
        public fMain(string username)
        {
            InitializeComponent();

            this.Text            = string.Empty;
            this.ControlBox      = false;
            this.MaximizedBounds = Screen.FromHandle(this.Handle).WorkingArea;

            this.lbDisplay.Text     = "Hello, " + StaffDAL.Instance.GetNamebyUsername(username);
            this.lbDisplay.Location = new Point((this.pnContainName.Width - lbDisplay.Width) / 2, this.lbDisplay.Location.Y);
            this.lbUserName.Text    = username;

            frmMenu  = new fMenu(lbUserName.Text);
            frmStaff = new fStaff(lbUserName.Text);
            frmOrder = new fOrder(lbUserName.Text);
            frmBill  = new fBill(lbUserName.Text);
            frmRoom  = new fRoomTable(frmOrder);
            frmOrder.LoadFormRoom(frmRoom);
            frmOrder.LoadFormMenu(frmMenu);
            frmMenu.LoadFormOrder(frmOrder);

            Enable();
        }
コード例 #2
0
 public void LoadFormOrder(fOrder formOrder)
 {
     frmOrder = formOrder;
 }