コード例 #1
0
 private void linkLabel_LeftClicked(object sender, LabelClickedEventArgs e)
 {
     foreach (PropertyDescriptor propertyDescriptor in PropertyGridUtilities.GetPropertyDescriptors(this._propertyItem.Instance))
     {
         if (propertyDescriptor.Name == this._displayName)
         {
             using (CompositeTask.Run(this._propertyItem.DiaplayName))
                 propertyDescriptor.ResetValue(this._propertyItem.Instance);
             this.ScenceSetValue();
             IPlayControl instance = this._propertyItem.Instance as IPlayControl;
             if (instance == null)
             {
                 break;
             }
             instance.Start();
             break;
         }
     }
 }
コード例 #2
0
        private void linkLabel_LeftClicked(object sender, LabelClickedEventArgs e)
        {
            PropertyDescriptorCollection propertyDescriptors = PropertyGridUtilities.GetPropertyDescriptors(this._propertyItem.Instance);

            foreach (PropertyDescriptor propertyDescriptor in propertyDescriptors)
            {
                if (propertyDescriptor.Name == this._displayName)
                {
                    using (CompositeTask.Run(this._propertyItem.DiaplayName))
                    {
                        propertyDescriptor.ResetValue(this._propertyItem.Instance);
                    }
                    this.ScenceSetValue();
                    IPlayControl playControl = this._propertyItem.Instance as IPlayControl;
                    if (playControl != null)
                    {
                        playControl.Start();
                    }
                    break;
                }
            }
        }
コード例 #3
0
 protected override void SetControlProperties()
 {
     Editor.TextAlignment = System.Windows.TextAlignment.Left;
     Editor.Style         = PropertyGridUtilities.GetUpDownBaseStyle <TType>();
 }