Пример #1
0
        public virtual bool GetIsDirty()
        {
            int num = 0;

            while (true)
            {
                if (num < this.AllControls.Count)
                {
                    IPlugInEditorControl plugInEditorControl = this.AllControls[num] as IPlugInEditorControl;
                    if (plugInEditorControl != null && plugInEditorControl.GetIsDisplayDirty(this.OriginalInstance))
                    {
                        break;
                    }
                    num++;
                    continue;
                }
                foreach (PlugInStandard classPlugIn in this.ClassPlugIns)
                {
                    if (classPlugIn != this && classPlugIn.GetIsDirty())
                    {
                        return(true);
                    }
                }
                return(false);
            }
            return(true);
        }
Пример #2
0
        private void OnSetTextFocusControlPropertyName(object sender, EventArgs e)
        {
            FocusLabel           focusLabel          = base.Component as FocusLabel;
            IPlugInEditorControl plugInEditorControl = focusLabel.FocusControl as IPlugInEditorControl;

            if (!(plugInEditorControl.PropertyName == Const.EmptyString))
            {
                focusLabel.Text = plugInEditorControl.PropertyName;
            }
        }
Пример #3
0
 private void ConnectEditorControls()
 {
     for (int i = 0; i < this.AllControls.Count; i++)
     {
         IPlugInEditorControl plugInEditorControl = this.AllControls[i] as IPlugInEditorControl;
         if (plugInEditorControl != null)
         {
             plugInEditorControl.PlugInForm = this;
         }
     }
 }
Пример #4
0
 public virtual void TransferAmbient()
 {
     for (int i = 0; i < this.AllControls.Count; i++)
     {
         IPlugInEditorControl plugInEditorControl = this.AllControls[i] as IPlugInEditorControl;
         plugInEditorControl?.TransferAmbient(this.Source, this.Destination);
     }
     foreach (PlugInStandard classPlugIn in this.ClassPlugIns)
     {
         if (classPlugIn != this)
         {
             classPlugIn.TransferAmbient();
         }
     }
 }