Example #1
0
        public void Ctor_PropertyTab_PropertyTab(PropertyTab oldTab, PropertyTab newTab)
        {
            var e = new PropertyTabChangedEventArgs(oldTab, newTab);

            Assert.Equal(oldTab, e.OldTab);
            Assert.Equal(newTab, e.NewTab);
        }
 private void XPropertyGrid_PropertyTabChanged(object s, PropertyTabChangedEventArgs e)
 {
 }
Example #3
0
 private void modernPropertyGrid1_PropertyTabChanged(object s, PropertyTabChangedEventArgs e)
 {
 }
Example #4
0
 private void propertyGrid_PropertyTabChanged(object sender, PropertyTabChangedEventArgs args)
 {
     RebuildChildrenTree();
 }
Example #5
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// propertytabchangedeventhandler.BeginInvoke(s, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this PropertyTabChangedEventHandler propertytabchangedeventhandler, Object s, PropertyTabChangedEventArgs e, AsyncCallback callback)
        {
            if (propertytabchangedeventhandler == null)
            {
                throw new ArgumentNullException("propertytabchangedeventhandler");
            }

            return(propertytabchangedeventhandler.BeginInvoke(s, e, callback, null));
        }
 private void propertyGrid_PropertyTabChanged(object s, PropertyTabChangedEventArgs e)
 {
     textBox.Text = String.Empty;
 }
Example #7
0
 private void propertyGrid_PropertyTabChanged(object sender, PropertyTabChangedEventArgs e)
 {
     selectTopItem(sender);
 }
Example #8
0
 /// <summary>
 /// Raises the <see cref="E:System.Windows.Forms.PropertyGrid.PropertyTabChanged"/> event.
 /// </summary>
 /// <param name="e">A <see cref="T:System.Windows.Forms.PropertyTabChangedEventArgs"/> that contains the event data.</param>
 protected override void OnPropertyTabChanged(PropertyTabChangedEventArgs e)
 {
     base.OnPropertyTabChanged(e);
     RefreshValidContextMenus();
 }