コード例 #1
0
        protected override object CreateViewInfo()
        {
            var dpInfo = new IconSmartPartInfo("Log Demo", "Log Demo");

            dpInfo.Icon = Resources.ReportEdit;
            return(dpInfo);
        }
コード例 #2
0
ファイル: ImageDocument.cs プロジェクト: rveluthattil/osgi
        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);
        }
コード例 #3
0
ファイル: RTFDocument.cs プロジェクト: rveluthattil/osgi
 public RTFDocument()
 {
     editorView         = new EditorView();
     smartPartInfo      = new IconSmartPartInfo(SmartPartTitle, SmartPartTitle);
     smartPartInfo.Icon = Resources.TextDoc;
 }