private void pb_QuestionSub_Click(object sender, EventArgs e)
{
if (show ==false)
{
Screen[] screens = Screen.AllScreens;
if (screens.Count() > 1)
{
Rectangle bounds = screens[1].Bounds;
questionScreen.SetBounds(bounds.X, bounds.Y, bounds.Width, bounds.Height);
//
questionScreen.Location = new Point(questionScreen.Location.X + 0, questionScreen.Location.Y + 80);
questionScreen.StartPosition = FormStartPosition.Manual;
questionScreen.Show();
questionScreen.ShowQuestionSub(IDQuestion_Sub);
}
else
{
questionScreen.Show();
questionScreen.ShowQuestionSub(IDQuestion_Sub);
}
show = true;
}
else
{
questionScreen.Hide();
show = false;
}
}