예제 #1
0
 /// <summary>
 /// Characters toolbar > Import...
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void importCharacterMenu_Click(object sender, EventArgs e)
 {
     using (var form = new CharacterImportationWindow())
     {
         var result = 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;
            }
            var item         = charactersListView.SelectedItems[0];
            var uriCharacter = item.Tag as UriCharacter;

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

            // Opens the importation form
            using (var form = new CharacterImportationWindow(uriCharacter))
            {
                var result = form.ShowDialog(this);
            }
        }
        /// <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;
            var item = charactersListView.SelectedItems[0];
            var uriCharacter = item.Tag as UriCharacter;

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

            // Opens the importation form
            using (var form = new CharacterImportationWindow(uriCharacter))
            {
                var result = form.ShowDialog(this);
            }
        }
 /// <summary>
 /// Characters toolbar > Import...
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void importCharacterMenu_Click(object sender, EventArgs e)
 {
     using (var form = new CharacterImportationWindow())
     {
         var result = form.ShowDialog(this);
     }
 }