private void Button_Click(object sender, RoutedEventArgs e)
{
if (TextBox1.Text.Length != 0 && TextBox2.Text.Length != 0)
{
if (TextBox1.Text == "admin" && TextBox2.Text == "admin")
{
Window1 w = new Window1();
w.Show();
Close();
}
else
{
MessageBox.Show("username/password is invalid");
}
}
else
{
MessageBox.Show("textbox khali hai..");
}
}

private void Reset_Button_Click_1(object sender, RoutedEventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";

}