Ви не можете вибрати більше 25 тем
Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using BPASmart.Model;
- using Microsoft.Toolkit.Mvvm.Input;
- using System.Windows;
- using BPA.Helper;
- using System.Windows.Forms;
- namespace BPASmart.ConfigurationSoftware
- {
- public class NewProjectViewModel : NoticeBase
- {
- public NewProjectViewModel()
- {
- OpenBrowserDialogCommand = new RelayCommand(() =>
- {
- FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
- if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
- {
- NewData.ProjectPath = folderBrowserDialog.SelectedPath;
- }
- });
-
- CreateCommand = new RelayCommand(() =>
- {
- ActionManage.GetInstance.Send("CreateCommand", NewData);
- });
-
- CancelCommand = new RelayCommand(() => { ActionManage.GetInstance.Send("CancelCommand"); });
-
- }
-
-
-
- public NewDataModel NewData { get { return _mNewData; } set { _mNewData = value; OnPropertyChanged(); } }
- private NewDataModel _mNewData = new NewDataModel();
-
-
-
- //public string ProjectName { get { return _mProjectName; } set { _mProjectName = value; OnPropertyChanged(); } }
- //private string _mProjectName;
-
-
- //public string ProjectPath { get { return _mProjectPath; } set { _mProjectPath = value; OnPropertyChanged(); } }
- //private string _mProjectPath;
-
- public RelayCommand CreateCommand { get; set; }
-
- public RelayCommand OpenBrowserDialogCommand { get; set; }
-
- public RelayCommand CancelCommand { get; set; }
-
- }
- }
|