Пример #1
0
        private void submitButton_Click(object sender, EventArgs e)
        {
            if (playbackComponentRadioButton.Checked)
            {
                PlaybackHandler playbackHandler = new PlaybackHandler(new RichTextBoxOutput(componentTypeMenuRichTextBox));
                playbackHandler.ShowMenuOfPlaybackComponents();
            }

            if (chargerRadioButton.Checked)
            {
                ChargerHandler chargerHandler = new ChargerHandler(new RichTextBoxOutput(componentTypeMenuRichTextBox));
                chargerHandler.ShowMenuOfChargerComponents();
            }

            if (removableStorageRadioButton.Checked)
            {
                StorageHandler storageHandler = new StorageHandler(new RichTextBoxOutput(componentTypeMenuRichTextBox));
                storageHandler.ShowMenuOfStorages();
            }

            if (simCardRadioButton.Checked)
            {
                SimCardHandler simCardHandler = new SimCardHandler(new RichTextBoxOutput(componentTypeMenuRichTextBox));
                simCardHandler.ShowMenuOfSimCards();
            }

            chosenComponentTypeIndex.Text = "";
            outputOfSettingAndRunningComponentRichTextBox.Text = "";
        }
Пример #2
0
        public void ShowMenuOfPlaybacks()
        {
            PlaybackHandler playbackHandler = new PlaybackHandler(Output);

            playbackHandler.ShowMenuOfPlaybackComponents();
        }