Example #1
0
File: Options.cs Project: hpie/hpie
 void addIncFolder_AddIncFolder(object sender, AddIncFolderEventArgs e)
 {
     this.listViewIncFolders.Items.Add(e.folderPath);
     this.listViewIncFolders.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
 }
Example #2
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 (AddIncFolder != null)
            {
                AddIncFolderEventArgs eventArgs = new AddIncFolderEventArgs();
                eventArgs.folderPath = this.textBox1.Text;
                AddIncFolder(this, eventArgs);
            }

            this.Close();
        }