Esempio n. 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));
 }
Esempio n. 2
0
        void ReleaseDesignerOutlets()
        {
            if (AdditionalInfoTextBox != null)
            {
                AdditionalInfoTextBox.Dispose();
                AdditionalInfoTextBox = null;
            }

            if (CurrentLocationTextBox != null)
            {
                CurrentLocationTextBox.Dispose();
                CurrentLocationTextBox = null;
            }

            if (DestinationTextBox != null)
            {
                DestinationTextBox.Dispose();
                DestinationTextBox = null;
            }

            if (FeedbackButton != null)
            {
                FeedbackButton.Dispose();
                FeedbackButton = null;
            }

            if (NameTextBox != null)
            {
                NameTextBox.Dispose();
                NameTextBox = null;
            }

            if (RequestButton != null)
            {
                RequestButton.Dispose();
                RequestButton = null;
            }
        }