예제 #1
0
 public void ChangeForm()
 {
     ErrorMessage.Invoke((MethodInvoker)(() => ErrorMessage.Dispose()));
     NameUserLabel.Invoke((MethodInvoker)(() => NameUserLabel.Dispose()));
     NameTextBox.Invoke((MethodInvoker)(() => NameTextBox.Dispose()));
     SignINBut.Invoke((MethodInvoker)(() => SignINBut.Dispose()));
     StartGameBUT.Invoke((MethodInvoker)(() => StartGameBUT.Visible = true));
     SettingsBUT.Invoke((MethodInvoker)(() => SettingsBUT.Visible = true));
     EscapeBUT.Invoke((MethodInvoker)(() => EscapeBUT.Visible = true));
 }
예제 #2
0
 private void StartGameBUT_Click(object sender, EventArgs e)
 {
     StartGameBUT.Invoke((MethodInvoker)(() => StartGameBUT.Dispose()));
     SettingsBUT.Invoke((MethodInvoker)(() => SettingsBUT.Dispose()));
     EscapeBUT.Invoke((MethodInvoker)(() => EscapeBUT.Dispose()));
     Title.Invoke((MethodInvoker)(() => Title.Visible = true));
     ListOfPlayers.Invoke((MethodInvoker)(() => ListOfPlayers.Visible = true));
     Status.Invoke((MethodInvoker)(() => Status.Visible = true));
     groupChoose.Invoke((MethodInvoker)(() => groupChoose.Visible = true));
     ChooseEnemyBUT.Invoke((MethodInvoker)(() => ChooseEnemyBUT.Visible = true));
     RandomEnemyBUT.Invoke((MethodInvoker)(() => RandomEnemyBUT.Visible = true));
     this.Width = 622;
 }