public static DataView GetExcludedItems() { DataSet dataSet = CleanerApplicationSettings.GetExcludedItems(); DataView defaultView = dataSet.Tables[0].DefaultView; return(defaultView); }
static IncludeExcludeOptions() { DataSet dataSet = CleanerApplicationSettings.GetIncludedItems(); DataView defaultView = dataSet.Tables[0].DefaultView; DVOptionSettings = defaultView; }
static CookiesSettings() { DataSet dataSet = CleanerApplicationSettings.GetSafeCookiesList(); DataView defaultView = dataSet.Tables[0].DefaultView; defaultView.RowFilter = "IsDefault=0"; DVOptionSettings = defaultView; }
private void buttonRemove_Click(object sender, EventArgs e) { if (this.listBoxSelections.SelectedRows.Count > 0) { var item = this.listBoxSelections.SelectedRows[0].Cells[2].Value.ToString(); CleanerApplicationSettings.RemoveItem(item); ShowListing(); } }
public static DataView AddNewItem(string path, int itemType, string filterType, bool isInclude) { int include = (isInclude == true) ? 1 : 0; string query = "INSERT INTO ExcludedPath(Path,ItemType,FilterType,IsInclude) values('" + path + "','" + itemType + "','" + filterType + "'," + include + ")"; CleanerApplicationSettings.AddNewItem(query); DataSet dataSet = CleanerApplicationSettings.GetIncludedItems(); DataView defaultView = dataSet.Tables[0].DefaultView; DVOptionSettings = defaultView; return(DVOptionSettings); }
public static void ReloadSettings() { try { DataSet dataSet = CleanerApplicationSettings.GetApplicationSettings(); DataView defaultView = dataSet.Tables[0].DefaultView; defaultView.RowFilter = "IsDefault=0"; DVOptionSettings = defaultView; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
static OptionsSetting() { try { DataSet dataSet = CleanerApplicationSettings.GetApplicationSettings(); DataView defaultView = dataSet.Tables[0].DefaultView; defaultView.RowFilter = "IsDefault=0"; DVOptionSettings = defaultView; } catch (Exception ex) { ; } }
static AdvanceOptionSettings() { dataSet = CleanerApplicationSettings.GetApplicationSettings(); }