Exemple #1
0
        private void AddNamespace(object arg)
        {
            NameSpaceView nameSpaceView = new NameSpaceView();

            nameSpaceView.ViewModel.EditState = "add";
            nameSpaceView.Title = "新增命名空间";
            nameSpaceView.ShowDialog();
        }
Exemple #2
0
 public void RowActivate(object parameter)
 {
     if (SelectedNamespace != null)
     {
         NameSpaceView nameSpaceView = new NameSpaceView();
         nameSpaceView.ViewModel.Namespace = SelectedNamespace;
         nameSpaceView.Title = "编辑命名空间";
         nameSpaceView.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         nameSpaceView.ViewModel.EditState   = "modify";
         nameSpaceView.ShowDialog();
     }
 }
Exemple #3
0
        public void EditNamespace(object parameter)
        {
            Namespace nameSpace = NamespaceSource.Where(item => item.IsChecked == true).First();

            if (ApplicationDesignService.CanDeleteNamespace(nameSpace.NamespaceID))
            {
                NameSpaceView nameSpaceView = new NameSpaceView();
                nameSpaceView.ViewModel.Namespace = nameSpace;
                nameSpaceView.Title = "编辑命名空间";
                nameSpaceView.ViewModel.EditState = "modify";
                nameSpaceView.ShowDialog();
            }
            else
            {
                MessageBox.Show("命名空间: " + nameSpace.NamespaceName + " 已经存在 Class关联不可以编辑!", "提示");
            }
        }