/// <summary> /// Instantiates a new IpcEventTreeModelAdapter. /// </summary> /// <param name="formWindow"></param> /// <param name="formTreeView"></param> public IpcEventTreeModelAdapter(Forms.IpcTreeWebWindow formWindow, Forms.IpcEventMonitorMdiWindow mdiWindow, System.Windows.Forms.TreeView formTreeView) { _webURL = "file:///{0}/Html/IpcEventMonitorPane.html"; _formWindow = formWindow; _mdiWindow = mdiWindow; _formTreeView = formTreeView; _webBrowser = _formWindow.WebBrowser1; //create utility bus _utilsBus = new Niawa.Utilities.UtilsServiceBus(); //set up ipc logging for this class (to log events that occur in the tree model) _evtWriter = new Niawa.MsEventIpcEventAdapter.MsEventIpcEventWriter(_utilsBus); _evtWriter.Start(); _evtWriter.AddIpcEventWriter(Niawa.IpcController.IpcFactory.CreateIpcEventWriter("IpcEventMonitor", true, "TreeModel", _utilsBus), "TreeModel"); //instantiate view _view = new TreeModel.TreeModelViewImpl(_formWindow, _formTreeView); //instantiate node view factory _nodeViewFactory = new TreeModel.TreeModelNodeViewFactoryImpl(_webBrowser, _webURL); //instantiate tree model controller _treeModelController = new TreeModelNodeControls.TreeModelController(_view, _nodeViewFactory, _evtWriter.EvtConsumer, "IpcEventMonitor", string.Empty); }
public IpcTreeWebWindow(IpcEventMonitorMdiWindow mdiWindow) { InitializeComponent(); _mdiWindow = mdiWindow; }