//add folder button
        private void button1_Click(object sender, EventArgs e)
        {
            if ((!String.IsNullOrEmpty(textBox1.Text.Trim())) && (!String.IsNullOrEmpty(textBox2.Text.Trim())))
            {
                //int x = dataGridView1.CurrentCell.ColumnIndex;
                Main.AddFolder(textBox1.Text, textBox2.Text, addIndex);
                Main.ClearOtherFolder();

                dataGridView1.Rows.Clear();
                for (int i = 0; i < Main.menu1.Count(); i++)
                {
                    dataGridView1.Rows.Add();
                    dataGridView1.Rows[i].Cells[0].Value = (i + 1).ToString();
                    dataGridView1.Rows[i].Cells[1].Value = Main.menu1[i].Text.ToString();
                    string[] words = Main.menu1[i].Tag.ToString().Split('?');
                    dataGridView1.Rows[i].Cells[2].Value = words[1];
                    DataGridViewComboBoxCell cell = (DataGridViewComboBoxCell)(dataGridView1.Rows[i].Cells[3]);
                    cell.Items.AddRange(outputOptions);
                    cell.Value = cell.Items[int.Parse(words[0]) - 1];
                }
                textBox1.Text = "";
                textBox2.Text = "";
                if (button1.Text == "Save Folder")
                {
                    button1.Text = "Add Folder";
                }
                addIndex = 1;
                this.dataGridView1.CurrentCell = this.dataGridView1[0, dataGridView1.RowCount - 1];
            }
        }