Example #1
0
        private EditorForm DoOpenFile(Project.File projectFile)
        {
            var editorForm = FormsFactory.NewEditorForm(projectFile);

            editorForm.Show(_DockPanel, DockState.Document);
            return(editorForm);
        }
 private void OnOkClick()
 {
     try
     {
         Project.Commands.RenameFile(_File, NewNameText.Value);
         Close(DialogResult.OK);
     }
     catch (Exception ex)
     {
         ShowChildDialog(FormsFactory.NewErrorForm(ex.Message));
     }
 }
Example #3
0
 private void OnAboutClick()
 {
     ShowChildDialog(FormsFactory.NewAboutForm());
 }
Example #4
0
        private void OnNewFileClick()
        {
            var form = FormsFactory.NewNewFileForm(Strings.Untitled);

            ShowChildDialog(form);
        }
        private void OnMoveClick()
        {
            var files = SelectedList.Select(x => x.Tag).Cast <Project.File>();

            ShowChildDialog(FormsFactory.NewMoveFileForm(files));
        }
        private void OnRenameClick()
        {
            var file = (Project.File)SelectedList.Single().Tag;

            ShowChildDialog(FormsFactory.NewRenameFileForm(file));
        }