protected override object CreateViewInfo() { var dpInfo = new DockPanelSmartPartInfo("Log Viewer", "Log Viewer"); dpInfo.Icon = Resources.EventLog; dpInfo.DockingType = DockingType.TaskView; dpInfo.ShowStrategy = new DockStateShowStrategy(DockState.DockBottom); return(dpInfo); }
void IControlView.Show() { IControlView view = this; var dpInfo = new DockPanelSmartPartInfo(view.Name, ProfileName); dpInfo.Icon = Properties.Resources.Device; var workspace = BundleRuntime.Instance.GetFirstOrDefaultService <IWorkspace>(); workspace.Show(this, dpInfo); workspace.Activate(this); }
public void Run() { var workSpace = BundleRuntime.Instance.GetFirstOrDefaultService <IWorkspace>(); if (view == null) { smartPartInfo = new DockPanelSmartPartInfo("Test Charts", "Test Charts"); smartPartInfo.Icon = Resources.DeviceManager; smartPartInfo.DockingType = DockingType.TaskView; smartPartInfo.ShowStrategy = new DockStateShowStrategy(DockState.DockLeft); view = new TestDevicesView(); workSpace.SmartPartClosing += SmartPartClosing; workSpace.Show(view, smartPartInfo); } workSpace.Activate(view); }