public void                 setupByForm(IWin32Window aOwner, IRedraw aRedraw)
 {
     using (var lSetupForm = new SetupForm(this, aRedraw))
     {
         lSetupForm.ShowDialog(aOwner);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Redraws all forms
        /// </summary>
        internal void Redraw()
        {
            foreach (Control c in desktop.Controls)
            {
                if (!(c is IObjectLabelUI))
                {
                    continue;
                }
                IObjectLabelUI label = c as IObjectLabelUI;

                Form f = null;
                if (label is IShowForm)
                {
                    IShowForm sf = label as IShowForm;
                    f = sf.Form as Form;
                }
                if (f == null)
                {
                    Redraw(c);
                    continue;
                }
                if (f.IsDisposed)
                {
                    Redraw(c);
                    continue;
                }
                if (!(f is IRedraw))
                {
                    continue;
                }
                IRedraw r = f as IRedraw;
                r.Redraw();
            }
        }
Esempio n. 3
0
        private void buttonApplyCoord_Click(object sender, EventArgs e)
        {
            acceptPar();
            IRedraw r = this;

            r.Redraw();
        }
Esempio n. 4
0
        public SetupForm(SymbolImage aImage, IRedraw aRedraw)
        {
            mImage  = aImage;
            mRedraw = aRedraw;
            InitializeComponent();

            updateForm();
        }
Esempio n. 5
0
        public SetupForm(SymbolLine aLine, IRedraw aRedraw)
        {
            mLine   = aLine;
            mRedraw = aRedraw;
            InitializeComponent();

            spinEdit_Width.Value  = mLine.LineWidth;
            colorEdit_Color.Color = mLine.LineColor;
            spinEdit_Angle.Value  = mLine.Angle;
        }
        public SetupForm(SymbolEllipse aEllipse, IRedraw aRedraw)
        {
            mEllipse = aEllipse;
            mRedraw  = aRedraw;
            InitializeComponent();

            spinEdit_BorderWidth.Value  = mEllipse.BorderWidth;
            colorEdit_BorderColor.Color = mEllipse.BorderColor;
            colorEdit_FillColor.Color   = mEllipse.FillColor;
        }
        public SetupForm(SymbolRectangle aRectangle, IRedraw aRedraw)
        {
            mRectangle = aRectangle;
            mRedraw    = aRedraw;
            InitializeComponent();

            spinEdit_BorderWidth.Value  = mRectangle.BorderWidth;
            colorEdit_BorderColor.Color = mRectangle.BorderColor;
            colorEdit_FillColor.Color   = mRectangle.FillColor;
        }
 void IRedraw.Redraw()
 {
     if (pIndicator != null)
     {
         if (pIndicator is IRedraw)
         {
             IRedraw r = pIndicator as IRedraw;
             r.Redraw();
         }
     }
 }
Esempio n. 9
0
        public SetupForm(ElementLine aLine, IRedraw aRedraw)
        {
            mLine   = aLine;
            mRedraw = aRedraw;
            InitializeComponent();

            spinEdit_X1.Value     = mLine.mX1;
            spinEdit_Y1.Value     = mLine.mY1;
            spinEdit_X2.Value     = mLine.mX2;
            spinEdit_Y2.Value     = mLine.mY2;
            spinEdit_Width.Value  = mLine.LineWidth;
            colorEdit_Color.Color = mLine.LineColor;
        }
        public SetupForm(ElementText aText, IRedraw aRedraw)
        {
            mText   = aText;
            mRedraw = aRedraw;
            InitializeComponent();

            spinEdit_X.Value              = mText.mX;
            spinEdit_Y.Value              = mText.mY;
            textBox_Text.Text             = mText.mText;
            buttonEdit_Font.Text          = StringUtils.ObjectToString(mText.TextFont);
            colorEdit_Color.Color         = mText.TextColor;
            comboBox_Rotate.SelectedIndex = (int)mText.mRotation;
        }
Esempio n. 11
0
        public SetupForm(ElementEllipse aEllipse, IRedraw aRedraw)
        {
            mEllipse = aEllipse;
            mRedraw  = aRedraw;
            InitializeComponent();

            spinEdit_X.Value            = mEllipse.mX;
            spinEdit_Y.Value            = mEllipse.mY;
            spinEdit_Width.Value        = mEllipse.mWidth;
            spinEdit_Height.Value       = mEllipse.mHeight;
            spinEdit_BorderWidth.Value  = mEllipse.BorderWidth;
            colorEdit_BorderColor.Color = mEllipse.BorderColor;
            colorEdit_FillColor.Color   = mEllipse.FillColor;
        }
Esempio n. 12
0
 void IRedraw.Redraw()
 {
     if (blocked)
     {
         return;
     }
     if (pIndicator != null)
     {
         if (pIndicator is IRedraw)
         {
             IRedraw r = pIndicator as IRedraw;
             r.Redraw();
         }
     }
 }
Esempio n. 13
0
 private bool Redraw(Control control)
 {
     IRedraw r = control.GetSimpleObject<IRedraw>();
     if (r != null)
     {
         r.Redraw();
         return true;
     }
     foreach (Control c in control.Controls)
     {
         if (Redraw(c))
         {
             return true;
         }
     }
     return false;
 }
Esempio n. 14
0
        private void refresh()
        {
            IRedraw r = this;

            r.Redraw();
        }
Esempio n. 15
0
 public Form                 getSetupForm(IRedraw aRedraw)
 {
     return(new SetupForm(this, aRedraw));
 }
 public void                 setupByForm(IWin32Window aOwner, IRedraw aRedraw)
 {
 }