private void customDaysToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); dialog.CheckFileExists = true; dialog.Filter = String.Format("Daily log files (*{0})|*{0}", DailyState.FILEEXTENSION); dialog.Multiselect = true; dialog.InitialDirectory = PREFERENCES.Instance.LogDirectoryPath; if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.statesContainer = new StatesContainer(dialog.FileNames, null); DrawProductList(); } }
private void workDaysToolStripMenuItem_Click(object sender, EventArgs e) { this.statesContainer = new StatesContainer(PREFERENCES.Instance.LogDirectoryPath); DrawProductList(); }
private void todayToolStripMenuItem_Click(object sender, EventArgs e) { this.statesContainer = new StatesContainer(PREFERENCES.Instance.DailyLogDirectoryPath, null); DrawProductList(); }