A dialog that shows a list of strings and allows adding and removing.
Inheritance: System.Windows.Forms.Form, IView
Example #1
0
        /// <summary>
        ///     Handles the Regular Expressions button being clicked.
        /// </summary>
        /// <param name="sender">
        ///     The sender of the event.
        /// </param>
        /// <param name="e">
        ///     The arguments of the event.
        /// </param>
        private void RegExButtonClick(object sender, EventArgs e)
        {
            var listController = new ListController(regularExpressions, "Regular Expressions");
            var dialog         = new ListDialog(listController);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                regularExpressions = listController.List.ToList();
            }
        }
Example #2
0
        /// <summary>
        ///     Handles the Alternate names button being clicked.
        /// </summary>
        /// <param name="sender">
        ///     The sender of the event.
        /// </param>
        /// <param name="e">
        ///     The arguments of the event.
        /// </param>
        private void AlternateNamesButtonClick(object sender, EventArgs e)
        {
            var listController = new ListController(alternateNames, "Alternate Names");
            var dialog         = new ListDialog(listController);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                alternateNames = listController.List.ToList();
            }
        }
Example #3
0
        /// <summary>
        ///     Handles the File Extensions button being clicked.
        /// </summary>
        /// <param name="sender">
        ///     The sender of the event.
        /// </param>
        /// <param name="e">
        ///     The arguments of the event.
        /// </param>
        private void FileExtensionsButtonClick(object sender, EventArgs e)
        {
            var listController = new ListController(fileExtensions, "File Extensions");
            var dialog         = new ListDialog(listController);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                fileExtensions = listController.List.ToList();
            }
        }
Example #4
0
        /// <summary>
        ///     Handles the click event of the Edit Overwrite Keywords button.
        /// </summary>
        /// <param name="sender">
        ///     The sender of the event.
        /// </param>
        /// <param name="e">
        ///     The arguments of the event.
        /// </param>
        private void EditOverwriteKeywordsButtonClick(object sender, EventArgs e)
        {
            var listController = new ListController(overwriteKeywords, "Overwrite keywords");
            var dialog         = new ListDialog(listController);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                overwriteKeywords = listController.List.ToList();
            }
        }
Example #5
0
 /// <summary>
 /// Handles the Alternatee names button being clicked.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event. 
 /// </param>
 /// <param name="e">
 /// The arguments of the event. 
 /// </param>
 private void AlternateNamesButtonClick(object sender, EventArgs e)
 {
     var listController = new ListController(this.alternateNames, "Alternate Names");
     var dialog = new ListDialog(listController);
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         this.alternateNames = listController.List.ToList();
     }
 }
Example #6
0
 /// <summary>
 /// Handles the Regular Expressions button being clicked.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event. 
 /// </param>
 /// <param name="e">
 /// The arguments of the event. 
 /// </param>
 private void RegExButtonClick(object sender, EventArgs e)
 {
     var listController = new ListController(this.regularExpressions, "Regular Expressions");
     var dialog = new ListDialog(listController);
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         this.regularExpressions = listController.List.ToList();
     }
 }
Example #7
0
 /// <summary>
 /// Handles the File Extensions button being clicked.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event. 
 /// </param>
 /// <param name="e">
 /// The arguments of the event. 
 /// </param>
 private void FileExtensionsButtonClick(object sender, EventArgs e)
 {
     var listController = new ListController(this.fileExtensions, "File Extensions");
     var dialog = new ListDialog(listController);
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         this.fileExtensions = listController.List.ToList();
     }
 }
Example #8
0
 /// <summary>
 /// Handles the click event of the Edit Overwrite Keywords button.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event.
 /// </param>
 /// <param name="e">
 /// The arguments of the event.
 /// </param>
 private void EditOverwriteKeywordsButtonClick(object sender, EventArgs e)
 {
     var listController = new ListController(this.overwriteKeywords, "Overwrite keywords");
     var dialog = new ListDialog(listController);
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         this.overwriteKeywords = listController.List.ToList();
     }
 }