예제 #1
0
        public override void Run()
        {
            Workbench workbench = (Workbench)this.Owner;

            if (workbench.CloseCurrentContent())
            {
                workbench.Close();
            }
        }
예제 #2
0
        public override void Run()
        {
            Workbench workbench = (Workbench)this.Owner;

            if (workbench.ActiveViewContent != null)
            {
                workbench.ActiveViewContent.SaveAs();
            }
        }
예제 #3
0
        public override void Run()
        {
            Workbench workbench = (Workbench)this.Owner;

            if (workbench.CloseCurrentContent())
            {
                workbench.ShowContent(new TextViewContent());
            }
        }
예제 #4
0
        public override void Run()
        {
            Workbench workbench = (Workbench)this.Owner;

            if (workbench.CloseCurrentContent())
            {
                using (OpenFileDialog dlg = new OpenFileDialog()) {
                    dlg.CheckFileExists = true;
                    dlg.DefaultExt      = ".txt";
                    dlg.Filter          = FileViewContent.GetFileFilter("/Workspace/FileFilter");
                    if (dlg.ShowDialog() == DialogResult.OK)
                    {
                        IViewContent content = DisplayBindingManager.CreateViewContent(dlg.FileName);
                        if (content != null)
                        {
                            workbench.ShowContent(content);
                        }
                    }
                }
            }
        }
예제 #5
0
 public static void InitializeWorkbench()
 {
     instance = new Workbench();
 }
 public static void InitializeWorkbench()
 {
     instance = new Workbench();
 }