protected override object CreateViewInfo() { var dpInfo = new IconSmartPartInfo("Log Demo", "Log Demo"); dpInfo.Icon = Resources.ReportEdit; return(dpInfo); }
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); }
public RTFDocument() { editorView = new EditorView(); smartPartInfo = new IconSmartPartInfo(SmartPartTitle, SmartPartTitle); smartPartInfo.Icon = Resources.TextDoc; }