private void delete_item() { Function_Settings fnc = new Function_Settings(); SQLite_Funciton_Query sfq = new SQLite_Funciton_Query(); sfq.SQLite_Query_Delete(this.delete, Main_GridView.Rows[this.Row_Index].Cells[1].Value.ToString()); Log_DataBase("Delete data", "Delete" + Main_GridView.Rows[this.Row_Index].Cells[3].Value.ToString()); Main_GridView.Rows.RemoveAt(this.Row_Index); fnc.reload(Main_GridView, select, View_Column_Type); }
private void btnReload_Click(object sender, EventArgs e) { Function_Settings dta = new Function_Settings(); Total_Status(); if (this.Default_GridView == 1) { dta.reload(Main_GridView, this.select, this.View_Column_Type); Main_GridView.ClearSelection(); } else { MessageBox.Show("dashboard"); } color(); }
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(); }