Esempio n. 1
0
 /// <summary>
 /// @author : khoaht
 /// @createDate : 22/05/2008
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mnuItemAbout_Click(object sender, EventArgs e)
 {
     AboutAdvertise aboutbox = new AboutAdvertise();
     aboutbox.ShowDialog();
 }
Esempio n. 2
0
        /// <summary>
        /// @author:khoaht
        /// @createdate:5/2008
        /// </summary>
        /// <param name="formId"></param>
        /// <returns></returns>
        private CommonForm GetFormObject(int formId)
        {
            CommonForm frm = null;
            switch (formId)
            {
                case CONFIG.FORM_CUSTOMER:
                    frm = new FrmCustomer();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_CLIP:
                    frm = new FrmClip();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_WORKSTATION:
                    frm = new FrmWorkstation();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_WORKSTATION_STATUS:
                    frm = new FrmListWorkstationStatus();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_AREA:
                    frm = new FrmArea();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_SCHEDULE:
                    frm = new FrmSchedule();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_CSDL:
                    frm = new FrmDBConfigServer();
                    break;
                case CONFIG.FORM_ABOUT:
                    frm = new AboutAdvertise();
                    break;
                case CONFIG.FORM_CONFIG_PROPERTIES:
                    frm = new FrmConfigProperties();
                    break;
                    // REPORT FORM
                case   CONFIG.FORM_REPORT_CURRENCY:
                    frm = new FrmCurrencyReport();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_REPORT_WORKSTATION:
                    frm = new FrmRptWorkstatoinFree();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_REPORT_CUSTOMER:
                    frm = new FrmRptScheduleBillDetail();
                    frm.MdiParent = this;
                    break;

                     // Admin tool
                case CONFIG.FORM_ADMIN_GROUPS:
                    frm = new FrmGroup();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_ADMIN_USERS:
                    frm = new FrmUser();
                    frm.MdiParent = this;
                    break;
            }

            return frm;
        }