public static CoatingScheduleProductBase Load(BinaryReader reader) { string baseType = reader.ReadString(); if (baseType == "Product") { return(CoatingScheduleProduct.Load(reader)); } else if (baseType == "Note") { return(CoatingScheduleNote.Load(reader)); } return(null); }
private void BtnAddNote_OnClick(object sender, RoutedEventArgs e) { CoatingScheduleNote newNote = new CoatingScheduleNote(); Shift.AddLogic(newNote); }