Beispiel #1
0
        private void OpenFileExecute()
        {
            var openDlg = new OpenFileDialog {
                CheckFileExists = true, Filter = "Svg-Files|*.svg*", Multiselect = false
            };

            if (openDlg.ShowDialog().GetValueOrDefault())
            {
                ImageBaseViewModel.OpenDetailWindow(new SvgImageViewModel(openDlg.FileName));
            }
        }
Beispiel #2
0
 public static void OpenDetailWindow(ImageBaseViewModel imageBaseViewModel)
 {
     new DetailWindow {
         DataContext = imageBaseViewModel
     }.Show();
 }
Beispiel #3
0
 public static void OpenDetailWindow(ImageBaseViewModel imageBaseViewModel)
 {
     new DetailWindow { DataContext = imageBaseViewModel }.Show();
 }