// Run Script
        private void Run_Script()
        {
            try
            {
                Script_Selector();

                //Script_richTextBox
                DEV_DataSet = new DataSet();             // 1# New Dataset - This will be the Source
                Load_Script = new Datagridview_Loader(); // Loader DGV Class


                Load_Script.DB_Populate(Script_richTextBox.SelectedText, DEV_DataSet, "DEV"); // Loader Method to Populate the Dataset
                Dev_dataGridView.DataSource = DEV_DataSet;                                    // Datagridview Source is the Dataset that was populated in the Loader Class
                Dev_dataGridView.DataMember = "DEV";                                          // Data Member is the Part of the DataSet we want to read from "You can have different Datamembers in the same Dataset ans just switch trought them"

                Script_richTextBox.DeselectAll();
            }
            catch (Exception)
            {
            }
        }
Example #2
0
        // Data Loader
        public void Ydelse_Datagridview_Loader(string Query, DataSet Dataset1, string TableName)
        {
            Datagridview_Loader DAL_DGV_Loader = new Datagridview_Loader();

            DAL_DGV_Loader.DB_Populate(Query, Dataset1, TableName);
        }