Esempio n. 1
0
        public bool Compare_dates()
        {
            var set          = new Settings();
            var dates        = new Dates();
            var dloader      = new DownloadFolder();
            var cleaningDate = set.GetCleaningDate();
            var today        = dates.GetTodayDay();

            if (today == cleaning_date)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var comp = new Comparer();

            if (comp.Compare_dates())
            {
                var set     = new Settings();
                var dates   = new Dates();
                var dloader = new DownloadFolder();
                dloader.DeleteFiles();
                var nextday = dates.GetNextDay();
                set.InsertNewDate();
            }
            else
            {
                //забить
            }
        }