This repository was archived by the owner on Dec 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.cs
More file actions
44 lines (40 loc) · 1.24 KB
/
Start.cs
File metadata and controls
44 lines (40 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using CsvHelper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Text;
using System.Windows.Forms;
namespace TaskTrayApplication
{
public partial class Start : Form
{
public Start()
{
InitializeComponent();
}
private void SaveSettings(object sender, FormClosingEventArgs e)
{
// If the user clicked "Save"
if (this.DialogResult == DialogResult.OK)
{
Properties.Settings.Default.Save();
var Configuration = new Configuration();
string writeDirectory = Configuration.fileName;
// using (var writer = new StreamWriter(writeDirectory, false))
// using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
string dateTimeValue = DateTime.Now.ToString();
// csv.WriteRecord(dateTimeValue);
// writer.Flush();
// csv.Flush();
}
}
}
private void saveButton_Click(object sender, EventArgs e)
{
}
}
}