Example #1
0
 private void GP_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     //  Nom du noeud modifié            ((GrandeurPhysique)sender).Nom  
     //  Nom de la propriété modifier    e.PropertyName
     if (e.PropertyName=="Valeur")
         Model.CalculerRelation(((GrandeurPhysique)sender));
 }
Example #2
0
 protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(this, e);
     }
 }
 void RootPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if ("State" == e.PropertyName)
     {
         base.OnPropertyChanged("ProgressEnabled");
     }
 }
 void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if(e.PropertyName == ReflectionUtil.GetPropertyName(() => this.model.DiscoveredGameInstances))
     {
         this.UpdateList ();
     }
 }
Example #5
0
		void ConstantTypeVM_PropertyChanged(object sender, PropertyChangedEventArgs e) {
			if (e.PropertyName == nameof(ConstantTypeVM.Value))
				OnPropertyChanged(nameof(Value));
			else if (e.PropertyName == nameof(ConstantTypeVM.IsEnabled))
				IsEnabled = ConstantTypeVM.IsEnabled;
			HasErrorUpdated();
		}
 private void OnAppearanceManagerPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "ThemeSource" || e.PropertyName == "AccentColor")
     {
         SyncThemeAndColor();
     }
 }
Example #7
0
 private void workWeek_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     // this property doesn't exist here, but we want to trigger saving the data at MainViewModel
     this.OnPropertyChanged("HoursDuration");
     this.UpdateProjectHitlistAsync();
     this.UpdatePositionHitlistAsync();
 }
 void CoreDataContent_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == CoreDataTypes.CurrentSelectedDatabase.ToString())
     {
         SetCurrentTreeViewNode();
     }
 }
Example #9
0
        /// <summary>
        /// Handles the PropertyChanged event of the <see cref="_settings"/>.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.PropertyChangedEventArgs"/> instance containing the event data.</param>
        void settings_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (!StringComparer.Ordinal.Equals(KeySettingName, e.PropertyName))
                return;

            UpdateValue();
        }
Example #10
0
 private void SettingsPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Password")
     {
         password.Password = ViewModel.Password;
     }
 }
Example #11
0
 void LayerPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Envelope")
     {
         OnPropertyChanged(e.PropertyName);
     }
 }
Example #12
0
        private void NotifierPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (ShouldNotify(e.PropertyName))
                Notify();

            HookSubpathMonitor();
        }
 /// <summary>
 /// Wird aufgerufen, wenn sich eine Property in WorkflowEditorDesignerCanvasErrorViewModel ausgelöst wird.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void ErrorOnPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == "Error")
     {
         ErrorMessage = WorkflowEditorDesignerCanvasErrorViewModel.Instance.Error;
     }
 }
 private void OnLoginPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "IsLoggedIn" && IsLoggedIn)
     {
         this.regionManager.Regions[RegionNames.ShellContentRegion].RequestNavigate("ContentView", nr => { });
     }
 }
 private void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (this.propertyNames[(INotifyPropertyChanged)sender].Contains(e.PropertyName))
     {
         this.handler(sender, e);
     }
 }
		private void UpdateCanExecute(object sender, PropertyChangedEventArgs e)
		{
			if (e.PropertyName == "HasNextPage")
			{
				RaiseCanExecuteChanged();
			}
		}
Example #17
0
 void ObservableViewSource_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (ItemPropertyChanged != null)
     {
         ItemPropertyChanged(sender, e);
     }
 }
 private void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Title")
     {
         Application.Current.MainWindow.Title = "CefSharp.MinimalExample.Wpf - " + Title;
     }
 }
Example #19
0
 private void ViewModelOnPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == "AddSelectedItems")
     {
         FollowGolfListBox.SelectedItems.AddRange(ViewModel.GolfFollowResources);
     }
 }
 private void OnUserPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "UserId")
     {
         this.SetLoggedUser();
     }
 }
Example #21
0
 private void TeamMembersWidget_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName.Equals("IsInSettingsMode"))
     {
         ToggleRefreshInSettingsMode();
     }
 }
        private void ChangeShortcutsMapping(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
        {
            if (propertyChangedEventArgs.PropertyName != "Keys"
                && propertyChangedEventArgs.PropertyName != "TrackerPlugin"
                && propertyChangedEventArgs.PropertyName != "MediaPlugin")
                return;

            _state.Shortcuts.Register(_config.KeyFieldOfViewMinus, new DelegateCommand(DecreaseFieldOfView));
            _state.Shortcuts.Register(_config.KeyFieldOfViewPlus, new DelegateCommand(IncreaseFieldOfView));
            _state.Shortcuts.Register(_config.KeyHorizontalOffsetMinus, new DelegateCommand(DecreaseHorizontalOffset));
            _state.Shortcuts.Register(_config.KeyHorizontalOffsetPlus, new DelegateCommand(IncreaseHorizontalOffset));
            _state.Shortcuts.Register(_config.KeyVerticalOffsetMinus, new DelegateCommand(DecreaseVerticalOffset));
            _state.Shortcuts.Register(_config.KeyVerticalOffsetPlus, new DelegateCommand(InreaseVerticalOffset));

            if(_state.TrackerPlugin != null && _state.TrackerPlugin.Content != null)
            {
                _state.Shortcuts.Register(_config.KeyMoveForward, _state.TrackerPlugin.Content.MoveForwardCommand);
                _state.Shortcuts.Register(_config.KeyMoveBackward, _state.TrackerPlugin.Content.MoveBackwardCommand);
                _state.Shortcuts.Register(_config.KeyMoveLeft, _state.TrackerPlugin.Content.MoveLeftCommand);
                _state.Shortcuts.Register(_config.KeyMoveRight, _state.TrackerPlugin.Content.MoveRightCommand);
                _state.Shortcuts.Register(_config.KeyMoveUp, _state.TrackerPlugin.Content.MoveUpCommand);
                _state.Shortcuts.Register(_config.KeyMoveDown, _state.TrackerPlugin.Content.MoveDownCommand);
                _state.Shortcuts.Register(_config.KeyTrackerCalibrate, new DelegateCommand(Calibrate));
                _state.Shortcuts.Register(_config.KeyTrackerReset, _state.TrackerPlugin.Content.ResetCommand);
            }

            if (_state.MediaPlugin != null && _state.MediaPlugin.Content != null)
            {
                _state.Shortcuts.Register(_config.KeyPlayPause, new DelegateCommand(MediaPlayPause));
                _state.Shortcuts.Register(_config.KeyStop, _state.MediaPlugin.Content.StopCommand);
                _state.Shortcuts.Register(_config.KeyPrevious, _state.MediaPlugin.Content.PreviousCommand);
                _state.Shortcuts.Register(_config.KeyNext, _state.MediaPlugin.Content.NextCommand);
            }
        }
Example #23
0
 private void EntityOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
 {
     // Handles changes in entity properties
     var entity = sender as Entity;
     if (entity is PlayerEntity)
     {
         var player = entity as PlayerEntity;
         var client = GetClient(player);
         switch (propertyChangedEventArgs.PropertyName)
         {
             case "Health":
             case "Food":
             case "FoodSaturation":
                 client.SendPacket(new UpdateHealthPacket(player.Health, player.Food, player.FoodSaturation));
                 if (player.Health <= 0)
                     KillEntity(player);
                 break;
             case "SpawnPoint":
                 client.SendPacket(new SpawnPositionPacket(player.SpawnPoint));
                 break;
             case "GameMode":
                 client.SendPacket(new ChangeGameStatePacket(GameState.ChangeGameMode, client.Entity.GameMode));
                 break;
         }
     }
 }
 /// <summary>
 /// Handles the <see cref="E:PropertyChanged" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="PropertyChangedEventArgs"/> instance containing the event data.</param>
 private void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "CurrentPage")
     {
         this.RaiseCurrentPageChanged();
     }
 }
Example #25
0
 protected void OnPropertyChanged(string propertyName)
 {
     var handler = PropertyChanged;
     if (handler == null) return;
     var e = new PropertyChangedEventArgs(propertyName);
     handler(this, e);
 }
		private void Pilot_PropertyChanged(object sender, PropertyChangedEventArgs e)
		{
			if (e.PropertyName == "Position" && !this.RaceStarted)
			{
				this.GetLeader();
			}
		}
 private void OnPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == "Name" || args.PropertyName == "Category" || args.PropertyName == "Description")
     {
         HasUnsavedChanges = true;
     }
 }
Example #28
0
 void RaisePropertyChanged(PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(this, e);
     }
 }
        private void OnTransferModelPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            IsValid = IsTransferModelValid();

            if (e.PropertyName == DataTransferModelProperties.HasImportStarted)
                IsAllowed = !TransferModel.HasImportStarted;
        }
 public void OnPropertyChanged(PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(this, e);
     }
 }