public void ViewUndo(View removedView, ViewType viewType) { try { if (AddedViews.Count > 0) { if (AddedViews.Contains(removedView)) { ParentView.RemoveView(removedView); AddedViews.Remove(removedView); RedoViews.Add(removedView); if (MOnNiceArtEditorListener != null) { MOnNiceArtEditorListener.OnRemoveViewListener(viewType, AddedViews.Count); } } } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public void ViewUndo(View removedView, ViewType viewType) { try { if (AddedViews.Count > 0) { if (AddedViews.Contains(removedView)) { ParentView.RemoveView(removedView); AddedViews.Remove(removedView); RedoViews.Add(removedView); if (MOnNiceArtEditorListener != null) { MOnNiceArtEditorListener.OnRemoveViewListener(AddedViews.Count); MOnNiceArtEditorListener.OnRemoveViewListener(viewType, AddedViews.Count); } } } } catch (Exception e) { Console.WriteLine(e); } }