Exemplo n.º 1
0
        protected override object CreateViewInfo()
        {
            var dpInfo = new IconSmartPartInfo("Log Demo", "Log Demo");

            dpInfo.Icon = Resources.ReportEdit;
            return(dpInfo);
        }
Exemplo n.º 2
0
        public void Open(string fileName)
        {
            var workspace = BundleRuntime.Instance.GetFirstOrDefaultService <IWorkspace>();

            view.DataContext = fileName;
            FileName         = fileName;
            smartPartInfo    = new IconSmartPartInfo(Path.GetFileName(fileName), string.Empty);
            workspace.Show(view, smartPartInfo);
        }
Exemplo n.º 3
0
 public RTFDocument()
 {
     editorView         = new EditorView();
     smartPartInfo      = new IconSmartPartInfo(SmartPartTitle, SmartPartTitle);
     smartPartInfo.Icon = Resources.TextDoc;
 }