コード例 #1
0
        private void DailyLoggerCommit()
        {
            string cm = txtLogger.Text;

            txtLogger.Text = "";

            if (string.IsNullOrEmpty(cm))
            {
                return;
            }

            if (DailyLoggerViewModels.OldCommit.Contains(cm))
            {
                return;
            }
            DLogger.WriteCommit(DLogger.LoggerDirectory, cm, "");
            DailyLoggerViewModels.OldCommit.Add(cm);
            txtLogger.Text = "";
            listHistories.Items.Add($"{DateTime.Now.ToString("-> HH:mm:ss")} : {cm.Length} characters");
        }