private void butNewStyle_Click(object sender, EventArgs e)
        {
            string fileName = string.Empty;

            for (int i = 1; i < 1000; i++)
            {
                Feng.Utils.IOHelper.TryCreateDirectory(m_styleFolder);

                string f = Path.Combine(m_styleFolder, "ReportStyle" + i.ToString() + ".xml");

                if (!File.Exists(f))
                {
                    fileName = f;
                    break;
                }
            }

            if (fileName.Length == 0)
                return;

            CustomizeReportStyleForm customizeForm = new CustomizeReportStyleForm(fileName);

            if (customizeForm.ShowDialog(this) == DialogResult.OK)
                this.PopulateReportStyleList(customizeForm.StyleName);
        }
        private void butEditStyle_Click(object sender, EventArgs e)
        {
            if (this.gridReportStyleList.SelectedRows.Count == 0)
                return;

            DataRow selectedRow = this.gridReportStyleList.SelectedRows[0] as DataRow;

            CustomizeReportStyleForm customizeForm = new CustomizeReportStyleForm((string)selectedRow.Cells["FileName"].Value);

            if (customizeForm.ShowDialog(this) == DialogResult.OK)
                this.PopulateReportStyleList(customizeForm.StyleName);
        }