Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
Archivo: Options.cs Proyecto: hpie/hpie
 void addFolder_AddExcludeFolder(object sender, AddExcludeFolderEventArgs e)
 {
     this.listViewExcludeFolders.Items.Add(e.folderPath);
     this.listViewExcludeFolders.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
 }