예제 #1
0
 /// <summary>
 /// Characters toolbar > Import...
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void importCharacterMenu_Click(object sender, EventArgs e)
 {
     using (CharacterImportationWindow form = new CharacterImportationWindow())
     {
         form.ShowDialog(this);
     }
 }
예제 #2
0
        /// <summary>
        /// Characters toolbar > Edit Uri...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void editUriButton_Click(object sender, EventArgs e)
        {
            // Retrieve the selected URI character
            if (charactersListView.SelectedItems.Count == 0)
            {
                return;
            }

            ListViewItem item         = charactersListView.SelectedItems[0];
            UriCharacter uriCharacter = item.Tag as UriCharacter;

            // Returns if the selected item is not an Uri character
            if (uriCharacter == null)
            {
                return;
            }

            // Opens the importation form
            using (CharacterImportationWindow form = new CharacterImportationWindow(uriCharacter))
            {
                form.ShowDialog(this);
            }
        }
예제 #3
0
 /// <summary>
 /// Characters toolbar > Import...
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void importCharacterMenu_Click(object sender, EventArgs e)
 {
     using (CharacterImportationWindow form = new CharacterImportationWindow())
     {
         form.ShowDialog(this);
     }
 }
예제 #4
0
        /// <summary>
        /// Characters toolbar > Edit Uri...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void editUriButton_Click(object sender, EventArgs e)
        {
            // Retrieve the selected URI character
            if (charactersListView.SelectedItems.Count == 0)
                return;

            ListViewItem item = charactersListView.SelectedItems[0];
            UriCharacter uriCharacter = item.Tag as UriCharacter;

            // Returns if the selected item is not an Uri character
            if (uriCharacter == null)
                return;

            // Opens the importation form
            using (CharacterImportationWindow form = new CharacterImportationWindow(uriCharacter))
            {
                form.ShowDialog(this);
            }
        }