Example #1
0
        public static DataView GetIncludedItems()
        {
            DataSet  dataSet     = CleanerApplicationSettings.GetIncludedItems();
            DataView defaultView = dataSet.Tables[0].DefaultView;

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

            DVOptionSettings = defaultView;
        }
Example #3
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);
        }