private void Label_Click(object sender, RoutedEventArgs e) { if (sender == register) { Register reg = new Register(); reg.ShowDialog(); } else if (sender == findpwd) { FindPassword fp = new FindPassword(); fp.ShowDialog(); } }