Пример #1
0
 public void AddRow(WTPRow Row)
 {
     if (!Rows.Contains(Row))
     {
         Rows.Add(Row);
         CorrectDiscName(Row.DataRow.STUDDISCIPLINE_NAME);
         CorrectDiscIndex(Row.DataRow.WTPROW_INDEX);
         CorrectSortIndex(Row.DataRow.WTPROW_SORTINDEX);
         Row.Variation = this;
     }
 }
Пример #2
0
        public void RemoveRow(WTPRow Row)
        {
            if (Rows.Contains(Row))
            {
                Rows.Remove(Row);

                VariationName = Rows.Where(dd => !dd.Deleted && !dd.Disposed)
                                .Min(d => d.DataRow.STUDDISCIPLINE_NAME);
                VariationIndex = Rows.Where(dd => !dd.Deleted && !dd.Disposed)
                                 .Min(d => d.DataRow.WTPROW_INDEX);
                VariationSortIndex = Rows.Where(dd => !dd.Deleted && !dd.Disposed)
                                     .Min(d => d.DataRow.WTPROW_SORTINDEX);
                Row.Variation = null;
            }
        }
Пример #3
0
 public WTPRowValues(WTPRow WtpRow)
 {
     this.WtpRow = WtpRow;
     this.WtpRow.DataRow.PropertyChanged += DataRow_PropertyChanged;
 }
Пример #4
0
 public WTPSemesters(WTPRow WtpRow)
 {
     this.WtpRow = WtpRow;
     this.WtpRow.DataRow.PropertyChanged += WtpRow_PropertyChanged;
 }