private void OnDraggyImageSequenceChanged(DraggyImageSequenceVM oldValue, DraggyImageSequenceVM newValue) { if (oldValue != null) { oldValue.PropertyChanged -= DraggyImageSequence_PropertyChanged; } if (newValue != null) { newValue.PropertyChanged += DraggyImageSequence_PropertyChanged; } }
public static void SaveImageSequenceFile(DraggyImageSequenceVM seq, string filename) { var strJson = JsonConvert.SerializeObject(seq); File.WriteAllText(filename, strJson); }