public NewDailyPhotoInscriptionWindow(DailyServer authorisation, DateTime dateOfInscription, DailyWindow dailyWindow)
 {
     InitializeComponent();
     this._authorisation = authorisation;
     this._dailyWindow = dailyWindow;
     this._dateOfInscription = dateOfInscription;
 }
 public EditMensurationResultWindow(DailyServer authorisation, DailyWindow dailyWindow, Mensuration mensuration)
 {
     InitializeComponent();
     this._authorisation = authorisation;
     this._dailyWindow = dailyWindow;
     this._mensuration = mensuration;
     this.EditMensurationResultW_MensurationName_Label.Content = _mensuration.MName;
     this.EditMensurationResultW_ResultKind_Label.Content = _mensuration.MResultKind;
     this.EditMensurationResultW_MensurationResult_TBox.Text = _mensuration.MResultValue.ToString();
 }
        public NewDailyTrainingInscriptionWindow(DailyServer authorisation, DailyTrainingHelper dailyTrainingHelper, DailyWindow dailyWindow)
        {
            InitializeComponent();
            this._authorisation = authorisation;
            this._dailyTrainingHelper = dailyTrainingHelper;
            this._dailyWindow = dailyWindow;
            mainConstructor = false;

            NewDailyTrainingInscriptonW_Category_Label.Visibility = Visibility.Hidden;
            NewDailyTrainingInscriptionW_ChooseExerciseCategory_CBox.Visibility = Visibility.Hidden;

            NewDailyTrainingInscriptionW_ChooseExercise_CBox.Items.Add(_dailyTrainingHelper.ExerciseName);
            NewDailyTrainingInscriptionW_ChooseExercise_CBox.SelectedIndex = 0;

            NewDailyTrainingInscriptonW_Set_Label.Content = "Numer serii:";
            NewDailyTrainingInscriptonW_ExerciseSerieNumber_TBox.Text = _dailyTrainingHelper.ESNumber.ToString();
            NewDailyTrainingInscriptonW_ExerciseSerieNumber_TBox.IsEnabled = false;
            NewDailyTrainingInscriptionW_ChooseExerciseCategory_CBox.IsEnabled = false;
            NewDailyTrainingInscriptionW_ChooseExercise_CBox.IsEnabled = false;

            if (_dailyTrainingHelper.Weight != null)
            {
                NewDailyTrainingInscriptonW_Weight_TBox.Text = _dailyTrainingHelper.Weight.ToString();
                NewDailyTrainingInscriptonW_Weight_CBox.IsChecked = true;
            }
            else
            {
                NewDailyTrainingInscriptonW_Weight_CBox.IsChecked = false;
                NewDailyTrainingInscriptonW_Weight_TBox.IsEnabled = false;
            }

            if (_dailyTrainingHelper.Repetitions != null)
            {
                NewDailyTrainingInscriptonW_Repetition_TBox.Text = _dailyTrainingHelper.Repetitions.ToString();
                NewDailyTrainingInscriptonW_Repetition_CBox.IsChecked = true;
            }
            else
            {
                NewDailyTrainingInscriptonW_Repetition_CBox.IsChecked = false;
                NewDailyTrainingInscriptonW_Repetition_TBox.IsEnabled = false;
            }

            if (_dailyTrainingHelper.TimeInMin != null)
            {
                NewDailyTrainingInscriptonW_TimeInMin_TBox.Text = _dailyTrainingHelper.TimeInMin.ToString();
                NewDailyTrainingInscriptonW_TimeInMin_CBox.IsChecked = true;
            }
            else
            {
                NewDailyTrainingInscriptonW_TimeInMin_CBox.IsChecked = false;
                NewDailyTrainingInscriptonW_TimeInMin_TBox.IsEnabled = false;
            }
        }
        public NewDailyTrainingInscriptionWindow(DailyServer authorisation, DateTime dateOfInscription, DailyWindow dailyWindow)
        {
            InitializeComponent();
            this._authorisation = authorisation;
            this._dailyWindow = dailyWindow;

            var exerciseCategories = _authorisation.GetExerciseCategories();

            foreach (var exerciseCategory in exerciseCategories)
            {
                NewDailyTrainingInscriptionW_ChooseExerciseCategory_CBox.Items.Add(exerciseCategory.ECategoryName);
                exerciseCategoryHelperList.Add(exerciseCategory);
            }
            this._dateOfInscription = dateOfInscription;

            NewDailyTrainingInscriptonW_Weight_TBox.IsEnabled = false;
            NewDailyTrainingInscriptonW_Repetition_TBox.IsEnabled = false;
            NewDailyTrainingInscriptonW_TimeInMin_TBox.IsEnabled = false;

            NewDailyTrainingInscriptionW_ChooseExerciseCategory_CBox.SelectedIndex = 0;
            NewDailyTrainingInscriptionW_ChooseExercise_CBox.SelectedIndex = 0;
        }
 public BodyFatChoiceFemaleWindow(DailyWindow dailyWindow)
 {
     InitializeComponent();
     this._dailyWindow = dailyWindow;
 }
 public BodyFatCalculationMaleWindow(DailyWindow dailyWindow)
 {
     InitializeComponent();
     this._dailyWindow = dailyWindow;
     BodyFatCalculationMaleW_Save_Btn.IsEnabled = false;
 }