Пример #1
0
 private void Decorator_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     OnMarkRowChanged();
 }
Пример #2
0
 protected virtual void OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs args)
 {
 }
Пример #3
0
 private void ActivationShortcut_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     SetActivationKeys();
 }
Пример #4
0
 private void OnCurrentItemChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     UpdateGlyph();
     UpdateDuration();
 }
Пример #5
0
 void OnPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
 }
 void TravelRequestFormViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     isDirty = true;
 }
Пример #7
0
 /// <summary>
 /// The value of a property has changed event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void data_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     SetChangePropertyState(true);
 }
Пример #8
0
 private void OnRootPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.IsModelProperty())
     {
         DesignerDirty = true;
     }
     NotifyPropertyChanged(e.PropertyName);
 }
 /// <summary>
 /// This is invoked when the bound properties are updated.
 /// The property is monitored to run the UpdateList method.
 /// <param name="sender">The object what got the event</param>
 /// <param name="e">Data of the event</param>
 /// </summary>
 private void OnPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     UpdateList();
 }
Пример #10
0
        static void foo_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            var arg = e as PropertyChangedArgs;

            Console.WriteLine(arg.PropertyName + " 变化,由{0}变成{1}", arg.OldValue, arg.NewValue);
        }
Пример #11
0
 void inpc_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "" || e.PropertyName == _viewModel.Property)
         ApplyVMToV();
 }
		void SelectedPackageViewModelChanged (object sender, PropertyChangedEventArgs e)
		{
			try {
				if (e.PropertyName == "Versions") {
					PopulatePackageVersions (viewModel.SelectedPackage);
				} else {
					packagePublishedDate.Text = viewModel.SelectedPackage.GetLastPublishedDisplayText ();
					PopulatePackageDependencies (viewModel.SelectedPackage);
				}
			} catch (Exception ex) {
				LoggingService.LogError ("Error loading package versions.", ex);
			}
		}
		void ViewModelPropertyChanged (object sender, PropertyChangedEventArgs e)
		{
			try {
				ShowPackages ();
			} catch (Exception ex) {
				LoggingService.LogError ("Error showing packages.", ex);
				ShowErrorMessage (ex.Message);
			}
		}
Пример #14
0
 private void Instance_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     VisualStateManager.GoToState(this, "EmptySettingsState", true);
     DefaultViewModel["Groups"] = null;
 }
Пример #15
0
 private void UpdateManager_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     IsUpdateAvailable = m_updateManager.UpdateInstalled;
 }
 private void App_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     AppPropertyChanged?.Invoke((IAudioDeviceSession)sender, e.PropertyName);
 }
Пример #17
0
 void ParameterPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     RaisePropertyChanged("CommandSyntax");
 }
Пример #18
0
        private static void OnCurrent_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            var json = Newtonsoft.Json.JsonConvert.SerializeObject(_current);

            P42.Utils.TextCache.Store(json, nameof(Preferences), "AssetBuilder");
        }
Пример #19
0
 private void WritingOptions_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     DecompileAsync(lastSelectedStep);
 }
Пример #20
0
 private void CameraInternal_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     InvalidateRender();
 }
Пример #21
0
 private void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
 }
Пример #22
0
 /// <summary>
 /// Handles the <see cref="E:CellPropertyChanged" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="System.ComponentModel.PropertyChangedEventArgs"/> instance containing the event data.</param>
 protected override void OnCellPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs args)
 {
     base.OnCellPropertyChanged(sender, args);
 }
Пример #23
0
 private void Volume_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     _reader.Volume = 1f * AppSettings.Default.Volume.Music * AppSettings.Default.Volume.Main;
 }
Пример #24
0
 private void OnNodePropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     EvaluateNodeRules(sender as NodeModel, e.PropertyName);
     EvaluateGraphRules(sender as NodeModel, e.PropertyName);
 }
Пример #25
0
 public void PocoWithEvent_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     ProperyName = e.PropertyName;
 }
Пример #26
0
        /*
         * Ensure that the path bar gets updated for user interaction
         * whenever the path changes. We will get the individual directories from
         * the updated, most-current path and add them to the UI.
         */

        private void Universal_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            // Clear the path UI
            GetCurrentSelectedTabInstance <ProHome>().accessiblePathTabView.Items.Clear();
            Style      tabStyleFixed = GetCurrentSelectedTabInstance <ProHome>().accessiblePathTabView.Resources["PathSectionTabStyle"] as Style;
            FontWeight weight        = new FontWeight()
            {
                Weight = FontWeights.SemiBold.Weight
            };
            List <string> pathComponents = new List <string>();

            if (e.PropertyName == "path")
            {
                // If path is a library, simplify it

                // If path is found to not be a library
                pathComponents = Universal.path.Split("\\", StringSplitOptions.RemoveEmptyEntries).ToList();
                int index = 0;
                foreach (string s in pathComponents)
                {
                    string componentLabel = null;
                    string tag            = "";
                    if (s.Contains(":"))
                    {
                        if (s == @"C:" || s == @"c:")
                        {
                            componentLabel = @"Local Disk (C:\)";
                        }
                        else
                        {
                            componentLabel = @"Drive (" + s + @"\)";
                        }
                        tag = s + @"\";

                        Microsoft.UI.Xaml.Controls.TabViewItem item = new Microsoft.UI.Xaml.Controls.TabViewItem()
                        {
                            Header       = componentLabel + " ›",
                            Tag          = tag,
                            CornerRadius = new CornerRadius(0),
                            Style        = tabStyleFixed,
                            FontWeight   = weight,
                            FontSize     = 14
                        };
                        item.Tapped += Item_Tapped;
                        GetCurrentSelectedTabInstance <ProHome>().accessiblePathTabView.Items.Add(item);
                    }
                    else
                    {
                        componentLabel = s;
                        foreach (string part in pathComponents.GetRange(0, index + 1))
                        {
                            tag = tag + part + @"\";
                        }

                        Microsoft.UI.Xaml.Controls.TabViewItem item = new Microsoft.UI.Xaml.Controls.TabViewItem()
                        {
                            Header       = componentLabel + " ›",
                            Tag          = tag,
                            CornerRadius = new CornerRadius(0),
                            Style        = tabStyleFixed,
                            FontWeight   = weight,
                            FontSize     = 14
                        };
                        item.Tapped += Item_Tapped;
                        GetCurrentSelectedTabInstance <ProHome>().accessiblePathTabView.Items.Add(item);
                    }
                    index++;
                }
            }
        }
Пример #27
0
 private void frontWindowPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     this.Focus();
 }
Пример #28
0
 private void MarkCollection_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     OnMarkRowChanged();
 }
Пример #29
0
 private void settingsChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     Properties.Settings.Default.Save();
 }
Пример #30
0
        private void ENewItem_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            Transaction send = sender as Transaction;

            db.SaveTrainingExerciseItem(send);
        }
Пример #31
0
 static void Instance_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     Console.WriteLine(e.PropertyName + " : " + Singleton.Instance.Name);
 }
Пример #32
0
 private void onSettingsPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     Program.Settings.Update();
 }
Пример #33
0
 void Definition_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     IsDirty = true;
 }
 private void Device_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     DevicePropertyChanged?.Invoke((IAudioDevice)sender, e.PropertyName);
 }
Пример #35
0
            private void OnPropertyChanged(object sender, PropertyChangedEventArgs args, Notifier notifier)
            {
                if (args.PropertyName != "" && args.PropertyName != Parts[notifier.Idx])
                    return;

                //get rid of old subscriptions, just in case the objects aren't fully cleaned up
                for (var i = notifier.Idx + 1; i < _notifies.Length; i++)
                {
                    var ni = _notifies[i];
                    if (ni == null) continue;
                    ni.Object.PropertyChanged -= ni.Handler;
                    _notifies[i] = null;
                }

                //and now re-subscribe to the new 'tree'
                object root = notifier.Object;
                for (var i = notifier.Idx; i < _notifies.Length; i++)
                {
                    var part = GetIdxProperty(i, root);
                    if (part == null) return; //nope. invalid path.

                    root = part.GetValue(root, null);

                    if (root == null) return; //nope. new tree is lacking value somewhere

                    if (i+1 < _notifies.Length)
                        TrySubscribe(root, i+1);
                }

                _handler(sender, new PropertyChangedEventArgs(Path));
            }