private void AddDesignApplication(object arg) { DesignApplicationView designApplicationView = new DesignApplicationView(); designApplicationView.ViewModel.EditState = "add"; designApplicationView.Title = "新增应用程序"; designApplicationView.ShowDialog(); }
public void EditDesignApplication(object parameter) { DesignApplicationView designApplicationView = new DesignApplicationView(); designApplicationView.ViewModel.DesignApplication = ApplicationSource.Where(item => item.IsChecked == true).First(); designApplicationView.Title = "编辑应用程序"; designApplicationView.WindowStartupLocation = WindowStartupLocation.CenterScreen; designApplicationView.ViewModel.EditState = "modify"; designApplicationView.ShowDialog(); }
public void RowActivate(object parameter) { if (SelectedApplication != null) { DesignApplicationView designApplicationView = new DesignApplicationView(); designApplicationView.ViewModel.DesignApplication = SelectedApplication; designApplicationView.Title = "编辑应用程序"; designApplicationView.WindowStartupLocation = WindowStartupLocation.CenterScreen; designApplicationView.ViewModel.EditState = "modify"; designApplicationView.ShowDialog(); } }