Beispiel #1
0
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 0)
     {
         txt_habitSearch.Focus();
     }
     if (tabControl1.SelectedIndex == 1)
     {
         taskId = JournalTask.TabChangeHandler(dataGrid_dailyTask);
         txt_dailySearch.Focus();
     }
     if (tabControl1.SelectedIndex == 2)
     {
         taskId = JournalTask.TabChangeHandler(dataGrid_monthly);
         txt_monthlySearch.Focus();
     }
     if (tabControl1.SelectedIndex == 3)
     {
         taskId = JournalTask.TabChangeHandler(dataGrid_futureLog);;
         txt_futureSearch.Focus();
     }
     if (tabControl1.SelectedIndex == 4)
     {
         taskId = JournalTask.TabChangeHandler(dataGrid_notes);
         txt_collectionSearch.Focus();
     }
 }
Beispiel #2
0
 private void dataGrid_content_SelectionChanged(object sender, System.EventArgs e)
 {
     selectedId = JournalTask.TabChangeHandler(dataGrid_content);
 }