Ejemplo n.º 1
0
        private bool PromptForFileName(string rootFolder)
        {
            DirectoryInfo dir    = new DirectoryInfo(rootFolder);
            FileDialog    dialog = new OpenFileDialog();

            CreateFileWindow createFileWin = new CreateFileWindow();

            createFileWin.Model.ProjectRootDirPath = rootFolder;

            createFileWin.ShowDialog();

            m_CppFilePath = createFileWin.Model.CppSourcePath;
            m_HppFilePath = createFileWin.Model.HppSourcePath;

            return(!createFileWin.Model.IsCancelled);
        }
Ejemplo n.º 2
0
 public CreateFileViewModel(CreateFileWindow window)
 {
     m_Window = window;
     Model    = new CreateFileModel(this);
 }