/// <summary> /// Creates a new launcher entry /// </summary> public void CreateNewEntry() { TheBox.Forms.LauncherForm form = new TheBox.Forms.LauncherForm(); if (form.ShowDialog() == DialogResult.OK) { LauncherEntry entry = form.SelectedEntry; m_Entries.Add(entry); if (OnEntriesChanged != null) { OnEntriesChanged(this, new EventArgs()); } } }
/// <summary> /// Edits an existing entry /// </summary> /// <param name="entry">The LauncherEntry to edit</param> public void EditEntry(LauncherEntry entry) { if (!m_Entries.Contains(entry)) { return; } TheBox.Forms.LauncherForm form = new TheBox.Forms.LauncherForm(); form.SelectedEntry = entry; if (form.ShowDialog() == DialogResult.OK) { if (OnEntriesChanged != null) { OnEntriesChanged(this, new EventArgs()); } } }
/// <summary> /// Edits an existing entry /// </summary> /// <param name="entry">The LauncherEntry to edit</param> public void EditEntry( LauncherEntry entry ) { if ( !m_Entries.Contains( entry ) ) return; TheBox.Forms.LauncherForm form = new TheBox.Forms.LauncherForm(); form.SelectedEntry = entry; if ( form.ShowDialog() == DialogResult.OK ) { if ( OnEntriesChanged != null ) { OnEntriesChanged( this, new EventArgs() ); } } }
/// <summary> /// Creates a new launcher entry /// </summary> public void CreateNewEntry() { TheBox.Forms.LauncherForm form = new TheBox.Forms.LauncherForm(); if ( form.ShowDialog() == DialogResult.OK ) { LauncherEntry entry = form.SelectedEntry; m_Entries.Add( entry ); if ( OnEntriesChanged != null ) { OnEntriesChanged( this, new EventArgs() ); } } }