private void OpenProjectBrowserDialog() { var projectBrowser = new ProjectBrowserDialog(); if (projectBrowser.ShowDialog() == false || projectBrowser.DataContext == null) { Application.Current.Shutdown(); } else { Project.Current?.UnLoad(); DataContext = projectBrowser.DataContext; } }
/// <summary> /// Gets the path of the project. /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event Args</param> private void Button_ProjectPath_Click(object sender, EventArgs e) { ProjectBrowserDialog.ShowDialog(); Textbox_ProjectPath.Text = ProjectBrowserDialog.SelectedPath; }