public override void SetOptionsLevel()
        {
            IOptionDAO    dao     = new OptionDAO();
            float         cost    = dao.GetPremiumCost();
            List <Option> options = dao.GetPremiumOptions();

            decoratedCar.FinalPrice  = decoratedCar.InitialPrice;
            decoratedCar.FinalPrice += cost;
            decoratedCar.Options     = options;
        }
        private void LoadGrid()
        {
            DataSet ds;

            ds = new OptionDAO().SelectAllDataset();
            ds.Tables[0].PrimaryKey = new DataColumn[] { ds.Tables[0].Columns["OptionId"] };
            gvFeatureList.SettingsText.ConfirmDelete = Messages.Delete_Confirm;
            gvFeatureList.DataSource = ds.Tables[0];
            gvFeatureList.DataBind();
        }
Exemple #3
0
 public AddLessonViewModel()
 {
     Options   = new List <Option>();
     optionDAO = new OptionDAO();
     fillOptions();
 }
 public OptionsViewModel()
 {
     Options   = new List <Option>();
     optionDAO = new OptionDAO();
     fillOptions();
 }