public EditAmountOfProductWindow(DailyServer authorisation, NewDailyMealInscriptionWindow newDailyMealInscriptionWindow, ProductOfMeal editedProduct)
 {
     InitializeComponent();
     this._authorisation = authorisation;
     this._newDailyMealInscriptionWindow = newDailyMealInscriptionWindow;
     this._editedProduct = editedProduct;
     this.EditAmountOfProductW_ProductType_Label.Content = _editedProduct.PType;
     this._oldAmountOfProduct = _editedProduct.Amount;
     this.EditAmountOfProductW_AmountOfProduct_TBox.Text = _oldAmountOfProduct.ToString();
 }
Пример #2
0
        public EditMealWindow(Meal meal, TimeSpan time, DateTime date, NewDailyMealInscriptionWindow newDailyMealInscriptionWindow, int index, DailyServer authorisation)
        {
            InitializeComponent();

            this._authorisation = authorisation;
            this._meal = meal;
            this._dateOfInscription = date;
            this._newDailyMealInscriptionWindow = newDailyMealInscriptionWindow;
            this._indexEditedMealInLView = index;

            EditMealW_MealName_TBox.Text = _meal.MName;
            EditMealW_HoursSlider_Slider.Value = time.Hours;
            EditMealW_MinutesSlider_Slider.Value = time.Minutes;
        }