Esempio n. 1
0
        protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
        {
            base.OnStateChanged(sender, e);
            AutoHeightRadioButton autoHeightRadioButton = base.HostControl as AutoHeightRadioButton;
            bool @checked = autoHeightRadioButton.Checked;

            RadioButtonBulkEditorAdapter.UpdatePeerRadioButtons(autoHeightRadioButton, base["Checked"]);
            if (base["Checked"] != null && base["Checked"] != 3)
            {
                this.forceAllowCheckedChangedEvent = true;
                autoHeightRadioButton.Checked      = autoHeightRadioButton.BulkEditDefaultChecked;
                this.forceAllowCheckedChangedEvent = false;
                autoHeightRadioButton.Checked      = @checked;
                Binding binding = autoHeightRadioButton.DataBindings["Checked"];
                if (binding != null)
                {
                    binding.WriteValue();
                }
                autoHeightRadioButton.TabStop = true;
            }
            else if (base["Checked"] != 3)
            {
                autoHeightRadioButton.Checked = !autoHeightRadioButton.Checked;
            }
            autoHeightRadioButton.Invalidate();
        }
 protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
 {
     base.OnStateChanged(sender, e);
     if (string.Equals(e.PropertyName, "Checked"))
     {
         AutoHeightCheckBox autoHeightCheckBox = base.HostControl as AutoHeightCheckBox;
         if (base["Checked"] != null && base["Checked"] != 3)
         {
             bool @checked = autoHeightCheckBox.Checked;
             this.forceAllowCheckedChangedEvent = true;
             autoHeightCheckBox.Checked         = autoHeightCheckBox.BulkEditDefaultChecked;
             this.forceAllowCheckedChangedEvent = false;
             autoHeightCheckBox.Checked         = @checked;
             Binding binding = autoHeightCheckBox.DataBindings["Checked"];
             if (binding != null)
             {
                 binding.WriteValue();
             }
         }
         else if (base["Checked"] != 3)
         {
             autoHeightCheckBox.Checked = false;
         }
     }
     base.HostControl.Invalidate();
 }
Esempio n. 3
0
 protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
 {
     base.OnStateChanged(sender, e);
     if (base["Value"] == 3)
     {
         base.HostControl.Enabled = false;
     }
 }
Esempio n. 4
0
        private void BulkEditorAdapter_StateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
        {
            ExchangeUserControl exchangeUserControl = base.HostControl as ExchangeUserControl;

            foreach (KeyValuePair <string, HashSet <Control> > keyValuePair in exchangeUserControl.ExposedPropertyRelatedControls)
            {
                if (exchangeUserControl.ExposedPropertyRelatedControls[keyValuePair.Key].Contains(sender.HostControl))
                {
                    base[keyValuePair.Key] = sender[e.PropertyName];
                }
            }
        }
Esempio n. 5
0
 protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
 {
     base.OnStateChanged(sender, e);
     if (base[e.PropertyName] == 2 || base[e.PropertyName] == 3)
     {
         ExchangeUserControl exchangeUserControl = base.HostControl as ExchangeUserControl;
         foreach (Control control in exchangeUserControl.ExposedPropertyRelatedControls[e.PropertyName])
         {
             control.Enabled = false;
         }
     }
 }
        protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
        {
            base.OnStateChanged(sender, e);
            Control hostControl = base.HostControl;
            FeatureLauncherListViewItem featureLauncherListViewItem = this.FindItemByPropertyName(e.PropertyName);

            this.UpdateFeatureItem(featureLauncherListViewItem);
            if (featureLauncherListViewItem != null && base[e.PropertyName] == null)
            {
                featureLauncherListViewItem.FireStatusChanged();
            }
        }
Esempio n. 7
0
 protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
 {
     base.OnStateChanged(sender, e);
     if (base["DataSource"] == 3)
     {
         (base.HostControl as DataListView).DrawLockedIcon = true;
         return;
     }
     if (base["DataSource"] != null)
     {
         this.bulkEditSupport.BulkEditingIndicatorText = base.BulkEditingIndicatorText;
         if (base[e.PropertyName] == 2)
         {
             base.HostControl.Enabled = false;
             return;
         }
     }
     else
     {
         this.bulkEditSupport.BulkEditingIndicatorText = string.Empty;
         this.bulkEditSupport.FireDataSourceChanged();
     }
 }
Esempio n. 8
0
 protected override void OnStateChanged(BulkEditorAdapter sender, BulkEditorStateEventArgs e)
 {
     base.OnStateChanged(sender, e);
     base.HostControl.Invalidate();
 }