private void UpdateViewHost(ToolViewProxy view) { if (view.Active) { ToolViewHostDialog host; if (_viewHosts.ContainsKey(view)) { host = _viewHosts[view]; } else { host = new ToolViewHostDialog(view, _parentWindow); _viewHosts.Add(view, host); } host.ShowAll(); } else { if (_viewHosts.ContainsKey(view)) { _viewHosts[view].Hide(); } } }
private void UpdateViewHost(ToolViewProxy view) { if(view.Active) { ToolViewHostDialog host; if(_viewHosts.ContainsKey(view)) { host = _viewHosts[view]; } else { host = new ToolViewHostDialog(view, _parentWindow); _viewHosts.Add(view, host); } host.ShowAll(); } else { if(_viewHosts.ContainsKey(view)) { _viewHosts[view].Hide(); } } }