Exemple #1
0
        public MealSearcher(int idDiet)
        {
            InitializeComponent();
            this.ClientSize = new System.Drawing.Size(815, 570);


            /// FoodType load
            foodTypeDict  = LoadDB.LoadDBByte("FoodTypes", "IdFoodTypes", "Type");
            foodStyleDict = LoadDB.LoadDBByte("FoodStyle", "IdStyle", "Style");
            foodDietDict  = LoadDB.LoadDBByte("FoodDiet", "IdDiet", "Diet");

            /// CheckBoxLoad
            LoadCheckListBox(chLBFoodType, foodTypeDict);
            LoadCheckListBox(chLBDiet, foodDietDict);
            LoadCheckListBox(chLBStyle, foodStyleDict);

            /// Ingridients load
            LoadIngridients();
            Search();


            this.idDiet = idDiet;


            datTimPickDate.Value        = DateTime.Today.Date + new TimeSpan(12, 00, 00);
            datTimPickDate.CustomFormat = "HH:mm - dddd d MMMM yyyy";
        }
Exemple #2
0
        public AddNewRecipe()
        {
            InitializeComponent();
            LoadIngridients();
            /// FoodType/Style/Diet load
            foodTypeDict  = LoadDB.LoadDBByte("FoodTypes", "IdFoodTypes", "Type");
            foodStyleDict = LoadDB.LoadDBByte("FoodStyle", "IdStyle", "Style");
            foodDietDict  = LoadDB.LoadDBByte("FoodDiet", "IdDiet", "Diet");

            LoadComboBox(comBDiet, foodDietDict);
            LoadComboBox(comBStyle, foodStyleDict);
            LoadComboBox(comBType, foodTypeDict);

            LoadMeasureTypes();
        }
Exemple #3
0
        public Main()
        {
            InitializeComponent();
            this.ClientSize = new System.Drawing.Size(818, 575);


            /// FoodType load
            foodTypeDict  = LoadDB.LoadDBByte("FoodTypes", "IdFoodTypes", "Type");
            foodStyleDict = LoadDB.LoadDBByte("FoodStyle", "IdStyle", "Style");
            foodDietDict  = LoadDB.LoadDBByte("FoodDiet", "IdDiet", "Diet");

            /// CheckBoxLoad
            LoadCheckListBox(chLBFoodType, foodTypeDict);
            LoadCheckListBox(chLBDiet, foodDietDict);
            LoadCheckListBox(chLBStyle, foodStyleDict);

            /// Ingridients load
            LoadIngridients();
            Search();
        }