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); }
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; } }
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; } } }
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(); } } }