Exemplo n.º 1
0
        public static ExecManager GetInstance()
        {
            if (_instance == null)
            {
                _instance = new ExecManager();
            }

            return(_instance);
        }
Exemplo n.º 2
0
        public MainViewViewModel(Dispatcher uiDispacher)
        {
            _uiDispatcher = uiDispacher;
            _messages     = new ObservableCollection <ExecMessageViewModel>();

            MessageDispatcher.GetInstance().MessageReceived += addMessage;

            ExecManager.GetInstance();
        }