123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using DevExpress.XtraEditors;
- namespace UAS_PLCDataReader.CustomerControl.PictureEditWithText
- {
- public partial class PictureEditWithText : XtraUserControl
- {
- public PictureEdit Picedit
- {
- get
- {
- return UserPictureEdit;
- }
- set
- {
- UserPictureEdit = value;
- }
- }
- public override string Text
- {
- get
- {
- return UserLabelControl.Text;
- }
- set
- {
- UserLabelControl.Text = value;
- }
- }
- public string DeviceName
- {
- get
- {
- return UserLabelControl1.Text;
- }
- set
- {
- UserLabelControl1.Text = value;
- }
- }
- public PictureEditWithText()
- {
- InitializeComponent();
- }
- private void PictureEditWithText_Load(object sender, EventArgs e)
- {
- UserLabelControl.Location = new Point((Width - UserLabelControl.Width) / 2, UserLabelControl.Location.Y);
- UserLabelControl1.Location = new Point((Width - UserLabelControl.Width) / 2, UserLabelControl1.Location.Y);
- }
- }
- }
|