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>();
        }
예제 #3
0
 public NetworkExplorerViewModel()
 {
     cgProxy = new ClientDMSProxy();
 }