Exemple #1
0
        internal FormEditor(Gravity grav)
            : this()
        {
            this.grav = grav;
            userControlEdit.Gravity = grav;
            Text = "";
            IUpdatableForm f = this;

            f.UpdateFormUI();
        }
Exemple #2
0
        internal FormOrbital(Classes.Orbit orbit)
            : this()
        {
            this.orbit             = orbit;
            userControlOrbit.Orbit = orbit;
            Text = "";
            IUpdatableForm f = this;

            f.UpdateFormUI();
        }
Exemple #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="label">Label of object</param>
        /// <param name="field">Magnetic field</param>
        public FormSphericalMagnnetic(IObjectLabel label, SphericalFieldWrapper field)
            : this()
        {
            this.label = label;
            this.field = field;
            refresh();
            Text = "";
            IUpdatableForm f = this;

            f.UpdateFormUI();
        }
Exemple #4
0
 void IObjectLabelUI.UpdateForm()
 {
     if (form != null)
     {
         if (!form.IsDisposed)
         {
             if (form is IUpdatableForm)
             {
                 IUpdatableForm uf = form as IUpdatableForm;
                 uf.UpdateFormUI();
             }
         }
     }
 }
Exemple #5
0
        /// <summary>
        /// Updates property editor
        /// </summary>
        public void UpdateForm()
        {
            if (form == null)
            {
                return;
            }
            if (!(form is IUpdatableForm))
            {
                return;
            }
            IUpdatableForm updatable = form as IUpdatableForm;

            updatable.UpdateFormUI();
        }
 /// <summary>
 /// Updates form UI
 /// </summary>
 /// <param name="updatableForm">Form</param>
 public static void UpdateFormUI(this IUpdatableForm updatableForm)
 {
     updatableForm.UpdateFormUI();
 }