private void RadioButtonMom_Checked(object sender, RoutedEventArgs e) { LoadInfo(Const.Woman); RadioButtonGenderMan.IsEnabled = false; RadioButtonGenderWoman.IsEnabled = false; LabelGroupAndPlacework.Content = "Работа:"; InfoPhotosEditing.Default(Session.CurrentInfo.Photos); LabelImageAvatar.Content = InfoPhotosEditing.GetNameSelectedPhoto(Session.CurrentInfo.Photos); }
public ReportWindow(bool IsReport, params object[] param) { InitializeComponent(); if (IsReport) { Title = "Формировние отчета"; InfStudent = (Info)param[0]; InfDad = (Info)param[1]; InfMom = (Info)param[2]; if (InfDad == null) { RadioButtonDad.IsEnabled = false; } if (InfMom == null) { RadioButtonMom.IsEnabled = false; } Loaded += (s, a) => // После полной загрузки окна... { RadioButtonStudent.Checked += RadioButtonStudent_Checked; // Присваиваем событие RadioButtonStudent_Event(); }; } else { Title = "Просмотр фотографий"; WindowState = WindowState.Maximized; ImageShowFull.Source = InfoPhotosEditing.GetBitmapNumber(Session.CurrentInfo.Photos); IsRB = (bool)param[0]; GridShowImage.Visibility = Visibility.Visible; GridShowReport.Visibility = Visibility.Hidden; } }
private void ButtonImageNext_Click(object sender, RoutedEventArgs e) { ImageAvatar.ImageSource = InfoPhotosEditing.SelectPhoto(true, (bool)RadioButtonStudent.IsChecked, Session.CurrentInfo.Photos); LabelImageAvatar.Content = InfoPhotosEditing.GetNameSelectedPhoto(Session.CurrentInfo.Photos); }
private void ButtonImageNext_Click(object sender, RoutedEventArgs e) { ImageShowFull.Source = InfoPhotosEditing.SelectPhoto(true, IsRB, Session.CurrentInfo.Photos); }