Esempio n. 1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            tabControl1.SelectTab("tabPage4");
            Default_Template_Gridview();
            this.select = "select * from  Log";
            Function_Settings     dta = new Function_Settings();
            SQLite_Funciton_Query sfq = new SQLite_Funciton_Query();

            dta.gridview(Log_GridView, this.select, this.View_Column_Type);
            sfq.SQLite_Query_Combox(cb1, "SELECT DISTINCT Action FROM Log;");
            sfq.SQLite_Query_Combox(cb2, "SELECT DISTINCT Name FROM Log;");
            this.Log_GridView.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
        }
Esempio n. 2
0
        private void button_fuction(int view_column_type, string tabpage, DataGridView name, int GridViewIndex)
        {
            this.View_Column_Type = view_column_type;
            Default_Template_Gridview();
            tabControl1.SelectTab(tabpage);
            Function_Settings dta = new Function_Settings();

            if (Default_GridView == 0)
            {
                MessageBox.Show(select);
                dta.gridview(name, this.select, this.View_Column_Type);
                name.ClearSelection();
                this.Default_GridView = 1;
            }
            else
            {
                MessageBox.Show(select);
                dta.reload(name, this.select, this.View_Column_Type);
                name.ClearSelection();
            }
            this.GridView_Index = GridViewIndex;
            color();
        }