Exemplo n.º 1
0
        public static DataView GetExcludedItems()
        {
            DataSet  dataSet     = CleanerApplicationSettings.GetExcludedItems();
            DataView defaultView = dataSet.Tables[0].DefaultView;

            return(defaultView);
        }
Exemplo n.º 2
0
        static IncludeExcludeOptions()
        {
            DataSet  dataSet     = CleanerApplicationSettings.GetIncludedItems();
            DataView defaultView = dataSet.Tables[0].DefaultView;

            DVOptionSettings = defaultView;
        }
Exemplo n.º 3
0
        static CookiesSettings()
        {
            DataSet  dataSet     = CleanerApplicationSettings.GetSafeCookiesList();
            DataView defaultView = dataSet.Tables[0].DefaultView;

            defaultView.RowFilter = "IsDefault=0";
            DVOptionSettings      = defaultView;
        }
Exemplo n.º 4
0
 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();
     }
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 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);
     }
 }
Exemplo n.º 7
0
 static OptionsSetting()
 {
     try
     {
         DataSet  dataSet     = CleanerApplicationSettings.GetApplicationSettings();
         DataView defaultView = dataSet.Tables[0].DefaultView;
         defaultView.RowFilter = "IsDefault=0";
         DVOptionSettings      = defaultView;
     }
     catch (Exception ex)
     {
         ;
     }
 }
Exemplo n.º 8
0
 static AdvanceOptionSettings()
 {
     dataSet = CleanerApplicationSettings.GetApplicationSettings();
 }