water_lily_2012
دوشنبه 24 مرداد 1390, 18:53 عصر
سلام
من دو تا گرید در برنامه دارم که با کلیک روی یک دکمه گریدی که دکمه داخلش هست باید ناپدید بشه و گرید دوم ظاهر بشه. و بعد تعدادی دستور اجرا بشه.
متاسفانه اول دستورات اجرا میشه و بعد گرید ناپدید میشه و گرید بعدی ظاهر میشه در صورتیکه دستورات در رویداد کلیک دکمه بعد از دستورات ناپدید شدن هست.
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
MainGrid.Visibility = Visibility.Hidden;
TestConnectGrid.Visibility = Visibility.Visible;
Login login = new Login();
int GetUser = login.VerifyUserName("Reza", "521");
if (GetUser == 0)
MessageBox.Show("no");
}
من دو تا گرید در برنامه دارم که با کلیک روی یک دکمه گریدی که دکمه داخلش هست باید ناپدید بشه و گرید دوم ظاهر بشه. و بعد تعدادی دستور اجرا بشه.
متاسفانه اول دستورات اجرا میشه و بعد گرید ناپدید میشه و گرید بعدی ظاهر میشه در صورتیکه دستورات در رویداد کلیک دکمه بعد از دستورات ناپدید شدن هست.
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
MainGrid.Visibility = Visibility.Hidden;
TestConnectGrid.Visibility = Visibility.Visible;
Login login = new Login();
int GetUser = login.VerifyUserName("Reza", "521");
if (GetUser == 0)
MessageBox.Show("no");
}