/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel() { //if (IsInDesignMode) //{ // WindowTitle = "design-mode title"; // Progress = 25; //} //else //{ // WindowTitle = " run model title"; // Task.Delay(2000).ContinueWith(t => // { // while (Progress < 100) // { // Progress += 5; // Task.Delay(500).Wait(); // } // }); //} WindowTitle = "Place TextNote From Clipboard"; handler = new Model.RequestHandler(); exEvent = ExternalEvent.Create(handler); uidoc = Command._activeRevitUIDoc; TextWidth = 1.2; LeaderLength = 3; //ListCollectionView collectionView = new ListCollectionView(employees); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel() { Handler = new Model.RequestHandler(); exEvent = ExternalEvent.Create(Handler); uidoc = Command._activeRevitUIDoc; }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel() { //if (IsInDesignMode) //{ // WindowTitle = "design-mode title"; // Progress = 25; //} //else //{ // WindowTitle = " run model title"; // Task.Delay(2000).ContinueWith(t => // { // while (Progress < 100) // { // Progress += 5; // Task.Delay(500).Wait(); // } // }); //} WindowTitle = "Paste TextNote From Clipboard"; Task.Delay(500).ContinueWith(t => { while (Progress < 100) { Progress += 15; Task.Delay(100).Wait(); } }); DwgList = new ObservableCollection <Model.DWGcontainer>(); handler = new Model.RequestHandler(); exEvent = ExternalEvent.Create(handler); uidoc = Command._activeRevitUIDoc; TextWidth = 1.2; LeaderLength = 3; SelectCommand = new RelayCommand(() => HandleSelect()); OpenCommand = new RelayCommand(() => OpenView()); ZoomCommand = new RelayCommand(() => Zoom()); DeleteCommand = new RelayCommand(() => DeleteDWG()); //ListCollectionView collectionView = new ListCollectionView(employees); }