private void ShowHighlightsEventHandler(object sender, EventArgs eventArgs) { var hightlightsTool = new HighlightsToolItemViewModel { DefaultDock = Dock.Bottom }; ToolItems.Add(hightlightsTool); }
private void ShowVideoEventHandler(object sender, VideoMessage videoMessage) { var hightlightsTool = new LiveVideoToolItemViewModel { DefaultDock = Dock.Bottom, IsInitiallyHidden = true, DockGroup = "Group1" }; ToolItems.Add(hightlightsTool); }
private void ContinuousImpedanceEventHandler(object sender, ContinuousImpedanceMessage continuousImpedanceMessage) { var hightlightsTool = new ContinuousImpedanceToolItemViewModel { DefaultDock = Dock.Bottom, DockGroup = "Group1" }; ToolItems.Add(hightlightsTool); }
private void ShowVideoEventHandler(object sender, VideoMessage e) { var reviewVideoTool = new ReviewVideoToolItemViewModel { Name = "ReviewVideo", DefaultDock = Dock.Right, }; ToolItems.Add(reviewVideoTool); }
private void CreateToolWindow(DockSite dockSite, string title, string name, object content, bool canClose = false) { var wnd = new ToolWindow(dockSite) { Name = name, Title = title, Content = content, CanClose = canClose }; ToolItems.Add(wnd); OpenDockingWindow(wnd); //return wnd; }
/// <summary> /// Create a simple tool window. /// </summary> /// <param name="layoutKey">The layout <see cref="LayoutKey"/> key</param> /// <param name="name">Window name.</param> /// <param name="title">The title. May not contain spaces.</param> /// <param name="content">The window content.</param> /// <param name="canClose">Nullable bool.</param> /// <returns>A new tool window.</returns> public ToolWindow CreateToolWindow(string layoutKey, string name, string title, object content, bool?canClose) { ParameterNullCheck(layoutKey); if (name.Contains(" ")) { throw new ArgumentException(string.Format("Parameter {0} may not contain space(s)", name)); } var tool = new ToolWindow(_dockSite) { Name = name, Title = title, Content = content, CanClose = canClose }; ToolItems.Add(tool); OpenDockingWindow(tool); return(tool); }