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(); }
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(); } }
public DownloadLibIndexWin(SaveWinVM vm) { InitializeComponent(); this.DataContext = vm; }
public SaveProjectWin(SaveWinVM vm) { InitializeComponent(); this.DataContext = vm; }
public SaveProjectWin(SaveWinVM vm) { InitializeComponent(); this.DataContext = vm; vm.PropertyChanged += Vm_PropertyChanged; }