private void propertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(_symbol);
     }
 }
Beispiel #2
0
        void PropGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
        {
            try
            {
                var changedProperty = e.ChangedItem.PropertyDescriptor.Name;
                if (PropGrid.SelectedObject != null && PropGrid.SelectedObjects.Length == 1)
                {
                    var unit = PropGrid.SelectedObject as ComputationUnit;
                    PropertyValueChanged(unit, changedProperty);
                }
                else if (PropGrid.SelectedObjects != null)
                {
                    PropGrid.SelectedObjects.ForEach(x =>
                    {
                        var unit = x as ComputationUnit;
                        PropertyValueChanged(unit, changedProperty);
                    });
                    PropGrid.SelectedObjects = PropGrid.SelectedObjects;
                }

                if (changedProperty == "Type")
                {
                    Demo.ShowTypeTheme();
                }
                PropGrid.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "ERROR");
            }
        }
Beispiel #3
0
 /// <summary>
 /// Called when the property changed.
 /// </summary>
 void _propertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     System.Windows.Forms.Control control = CadKit.Documents.Manager.Instance.ActiveView as System.Windows.Forms.Control;
     if (null != control)
     {
         control.Invalidate(true);
     }
 }
Beispiel #4
0
 private void PropertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     mainWindowViewModel.Biz.AsyncSaveObject("AlarmParam", mainWindowViewModel.Biz.AlarmParam);
     mainWindowViewModel.Biz.AsyncSaveObject("DetectParam", mainWindowViewModel.Biz.DetectParam);
     mainWindowViewModel.Biz.AsyncSaveObject("SerialParam", mainWindowViewModel.Biz.SerialParam);
     if (PropertyGrid.SelectedObject == mainWindowViewModel.Biz.SerialParam)
     {
         mainWindowViewModel.Biz.ReConnectSerial();
     }
 }
 private void propertyGrid1_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     if (treeView1.SelectedNode == null)
     {
         return;
     }
     if (e.ChangedItem.Label == "Text")
     {
         treeView1.SelectedNode.Text = (string)e.ChangedItem.Value;
     }
 }
Beispiel #6
0
 void mPropertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     if (SelectedObject != null)
     {
         if (SelectedObject.CurrentCommand != null)
         {
             CommandManager.Execute(SelectedObject.CurrentCommand);
         }
     }
     //else if (SelectedObjects != null)
     //{
     //}
 }
Beispiel #7
0
        private void PropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            string name = e.ChangedItem?.PropertyDescriptor?.Name;

            if (name == null)
            {
                return;
            }
            foreach (var obj in Model.Context.PropertyGrid.SelectedObjects)
            {
                var config = obj as ConfigBase;
                config?.RaisePropertyChanged(name);
            }
        }
        void propertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
        {
            Hashtable propertyItems = null;

            if (!ChangedPropertyItems.ContainsKey(this.propertyGrid.SelectedObject))
            {
                propertyItems = new Hashtable();
                ChangedPropertyItems[this.propertyGrid.SelectedObject] = propertyItems;
            }
            else
            {
                propertyItems = ChangedPropertyItems[this.propertyGrid.SelectedObject];
            }
            propertyItems[e.ChangedItem] = e;

            ValueChanged = true;
            CommandManager.InvalidateRequerySuggested();
        }
Beispiel #9
0
 private static void PropertySelection_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     new ActionPropertyChange(Selected.ToArray(), e.ChangedItem.PropertyDescriptor, e.OldValue, e.ChangedItem.Value);
 }
Beispiel #10
0
 private void MainWindow_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     this.presenter.OptionChangeCommand.Execute(null);
 }
Beispiel #11
0
 private void obj_PropertyValueChanged(System.Object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     this.OnChanged(s);
 }
 private void PropertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     OnPropertyChange(e.ChangedItem.Label);
 }
Beispiel #13
0
 private void PropertyValueChange(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     RenderManager.Render();
     textEditor.Text = string.Join("", UISObjectTree.Instance.Select(p => p.CombineValue()));
 }
Beispiel #14
0
 public void propertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     //TODO
     Bind();
 }
Beispiel #15
0
 private void propDisplay_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     DiagramNet.Document d = AppGlobals.CurrentDesigner.modelDocEditor.Document;
     AppGlobals.CurrentDesigner.modelDocEditor.SetDocument(d);
 }
 private void propertyGrid1_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     ExecuteProcessing();
 }
Beispiel #17
0
 private void PropertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     OnPropertyEdited();
 }
Beispiel #18
0
 private void PropertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     _currentPropertyNode.ExternallySet = false;
 }
Beispiel #19
0
 /// <summary>
 /// Called when a property is changed.
 /// </summary>
 private void _propertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
 {
     this._updateColorEditor();
 }