Ejemplo n.º 1
0
        private void OpenProjectBrowserDialog()
        {
            var projectBrowser = new ProjectBrowserDialog();

            if (projectBrowser.ShowDialog() == false || projectBrowser.DataContext == null)
            {
                Application.Current.Shutdown();
            }
            else
            {
                Project.Current?.UnLoad();
                DataContext = projectBrowser.DataContext;
            }
        }
Ejemplo n.º 2
0
 /// <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;
 }