public void Connect()
        {
            MethodBase         methodFromHandle   = MethodBase.GetMethodFromHandle(methodof(ConnectButtonViewModel.Connect()).MethodHandle, typeof(ConnectButtonViewModel).TypeHandle);
            AnalyticsAttribute analyticsAttribute = (AnalyticsAttribute)Activator.CreateInstance(typeof(AnalyticsAttribute));

            object[] args = new object[0];
            analyticsAttribute.Init(this, methodFromHandle, args);
            analyticsAttribute.OnEntry();
            try
            {
                ConnectButtonViewModel.< Connect > d__8 <Connect> d__;
                < Connect > d__.< > 4__this    = this;
示例#2
0
 public HeaderBarViewModel(IEventAggregator eventAggregator, AppSettings appSettings, SearchViewModel searchViewModel, ConnectButtonViewModel connectButtonViewModel)
 {
     this._eventAggregator                  = eventAggregator;
     this._appSettings                      = appSettings;
     this._appSettings.PropertyChanged     += new PropertyChangedEventHandler(this.OnSettingPropertyChanged);
     this.< Search > k__BackingField        = searchViewModel;
     this.< ConnectButton > k__BackingField = connectButtonViewModel;
 }
 public HeaderBarViewModel(IEventAggregator eventAggregator, ISettings settings, SearchViewModel searchViewModel, ConnectButtonViewModel connectButtonViewModel)
 {
     this._eventAggregator                  = eventAggregator;
     this._settings                         = settings;
     this.< Search > k__BackingField        = searchViewModel;
     this.< ConnectButton > k__BackingField = connectButtonViewModel;
     this._settings.Observe <AppSettings, bool>((AppSettings p) => p.ShowMap, delegate(bool _)
     {
         this.NotifyOfPropertyChange("ShowMap");
     }).Observe <AppSettings, bool>((AppSettings p) => p.ShowServerList, delegate(bool _)
     {
         this.NotifyOfPropertyChange("ShowServerList");
     });
 }