private void LaunchForm(string title, string content, Action <SearchDataGrid> action)
        {
            var f = new SearchDataGridDialog(this)
            {
                Text = title,
            };

            f.DialogText.Text = content;
            f.Action          = action;
            f.StartPosition   = FormStartPosition.CenterScreen;
            f.Show(this);
        }
        private void btnSort_Click(object sender, EventArgs e)
        {
            var f = new SearchDataGridDialog(this)
            {
                Text          = "Sort",
                StartPosition = FormStartPosition.CenterScreen
            };

            f.DialogText.Text = SortCriteria;
            f.Action          = (s) => s.SortCriteria = f.DialogText.Text;

            f.Show(this);
        }
        private void btnFilter_Click(object sender, EventArgs e)
        {
            var f = new SearchDataGridDialog(this)
            {
                Text          = "Filter",
                StartPosition = FormStartPosition.CenterScreen
            };

            f.DialogText.Text = ComplexFilterString;
            f.Action          = (s) => s.ComplexFilterString = f.DialogText.Text;

            f.Show(this);
        }