コード例 #1
0
 public void                 setupByForm(IWin32Window aOwner, IRedraw aRedraw)
 {
     using (var lSetupForm = new SetupForm(this, aRedraw))
     {
         lSetupForm.ShowDialog(aOwner);
     }
 }
コード例 #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();
            }
        }
コード例 #3
0
ファイル: FormMapTransform.cs プロジェクト: Erroman/universal
        private void buttonApplyCoord_Click(object sender, EventArgs e)
        {
            acceptPar();
            IRedraw r = this;

            r.Redraw();
        }
コード例 #4
0
        public SetupForm(SymbolImage aImage, IRedraw aRedraw)
        {
            mImage  = aImage;
            mRedraw = aRedraw;
            InitializeComponent();

            updateForm();
        }
コード例 #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;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
        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;
        }
コード例 #8
0
 void IRedraw.Redraw()
 {
     if (pIndicator != null)
     {
         if (pIndicator is IRedraw)
         {
             IRedraw r = pIndicator as IRedraw;
             r.Redraw();
         }
     }
 }
コード例 #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;
        }
コード例 #10
0
        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;
        }
コード例 #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;
        }
コード例 #12
0
 void IRedraw.Redraw()
 {
     if (blocked)
     {
         return;
     }
     if (pIndicator != null)
     {
         if (pIndicator is IRedraw)
         {
             IRedraw r = pIndicator as IRedraw;
             r.Redraw();
         }
     }
 }
コード例 #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;
 }
コード例 #14
0
ファイル: FormMapTransform.cs プロジェクト: Erroman/universal
        private void refresh()
        {
            IRedraw r = this;

            r.Redraw();
        }
コード例 #15
0
 public Form                 getSetupForm(IRedraw aRedraw)
 {
     return(new SetupForm(this, aRedraw));
 }
コード例 #16
0
 public void                 setupByForm(IWin32Window aOwner, IRedraw aRedraw)
 {
 }