コード例 #1
0
        public FormAdmin(Form form, int id)
        {
            InitializeComponent();

            stController          = new StatisticsController();
            lblTotalIncome.Text   = stController.GetTotalIncome().Values.First().ToString() + "$";
            lbTotprNumber.Text    = stController.GetTotalProducts().ToString();
            lbltotEmplNumber.Text = stController.GetTotalUsers().ToString();

            uc           = new UserController();
            loggedUserId = id;
            sc           = new StockController();
            currentID    = id;
            dc           = new DepartmentController();

            rc                   = new RequestsController();
            allLabels            = new List <Control>();
            displayedRequestsIDs = new List <int>();
        }
コード例 #2
0
 public StockController() : base()
 {
     Stocks        = new List <Stock>();
     StockRequests = new List <StockRequest>();
     dc            = new DepartmentController();
 }