Ejemplo n.º 1
0
        /// <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());
                }
            }
        }
Ejemplo n.º 2
0
        /// <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());
                }
            }
        }
Ejemplo n.º 3
0
		/// <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() );
				}
			}
		}
Ejemplo n.º 4
0
		/// <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() );
				}
			}
		}