Exemplo n.º 1
0
        public async void load_data_once_label(Label label_price, Label label_id, string query, string key, string value)
        {
            CurtainDesigner.Models.Classes.HCManage <L>             model = new CurtainDesigner.Models.Classes.HCManage <L>();
            CurtainDesigner.Views.Classes.HCViewManage <O, L, F, T> view  = new CurtainDesigner.Views.Classes.HCViewManage <O, L, F, T>();
            SqlDataReader reader = null;

            reader = await model.getDataFromDB(query);

            view.loadDataFromDB_label(label_price, label_id, reader, value, key);
        }
Exemplo n.º 2
0
        public async void load_TypePriceData(F form, string type_id)
        {
            CurtainDesigner.Models.Classes.HCManage <L>             model = new CurtainDesigner.Models.Classes.HCManage <L>();
            CurtainDesigner.Views.Classes.HCViewManage <O, L, F, T> view  = new CurtainDesigner.Views.Classes.HCViewManage <O, L, F, T>();
            SqlDataReader reader = null;

            reader = await model.getDataFromDB($"Select * From [HC_types] fcc Where [fcc].[Type_id] = {type_id};");

            view.loadDataFromDB_label((form as CurtainDesigner.OrderForms.FormHCOrder).labelTypePrice, reader, "Price");

            model.closeConnection();
        }