示例#1
0
        private void AddDesignApplication(object arg)
        {
            DesignApplicationView designApplicationView = new DesignApplicationView();

            designApplicationView.ViewModel.EditState = "add";
            designApplicationView.Title = "新增应用程序";
            designApplicationView.ShowDialog();
        }
示例#2
0
        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();
        }
示例#3
0
 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();
     }
 }