Example #1
0
        private void buttonOk_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.textBox1.Text.Trim()))
            {
                MessageBox.Show(this, "Please enter a folder", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (AddExcludeFolderDelegate != null)
            {
                AddExcludeFolderEventArgs eventArgs = new AddExcludeFolderEventArgs();
                eventArgs.folderPath = this.textBox1.Text;
                AddExcludeFolderDelegate(this, eventArgs);
            }

            this.Close();
        }
Example #2
0
File: Options.cs Project: hpie/hpie
 void addFolder_AddExcludeFolder(object sender, AddExcludeFolderEventArgs e)
 {
     this.listViewExcludeFolders.Items.Add(e.folderPath);
     this.listViewExcludeFolders.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
 }