コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DateTime date = dateTimePicker1.Value;
            DateTime time = new DateTime();

            DateTime final;

            if (DateTime.TryParse(maskedTextBox1.Text, out time))
            {
                final = new DateTime(date.Year, date.Month, date.Day, time.Hour, time.Minute, 59);



                foreach (KeyValuePair <string, HistoryFile> hf in HistoryFiles)
                {
                    FileHistoryPart history = hf.Value.ExtractByDate(final);
                    listHistories.Add(hf.Key, history);
                }
            }

            DialogResult = DialogResult.OK;
        }
コード例 #2
0
 public void AppendHistory(FileHistoryPart newHistoryPart)
 {
     contentHistory.Add(newHistoryPart);
 }