Exemple #1
0
 private void btnCustomer_Click(object sender, EventArgs e)
 {
     FmSelectCustomer ul = new FmSelectCustomer();
     var result = ul.ShowDialog(this);
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         txtName.Text = FmSelectCustomer.Firstname;
         txtLastname.Text = FmSelectCustomer.Lastname;
         txtNickname.Text = FmSelectCustomer.Nickname;
         txtMobile.Text = FmSelectCustomer.tel;
     }
 }
Exemple #2
0
        private void btnCustomer_Click(object sender, EventArgs e)
        {
            FmSelectCustomer ul = new FmSelectCustomer();
            var result          = ul.ShowDialog(this);

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                txtName.Text     = FmSelectCustomer.Firstname;
                txtLastname.Text = FmSelectCustomer.Lastname;
                txtNickname.Text = FmSelectCustomer.Nickname;
                txtMobile.Text   = FmSelectCustomer.tel;
            }
        }
Exemple #3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            Param.SelectCustomerId        = "000000";
            Param.SelectCustomerName      = "ลูกค้าทั่วไป";
            Param.SelectCustomerSex       = "";
            Param.SelectCustomerAge       = 0;
            Param.SelectCustomerSellPrice = 0;
            FmSelectCustomer ul = new FmSelectCustomer();
            var result          = ul.ShowDialog(this);

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                SelectCustomer(sender, e);
            }
        }
Exemple #4
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     Param.SelectCustomerId = "000000";
     Param.SelectCustomerName = "ลูกค้าทั่วไป";
     Param.SelectCustomerSex = "";
     Param.SelectCustomerAge = 0;
     Param.SelectCustomerSellPrice = 0;
     FmSelectCustomer ul = new FmSelectCustomer();
     var result = ul.ShowDialog(this);
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         SelectCustomer(sender, e);
     }
 }