private void btn_Ok_Click(object sender, EventArgs e) { List <SoundInfoDevice> devices = SoundHandler.getSoundInfo(); ProgramAutoInfo.SelectBy selectby = (ProgramAutoInfo.SelectBy)(radio_ProcessPath.Checked ? 0 : 1); programAutoInfo = new ProgramAutoInfo(selectby, programInfo.Path, programInfo.name, devices[combo_Devices.SelectedIndex].ID, radio_ProgramStarts.Checked); this.Hide(); }
public void AutoControlAdd(ProgramAutoInfo autoControl) { autoControls.Add(autoControl); Save(); }