private void btnOk_Click(object sender, System.EventArgs e)
{
this.GetSelectRow();
this.DialogResult = DialogResult.OK;
}
private void GetSelectRow()
{ 1. if()语句为真的话 就不执行2.if ---------------------------------
2. if()
----------------------------------
}
-----------------------------------------------------------------
上面怎么实现呢?
{
this.GetSelectRow();
this.DialogResult = DialogResult.OK;
}
private void GetSelectRow()
{ 1. if()语句为真的话 就不执行2.if ---------------------------------
2. if()
----------------------------------
}
-----------------------------------------------------------------
上面怎么实现呢?
if()
{}
else
{
2.if(){}
}
{
//do what you want in condition1
}
else if( yourcondition2 )
{
//do what you want in condition 2
}