Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 private void workDaysToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.statesContainer = new StatesContainer(PREFERENCES.Instance.LogDirectoryPath);
     DrawProductList();
 }
Ejemplo n.º 3
0
 private void todayToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.statesContainer = new StatesContainer(PREFERENCES.Instance.DailyLogDirectoryPath, null);
     DrawProductList();
 }