Exemplo n.º 1
0
        private void OpenProject(object sender, RoutedEventArgs e)
        {
            if (CheckProject())
            {
                System.Windows.Forms.OpenFileDialog fileDialog = new System.Windows.Forms.OpenFileDialog();
                fileDialog.Filter = "MS Build Project Files|*.*proj";

                System.Windows.Forms.DialogResult dr = fileDialog.ShowDialog();

                if (dr == System.Windows.Forms.DialogResult.OK)
                {
                    m_Project = new BuildProject();
                    this.InitializeData();
                    m_Project.LoadFromFile(fileDialog.FileName);
                }
            }
        }