//List Methods--------------------------------------------------------------------------------------------------------------- public string[][] getAllSceneGames() { string[][] nextsg = next.getAllSceneGames(); string[][] allSceneGames = new string[nextsg.Length + 1][]; for (int i = 0; i < nextsg.Length; i++) { allSceneGames[i + 1] = nextsg[i]; } string[] sceneGamesWithScene = new string[sceneGames.Length + 1]; sceneGamesWithScene[0] = cobxSelItem; for (int i = 1; i < sceneGamesWithScene.Length; i++) { sceneGamesWithScene[i] = sceneGames[i - 1]; } allSceneGames[0] = sceneGamesWithScene; return(allSceneGames); } //Used only for saving
/// <summary> /// Saves all Settings. /// </summary> private void applySettings() { lblInvalid.Visible = false; lblInvalidPort.Visible = false; main.obsPath = Path.GetFullPath(tbxObsPath.getText()); main.removeObsLnk(); main.createObsLnk(); main.createObsProcess(); btnOpenConnect.Enabled = true; Properties.Settings.Default.savedSceneGames = controlLineList.getAllSceneGames(); Properties.Settings.Default.savedOBSPath = main.obsPath; Properties.Settings.Default.savedUtilityProcesses = controlLineList.getAllUtilityApplications(); Properties.Settings.Default.savedNotificationSound = cbxNotificationSound.Checked; Properties.Settings.Default.savedPort = int.Parse(tbxPort.getText()); Properties.Settings.Default.savedPassword = tbxPassword.getText(); if (cbxSavePassword.Checked) { Properties.Settings.Default.savedPassword = tbxPassword.getText(); } else { Properties.Settings.Default.savedPassword = ""; } Properties.Settings.Default.Save(); if (cbxStartOnBoot.Checked) { removeScheduleTask(); createScheduleTask(); } else { removeScheduleTask(); } btnOK.Enabled = false; btnApply.Enabled = false; }