A dialog that shows a list of strings and allows adding and removing.
Inheritance: System.Windows.Forms.Form, IView
コード例 #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();
            }
        }
コード例 #2
0
ファイル: TvShows.cs プロジェクト: nicolaspierre1990/tvsorter
        /// <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();
            }
        }
コード例 #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();
            }
        }
コード例 #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();
            }
        }
コード例 #5
0
ファイル: TvShows.cs プロジェクト: nicolaspierre1990/tvsorter
 /// <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();
     }
 }
コード例 #6
0
ファイル: Settings.cs プロジェクト: a-jackson/tvsorter
 /// <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();
     }
 }
コード例 #7
0
ファイル: Settings.cs プロジェクト: a-jackson/tvsorter
 /// <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();
     }
 }
コード例 #8
0
ファイル: Settings.cs プロジェクト: a-jackson/tvsorter
 /// <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();
     }
 }