private void p7_Click(object sender, EventArgs e) { int i = 0; while (i <= 1) { sel s = new sel(out p7_s, out p7_c); if (i == 0) { s.ShowDialog(); } if (p7_s == "null" && p7_c == "null" || p7_s == null && p7_c == null || p7_s == "null" || p7_c == "null" || p7_s == null || p7_c == null || p7_s == "" || p7_c == "") { p7.Text = "-"; } else { p7.Text = p7_s + "-" + p7_c; } i++; } }
cmd2 = new SqlCommand(sel, obj.con);