示例#1
0
 private void UpdateBtn_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(FNameBox.Text) || string.IsNullOrWhiteSpace(FNameBox.Text))
     {
         EmptyWarning.Visible = true;
     }
     else
     {
         CDC.Database.ExecuteSqlRaw("Execute dbo.UpdateCustFirstName @ID, @NewFirstName",
                                    new SqlParameter("ID", CustomerID), new SqlParameter("NewFirstName", FNameBox.Text.ToString()));
         CustChoose CustView = new CustChoose();
         CustView.Show();
         this.Close();
     }
 }
示例#2
0
        private void AddrEditForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            CustChoose CustView = new CustChoose();

            CustView.Show();
        }