call function
-
i write a function and i can not to call it how can i call the fanction with btn_click. private bool format(string date) { bool format; if (date == "1384/04/03") { format = true; } else { format = false; } return format; } private void Button2_Click(object sender, System.EventArgs e) { date=txtdate.Text; format(date); }
-
i write a function and i can not to call it how can i call the fanction with btn_click. private bool format(string date) { bool format; if (date == "1384/04/03") { format = true; } else { format = false; } return format; } private void Button2_Click(object sender, System.EventArgs e) { date=txtdate.Text; format(date); }
-
i write a function and i can not to call it how can i call the fanction with btn_click. private bool format(string date) { bool format; if (date == "1384/04/03") { format = true; } else { format = false; } return format; } private void Button2_Click(object sender, System.EventArgs e) { date=txtdate.Text; format(date); }