public void HandleMainWindowViewModeChanged(object o, EventArgs args)
 {
     MainWindow.ModeType mode = MainWindow.Toplevel.ViewMode;
     if (mode == MainWindow.ModeType.IconView)
     {
         Context = ViewContext.Library;
     }
     else if (mode == MainWindow.ModeType.PhotoView)
     {
         Context = ViewContext.Edit;
     }
 }
Exemple #2
0
 public void HandleMainWindowViewModeChanged(object o, EventArgs args)
 {
     MainWindow.ModeType mode = App.Instance.Organizer.ViewMode;
     if (mode == MainWindow.ModeType.IconView)
     {
         Context = ViewContext.Library;
     }
     else if (mode == MainWindow.ModeType.PhotoView)
     {
         Context = ViewContext.Edit;
     }
 }