private void tsMainNew_Click(object sender, EventArgs e) { TimeSpent item = new TimeSpent(); NewTime newTime = new NewTime(item); if (newTime.ShowDialog() == DialogResult.OK) { TimeRepo cre = new TimeRepo(); cre.New(item); SetDataSources(); } }
private void toolStripButton1_Click(object sender, EventArgs e) { TimeSpent item = new TimeSpent(); NewTime newTime = new NewTime(item); if (newTime.ShowDialog() == DialogResult.OK) { TimeRepo cre = new TimeRepo(); cre.New(item); SetTimeSources(); } }