byte[] img; MemoryStream ms1; ms1 = new MemoryStream(); pictureBox_ForTRAINER.Image.Save(ms1, pictureBox_ForTRAINER.Image.RawFormat); img = ms1.ToArray();
try { if (radioButton_Male.Checked == true) { gender = "Male"; } else { gender = "Female"; } byte[] img; MemoryStream ms1; ms1 = new MemoryStream(); pictureBox_ForTRAINER.Image.Save(ms1, pictureBox_ForTRAINER.Image.RawFormat); img = ms1.ToArray(); Customer_Function.Customer_Operation.Add_NewCustomer( Convert.ToInt32(ID_TextBox.Text), Name_TextBox.Text, phone_TextBox.Text, kind_TextBox.Text, comboBox_ShowState.SelectedIndex.ToString(), FirstDate_TextBox.Value, End_Date.Value, float.Parse(Cost_TextBox.Text), float.Parse(Paid_TextBox.Text), float.Parse(remain_TextBox.Text), NotesAboutTRAINING_TextBox.Text, img, gender );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)