コード例 #1
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
        public MobileLabel CreateLabel(string text, int left, int top, int width, int height, MobileFontSize size,
                                       MobileFontPosition position, MobileFontColors color, FontStyle fontStyle,
                                       string controlName)
        {
            MobileLabel NewControl = new MobileLabel(MainForm, text, left, top, width, height, size, position, color,
                                                     fontStyle, controlName);

            ControlsArray.Add(NewControl);
            return(NewControl);
        }
コード例 #2
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/Lamps
        public void SetFontPosition(MobileFontPosition position)
        {
            switch (position)
            {
            case MobileFontPosition.Left:
                Control.TextAlign = ContentAlignment.TopLeft;
                break;

            case MobileFontPosition.Center:
                Control.TextAlign = ContentAlignment.TopCenter;
                break;

            case MobileFontPosition.Right:
                Control.TextAlign = ContentAlignment.TopRight;
                break;
            }
        }
コード例 #3
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/FMCG
        public MobileLabel(MainForm Form, string text, int left, int top, int width, int exactHeight, MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle, string ControlName)
        {
            ExactHeight = exactHeight;

            Control.Left = left;
            Control.Top = top;
            Control.Text = text;

            if (width > 0)
            {
                Control.Width = width;
            }

            Control.Name = ControlName;
            SetControlStyle(size, position, color, fontStyle);
            Form.Controls.Add(Control);
        }
コード例 #4
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
 public MobileLabel CreateLabel(string text, int left, int top, int width, int height, MobileFontSize size,
     MobileFontPosition position, MobileFontColors color, FontStyle fontStyle,
     string controlName)
 {
     MobileLabel NewControl = new MobileLabel(MainForm, text, left, top, width, height, size, position, color,
                                              fontStyle, controlName);
     ControlsArray.Add(NewControl);
     return NewControl;
 }
コード例 #5
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size,
     MobileFontPosition position, MobileFontColors color, FontStyle fontStyle,
     string controlName)
 {
     return CreateLabel(text, left, top, width, 0, size, position, color, fontStyle, controlName);
 }
コード例 #6
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
 public MobileLabel CreateLabel(string text, int left, int top, int width, int height, MobileFontSize size,
     MobileFontPosition position, MobileFontColors color, FontStyle fontStyle)
 {
     return CreateLabel(text, left, top, width, height, size, position, color, fontStyle, string.Empty);
 }
コード例 #7
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size,
     MobileFontPosition position, MobileFontColors color)
 {
     return CreateLabel(text, left, top, width, 0, size, position, color, FontStyle.Regular, string.Empty);
 }
コード例 #8
0
ファイル: WMSClient.cs プロジェクト: AramisIT/FMCG
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size,
     MobileFontPosition position, FontStyle fontStyle)
 {
     return CreateLabel(text, left, top, width, 0, size, position, MobileFontColors.Default, fontStyle,
                        string.Empty);
 }
コード例 #9
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/Lamps
 public void SetControlStyle(MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle)
 {
     SetFontSize(size, fontStyle);
     SetFontPosition(position);
     SetFontColor(color);
 }
コード例 #10
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/Lamps
        // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

        #region Public methods
        public MobileLabel(MainForm Form, string text, int left, int top, int width, int exactHeight, MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle, string ControlName)
        {
            ExactHeight = exactHeight;

            Control.Left = left;
            Control.Top  = top;
            Control.Text = text;

            if (width > 0)
            {
                Control.Width = width;
            }

            Control.Name = ControlName;
            SetControlStyle(size, position, color, fontStyle);
            Form.Controls.Add(Control);
        }
コード例 #11
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/FMCG
 public void SetFontPosition(MobileFontPosition position)
 {
     switch (position)
     {
         case MobileFontPosition.Left:
             Control.TextAlign = ContentAlignment.TopLeft;
             break;
         case MobileFontPosition.Center:
             Control.TextAlign = ContentAlignment.TopCenter;
             break;
         case MobileFontPosition.Right:
             Control.TextAlign = ContentAlignment.TopRight;
             break;
     }
 }
コード例 #12
0
ファイル: MobileLabel.cs プロジェクト: AramisIT/FMCG
 public void SetControlStyle(MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle)
 {
     SetFontSize(size, fontStyle);
     SetFontPosition(position);
     SetFontColor(color);
 }
コード例 #13
0
ファイル: WMSClient.cs プロジェクト: AramisIT/Lamps
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle, string controlName)
 {
     return(CreateLabel(text, left, top, width, 0, size, position, color, fontStyle, controlName));
 }
コード例 #14
0
ファイル: WMSClient.cs プロジェクト: AramisIT/Lamps
 public MobileLabel CreateLabel(string text, int left, int top, int width, int height, MobileFontSize size, MobileFontPosition position, MobileFontColors color, FontStyle fontStyle)
 {
     return(CreateLabel(text, left, top, width, height, size, position, color, fontStyle, string.Empty));
 }
コード例 #15
0
ファイル: WMSClient.cs プロジェクト: AramisIT/Lamps
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size, MobileFontPosition position, MobileFontColors color)
 {
     return(CreateLabel(text, left, top, width, 0, size, position, color, FontStyle.Regular, string.Empty));
 }
コード例 #16
0
ファイル: WMSClient.cs プロジェクト: AramisIT/Lamps
 public MobileLabel CreateLabel(string text, int left, int top, int width, MobileFontSize size, MobileFontPosition position, FontStyle fontStyle)
 {
     return(CreateLabel(text, left, top, width, 0, size, position, MobileFontColors.Default, fontStyle, string.Empty));
 }