private void AddEditSoundKeys_Load(object sender, EventArgs e)
        {
            if (SettingsForm.addingEditingLoadXMLFile)
            {
                settingsForm = Application.OpenForms[1] as SettingsForm;

                this.Text = "Add/edit keys and XML location";

                if (editIndex != -1)
                {
                    tbKeys.Text     = editSoundKeys[0];
                    tbLocation.Text = editSoundKeys[1];
                }
            }
            else
            {
                mainForm = Application.OpenForms[0] as SoundboardForm;

                labelLoc.Text += " (use a semi-colon (;) to seperate multiple locations)";

                if (editIndex != -1)
                {
                    tbKeys.Text     = editSoundKeys[0];
                    tbLocation.Text = editSoundKeys[1];
                }
            }
        }
示例#2
0
 private void TTS_Load(object sender, EventArgs e)
 {
     mainForm = Application.OpenForms[0] as SoundboardForm;
 }
 private void EditBoardForm_Load(object sender, EventArgs e)
 {
     mainForm    = Application.OpenForms[0] as SoundboardForm;
     tbKeys.Text = editBoardKeys[0];
 }