Example #1
0
        public NewProjectParamsModelView(IObservableContext observableContext, ISelectFolderDialog selectFolderDialog)
        {
            _observableContext  = observableContext;
            _selectFolderDialog = selectFolderDialog;
            MessengerInstance.Register <ICreateProjectProperties>(this, CreateProjectPropertiesChanged);
            ProjectPath = _selectFolderDialog.SelectedFolder;
            _observableContext.ItemsLoading.ObserveOnCurrentSyncronizationContext()
            .Subscribe(loading =>
            {
                _loading = loading;
                RaisePropertyChanged(() => IsEditEnabled);
            }
                       );

            _createProjectProperties = null;

            BrowseProjectPathCommand = new RelayCommand(() =>
            {
                if (_selectFolderDialog.ShowDialog())
                {
                    ProjectPath = _selectFolderDialog.SelectedFolder;
                }
            });
        }
Example #2
0
		protected SelectFolderDialog (Generator g, Type type, bool initialize = true)
			: base (g, type, initialize)
		{
			handler = (ISelectFolderDialog)Handler;
		}
Example #3
0
 public SelectFolderDialog(Generator g)
     : base(g, typeof(ISelectFolderDialog))
 {
     inner = (ISelectFolderDialog)Handler;
 }
Example #4
0
 protected SelectFolderDialog(Generator g, Type type, bool initialize = true)
     : base(g, type, initialize)
 {
     handler = (ISelectFolderDialog)Handler;
 }