Пример #1
0
        public BTL()
        {
            InitializeComponent();
			_cIG = new ManagementSoapClient();
			_aSelectedItems = new List<EffectInfo>();
            _cIG.BaetylusEffectsInfoGetCompleted += new EventHandler<BaetylusEffectsInfoGetCompletedEventArgs>(_cIG_BaetylusEffectsInfoGetCompleted);
            _cIG.BaetylusEffectStopCompleted += new EventHandler<BaetylusEffectStopCompletedEventArgs>(_cIG_BaetylusEffectStopCompleted);
			_cIG.RestartServicesCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(_cIG_RestartServicesCompleted);
            _cIG.BaetylusEffectsInfoGetAsync();
        }
Пример #2
0
 public BTL()
 {
     InitializeComponent();
     _cIG            = new ManagementSoapClient();
     _aSelectedItems = new List <EffectInfo>();
     _cIG.BaetylusEffectsInfoGetCompleted += new EventHandler <BaetylusEffectsInfoGetCompletedEventArgs>(_cIG_BaetylusEffectsInfoGetCompleted);
     _cIG.BaetylusEffectStopCompleted     += new EventHandler <BaetylusEffectStopCompletedEventArgs>(_cIG_BaetylusEffectStopCompleted);
     _cIG.RestartServicesCompleted        += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(_cIG_RestartServicesCompleted);
     _cIG.BaetylusEffectsInfoGetAsync();
 }