Example #1
0
 public CategoryGroupDialog()
 {
     InitializeComponent();
     this._repo = new CategoryGroupRepo();
     this.Code = "";
     this.Name = "";
 }
Example #2
0
        public McssMaster(MCSS model = null, SessionInfo _session = null)
        {
            InitializeComponent();
            this._repo = new McssRepo();
            this._repoCustomer = new CustomerRepo();
            this._repoCoating = new CoatingRepo();
            this._repoSpec = new SpecRepo();
            this._repoCommodity = new Commodity();
            this._repoSupplier = new SupplierRepo();
            this._repoBT = new BussinessTypeRepo();
            this._repoMaker = new MakerRepo();
            this._repoMill = new MillRepo();
            this._repoCatg = new CategoryGroupRepo();
            specialRef = new Dictionary<int, string>();

            #region Dashboard
            if (model == null)
            {
                this.McssContent = new MCSS();
                this.ModelClone = new MCSS();
                this.Initail = new InitialModel();
            }
            else
            {
                this.McssContent = model;
                ModelClone = (MCSS)model.Clone();
            }
            epiSession = _session;
            #endregion

            #region Direct form
            //epiSession = new SessionInfo();
            //if (epiSession.SessionID == null)
            //{
            //    Login frm = new Login();
            //    frm.ShowDialog();
            //}
            //else if (epiSession.SessionID == "x")
            //{
            //    Application.Exit();
            //}
            //else
            //{
            //    this.Text = epiSession.CompanyName;
            //}
            #endregion
        }