﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;

namespace SBVaccine.WPF
{
    static class DataeExtension
    {
        public static int TotalMonth(DateTime ValM, DateTime Valmin)
        {
            return (12 * (ValM.Year - Valmin.Year) + ValM.Month - Valmin.Month - Convert.ToInt16(ValM.Day < Valmin.Day));
        }
    }
    public class DirManager
    {
        public static void CreateIfNotExit(string path)
        {
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
        }
    }
}
