public void Undo_Executed(object sender, ExecutedRoutedEventArgs e) { if (undoLog.Count > 1) { redoLog.Add(undoLog.Pop()); BaseHull.Instance().Bulkheads = undoLog.Peek().Bulkheads; UpdateViews(); } }
private void Undo_Executed(object sender, ExecutedRoutedEventArgs e) { if (undoLog.Count > 1) { redoLog.Add(undoLog.Pop()); myHull = undoLog.Peek(); myHull.PropertyChanged += hull_PropertyChanged; myHull.SetBulkheadHandler(); UpdateViews(); } }