Beispiel #1
0
        private void clsLog_Click(object sender, EventArgs e)
        {
            int count = 0;

            foreach (string file in Directory.EnumerateFiles("./DataBase/Logs/"))
            {
                if (!String.IsNullOrEmpty(file))
                {
                    File.Delete(file); count++;
                }
            }
            W2Log.Show($"[{count}] Logs limpos com sucesso!");
        }