コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

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

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

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

            if (PinTextField != null)
            {
                PinTextField.Dispose();
                PinTextField = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (InstructionLabel != null)
            {
                InstructionLabel.Dispose();
                InstructionLabel = null;
            }

            if (UploadAllButton != null)
            {
                UploadAllButton.Dispose();
                UploadAllButton = null;
            }
        }
コード例 #3
0
        //Shows Converter Menu
        private void ShowConverter()
        {
            //Show the converter menu's controls and labels
            CategoryLabel.Show();
            CategoryComboBox.Show();
            InstructionLabel.Show();
            ValueOfLabel.Show();
            UserInputTextBox.Show();
            FromLabel.Show();
            InitialUnitsComboBox.Show();
            ToLabel.Show();
            ResultingUnitsComboBox.Show();
            BackButtonLabel.Show();
            BackButton.Show();
            DividerLabel.Show();

            UserInputTextBox.Focus();
        }
コード例 #4
0
ファイル: ControlForm.cs プロジェクト: parkpetersen/5700-HW2
 private void StartButton_Click(object sender, EventArgs e)
 {
     if (ValidateCourseLength())
     {
         active = true;
         StartButton.Hide();
         LengthEntryBox.Hide();
         InstructionLabel.Hide();
         myCourse     = new Course(float.Parse(LengthEntryBox.Text, System.Globalization.CultureInfo.InvariantCulture));
         observerList = new List <AthleteObserver>();
         Thread myThread = new Thread(StartSimulation);
         myThread.Start();
         Thread myThread2 = new Thread(RefreshTimer);
         myThread2.Start();
     }
     else
     {
         LengthEntryBox.Clear();
         InstructionLabel.Text = "Must be a number.";
     }
 }
コード例 #5
0
        void ReleaseDesignerOutlets()
        {
            if (InstructionLabel != null)
            {
                InstructionLabel.Dispose();
                InstructionLabel = null;
            }

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

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

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

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

            if (ToRomanButton != null)
            {
                ToRomanButton.Dispose();
                ToRomanButton = null;
            }
        }
コード例 #6
0
        //Overrided method accepting a category parameter obtained from menu selection
        private void ShowConverter(String category)
        {
            //Shows the converter menu's controls and labels
            CategoryLabel.Show();
            CategoryComboBox.Show();
            InstructionLabel.Show();
            ValueOfLabel.Show();
            UserInputTextBox.Show();
            FromLabel.Show();
            InitialUnitsComboBox.Show();
            ToLabel.Show();
            ResultingUnitsComboBox.Show();
            ConvertSubmissionButton.Show();
            BackButtonLabel.Show();
            BackButton.Show();
            DividerLabel.Show();
            //Selects the category field in the converter
            CategoryComboBox.SelectedIndex = CategoryComboBox.FindStringExact(category);
            //Shows the default units of measurement
            ShowDefaultUnits(category);

            UserInputTextBox.Focus();
        }
コード例 #7
0
 //Hides Converter Menu
 private void HideConverter()
 {
     CategoryLabel.Hide();
     CategoryComboBox.Hide();
     InstructionLabel.Hide();
     ValueOfLabel.Hide();
     UserInputTextBox.Hide();
     FromLabel.Hide();
     InitialUnitsComboBox.Hide();
     ToLabel.Hide();
     ResultingUnitsComboBox.Hide();
     ConvertSubmissionButton.Hide();
     BackButtonLabel.Hide();
     BackButton.Hide();
     DividerLabel.Hide();
     InitialValueLabel.Hide();
     InitialUnitsLabel.Hide();
     EqualsLabel.Hide();
     ResultingUnitsLabel.Hide();
     ResultingValueLabel.Hide();
     //When navigating back to the main menu its important to clear the field values for the ComboBoxes
     ClearUnitsComboBoxes();
 }
コード例 #8
0
        void ReleaseDesignerOutlets()
        {
            if (ActivityIndicatorView != null)
            {
                ActivityIndicatorView.Dispose();
                ActivityIndicatorView = null;
            }

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

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

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

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

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

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

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

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

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