예제 #1
0
 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();
         }
     }
 }
예제 #2
0
		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();
				}
			}
		}