Exemple #1
0
 protected bool Equals(Load load)
 {
     return(Id == load.Id && Lectures.Equals(load.Lectures) && Laboratory.Equals(load.Laboratory) &&
            Practical.Equals(load.Practical) && Test.Equals(load.Test) &&
            Consultations.Equals(load.Consultations) && Exams.Equals(load.Exams) &&
            Nir.Equals(load.Nir) && CourseDesigning.Equals(load.CourseDesigning) &&
            Vkr.Equals(load.Vkr) && Gek.Equals(load.Gek) && Gak.Equals(load.Gak) &&
            Rma.Equals(load.Rma) && Rmp.Equals(load.Rmp));
 }
Exemple #2
0
        private void changeRowVkrView(object sender, RoutedEventArgs e)
        {
            Vkr         itemFocus = vkrGrid.SelectedValue as Vkr;
            AddOrChange changeVkr = new AddOrChange(itemFocus, db);

            changeVkr.ShowDialog();
            LoadVkr();
            FindCount();
        }
Exemple #3
0
 public AddOrChange(Vkr vkr, DocumentsContext db)
 {
     InitializeComponent();
     this.vkr                     = vkr;
     this.db                      = db;
     textBlockGroup.Text          = vkr.Group;
     textBlockProtocolNumber.Text = vkr.ProtocolNumber;
     textBlockSurname.Text        = vkr.Surname;
     textBlockName.Text           = vkr.Name;
     textBlockPatronymic.Text     = vkr.Patronymic;
     textBlockTheme.Text          = vkr.Theme;
     textBlockDirector.Text       = vkr.Director;
     textBlockDate.Text           = vkr.Date.ToString();
     textBlockLocation.Text       = vkr.Location;
 }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ Lectures.GetHashCode();
         hashCode = (hashCode * 397) ^ Laboratory.GetHashCode();
         hashCode = (hashCode * 397) ^ Practical.GetHashCode();
         hashCode = (hashCode * 397) ^ Test.GetHashCode();
         hashCode = (hashCode * 397) ^ Consultations.GetHashCode();
         hashCode = (hashCode * 397) ^ Exams.GetHashCode();
         hashCode = (hashCode * 397) ^ Nir.GetHashCode();
         hashCode = (hashCode * 397) ^ CourseDesigning.GetHashCode();
         hashCode = (hashCode * 397) ^ Vkr.GetHashCode();
         hashCode = (hashCode * 397) ^ Gek.GetHashCode();
         hashCode = (hashCode * 397) ^ Gak.GetHashCode();
         hashCode = (hashCode * 397) ^ Rma.GetHashCode();
         hashCode = (hashCode * 397) ^ Rmp.GetHashCode();
         return(hashCode);
     }
 }
Exemple #5
0
 public AddOrChange(DocumentsContext db)
 {
     InitializeComponent();
     this.db = db;
     vkr     = new Vkr();
 }