private void ModifyDateBtn_Click(object sender, EventArgs e) { bool setDateOk; FileDateModifer fdm = new FileDateModifer(); Dictionary <string, DateTime> getSetDate = new Dictionary <string, DateTime>(); getSetDate.Add("CreationTime", CreationTime.Value); getSetDate.Add("LastWriteTime", LastWriteTime.Value); getSetDate.Add("LastAccessTime", LastAccessTime.Value); setDateOk = fdm.SetFileDate(FilePath.Text, getSetDate); if (setDateOk) { MessageBox.Show("날짜 변경에 성공함", "날짜 변경 성공"); } //throw new System.NotImplementedException(); }
private void OpenFileBtn_Click(object sender, EventArgs e) { Dictionary <string, DateTime> FileInfo; OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { FilePath.Text = ofd.FileName; } FileDateModifer fdm = new FileDateModifer(); FileInfo = fdm.GetFileInfo(ofd.FileName); CreationTime.Value = FileInfo["CreationTime"]; LastWriteTime.Value = FileInfo["LastWriteTime"]; LastAccessTime.Value = FileInfo["LastAccessTime"]; //throw new System.NotImplementedException(); }