Exemple #1
0
 private void SaveThisC(object obj)
 {
     if (this.BaseImage != null)
     {
         ImageFunction.SaveAsCurrentImage(ImageConverterFormat.BitmapImageToBitmap(this.BaseImage));
     }
 }
Exemple #2
0
 private void OpenInEditorC(object obj)
 {
     if (this.BaseImage != null)
     {
         Images.Instance.CurrentBitmap = ImageConverterFormat.BitmapImageToBitmap(this.BaseImage);
         Images.Instance.NotifyImages();
         List <Bitmap> un = new List <Bitmap>(UndoRedoModel.Instance.UndoStack);
         un.Reverse();
         un.RemoveAt(this.SelectedIndex);
         UndoRedoModel.Instance.UndoStack = new Stack <Bitmap>(un);
         UndoRedoModel.Instance.RedoStack = new Stack <Bitmap>();
     }
 }