private void HandleProjectChanged(string projectLocation)
		{
			SyncContext.Post(cb =>
			{
				var projectName = Path.GetFileNameWithoutExtension(projectLocation);
				using (var projectReloadDialog = new ProjectReloadDialog(projectName))
				{
					if (windowManager.ShowDialog(projectReloadDialog) != DialogResult.OK)
						return;

					var command = commandFactory.CreateOpenProjectCommand(projectLocation);
					taskManager.QueueTask(command);
				}
			}, null);
		}
Esempio n. 2
0
        private void HandleProjectChanged(string projectLocation)
        {
            SyncContext.Post(cb =>
            {
                var projectName = Path.GetFileNameWithoutExtension(projectLocation);
                using (var projectReloadDialog = new ProjectReloadDialog(projectName))
                {
                    if (windowManager.ShowDialog(projectReloadDialog) != DialogResult.OK)
                    {
                        return;
                    }

                    var command = commandFactory.CreateOpenProjectCommand(projectLocation);
                    taskManager.QueueTask(command);
                }
            }, null);
        }