Пример #1
0
        private void openOutputClick(object sender, RoutedEventArgs e)
        {
            var vm   = DataContext as MainVM;
            var svvm = new SaveWinVM(vm.project, vm.libManager, vm.setup);

            svvm.PropertyChanged += Svvm_PropertyChanged;

            saveProjectWin = new SaveProjectWin(svvm);


            saveProjectWin.ShowDialog();
        }
Пример #2
0
        private void save(object sender, RoutedEventArgs e)
        {
            var vm = DataContext as MainVM;

            if (vm.project.isNew)
            {
                saveAs(sender, e);
                vm.project.isNew = false;
            }
            else
            {
                var svvm = new SaveWinVM(vm.project, vm.libManager, vm.setup);
                saveProjectWin = new SaveProjectWin(svvm);
                saveProjectWin.ShowDialog();
            }
        }
Пример #3
0
 public DownloadLibIndexWin(SaveWinVM vm)
 {
     InitializeComponent();
     this.DataContext = vm;
 }
Пример #4
0
 public SaveProjectWin(SaveWinVM vm)
 {
     InitializeComponent();
     this.DataContext = vm;
 }
Пример #5
0
 public SaveProjectWin(SaveWinVM vm)
 {
     InitializeComponent();
     this.DataContext    = vm;
     vm.PropertyChanged += Vm_PropertyChanged;
 }