Esempio n. 1
0
 private void LoadTheConfig()
 {
     var newPath = this.ofgConfig.FileName.Replace(@"\", "/");
     var path = string.Format("file:///{0}", newPath);
     this.controller.LoadConfig(path);
     roleTreeViewer = new RoleTreeViewer(controller);
     hostsTreeViewer = new HostsTreeViewer(controller);
     roleTreeViewer.Changed += this.TreeViewerOnChanged;
     this.rv = new RolesViewer(controller, roleTreeViewer);
     this.hv = new HostsViewer(controller, hostsTreeViewer);
     this.RenderForm();
     this.RefreshForm();
 }
 public HostsViewer(Controller controller, HostsTreeViewer roleTreeViewer)
 {
     this.controller = controller;
     this.roleTreeViewer = roleTreeViewer;
 }