Beispiel #1
0
        /// <summary>
        /// Characters toolbar > Delete...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void deleteCharacterMenu_Click(object sender, EventArgs e)
        {
            // Retrieve the selected URI character
            if (charactersListView.SelectedItems.Count == 0)
            {
                return;
            }
            var item      = charactersListView.SelectedItems[0];
            var character = item.Tag as Character;

            // Opens the character deletion
            using (var window = new CharacterDeletionWindow(character))
            {
                window.ShowDialog(this);
            }
        }
        /// <summary>
        /// Characters toolbar > Delete...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void deleteCharacterMenu_Click(object sender, EventArgs e)
        {
            // Retrieve the selected URI character
            if (charactersListView.SelectedItems.Count == 0) return;
            var item = charactersListView.SelectedItems[0];
            var character = item.Tag as Character;

            // Opens the character deletion
            using (var window = new CharacterDeletionWindow(character))
            {
                window.ShowDialog(this);
            }
        }
Beispiel #3
0
        /// <summary>
        /// File > Delete Character...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void deleteCharacterMenu_Click(object sender, EventArgs e)
        {
            var character = GetCurrentCharacter();
            if (character == null)
                return;

            using (var window = new CharacterDeletionWindow(character))
            {
                window.ShowDialog(this);
            }
        }