public MainShellViewModel() { TopMenu = new ObservableCollection <UserControl>(); TopMenu.Add(new TopMenu()); //subscriber = new Subscriber(); //subscriber.Subscribe(); //subscriber.publishCrewEvent += GetCrewUpdate; //subscriber.publishIncident += GetIncident; //subscriber.publishCall += GetCallFromConsumers; //subscriber.publiesBreakers += SearchForIncident; dMSProxy = new ClientDMSProxy(); try { List <Source> sourcesList = dMSProxy.GetAllSources(); } catch (Exception e) { } try { List <IncidentReport> reportsList = iMSProxy.GetAllReports(); } catch (Exception e) { } }
static NetworkViewViewModel() { Position = ShellPosition.CENTER; cdClient = new ClientDMSProxy(); cnClient = new ClientNMSProxy(); csClient = new ClientSCADAProxy(); subscriber = new Subscriber(); subscriber.Subscribe(); subscriber.publiesEnergizationChange += HandleEnergizationChange; properties = new Dictionary <long, ElementProperties>(); }
public NetworkExplorerViewModel() { cgProxy = new ClientDMSProxy(); }