コード例 #1
0
        public static void OnStockView(object sender, EventArgs e)
        {
            ScmView gui = (ScmView)sender;

            gui.viewList = ScmDataAccess.readStock();
            ScmDataConvert.ViewConvert(gui);
        }
コード例 #2
0
        public static void OnStockReport(object sender, EventArgs e)
        {
            ScmReport gui = (ScmReport)sender;

            gui.current_stock = ScmDataAccess.readStock();
            ScmDataFormat.reportFormat(gui);
        }
コード例 #3
0
        //Declare each possible event the mediator will handle

        public static void OnStockAdded(object sender, EventArgs e)
        {
            ScmAdd gui = (ScmAdd)sender;

            if (ScmValidate.validStock(gui))
            {
                ScmDataAccess.addStock(gui.submission);
            }
        }