Exemplo n.º 1
0
        public FRMAddCredit(string topupID, string customerID, string amount, string dateTopup, string customerName)
        {
            InitializeComponent();
            fTopupID = topupID;
            fCustomerID = customerID;
            fCustomerName = customerName;
            fAmount = amount;
            fDateTopup = dateTopup;

            txtValueBaht.Properties.Mask.EditMask = "d";
            txtValueBaht.Properties.Mask.AutoComplete = DevExpress.XtraEditors.Mask.AutoCompleteType.Default;
            txtValueBaht.Properties.Mask.IgnoreMaskBlank = false;
            txtValueBaht.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
            txtValueBaht.Properties.MaxLength = 4;

            Debug.WriteLine(fTopupID);
            connectDB = new ConMySql();
            messageError = new MessageError();
            txtValueBaht.Text = fAmount;
            if (fCustomerName != "ไม่มีชื่อ")
            {
                txtCustomerName.Text = fCustomerName;
                //txtValueBaht.Select();
            }
            //else
            //{
                txtCustomerName.Select();
            //}
        }
Exemplo n.º 2
0
        private void loadSetting()
        {
            this.Text = str_formName;
            this.KeyPreview = true;

            messageError = new MessageError();

            setPropertiesTextbox();

            dtHistory.Value = DateTime.Now;

            //ImageList iconsList = new ImageList();
            //iconsList.TransparentColor = Color.Blue;
            //iconsList.ColorDepth = ColorDepth.Depth32Bit;
            //iconsList.ImageSize = new Size(25, 25);
            //iconsList.Images.Add(Image.FromFile(@"Files\Images\icoOne2Call.png"));
            //iconsList.Images.Add(Image.FromFile(@"Files\Images\icoDTAC.png"));
            //iconsList.Images.Add(Image.FromFile(@"Files\Images\icoTrueMove.png"));
            //tabControlSMS.ImageList = iconsList;
        }