Example #1
0
 private void EditingMaterialForm_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.Enter)
     {
         SelectionNomenclature?.Invoke();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         TSB_Save.PerformClick();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         Close();
     }
 }
 private void EditingWorkForm_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.Enter && (e.KeyCode == Keys.D1 || e.KeyCode == Keys.NumPad1))
     {
         SelectionNomenclature?.Invoke();
     }
     else if (e.Control && e.KeyCode == Keys.Enter && (e.KeyCode == Keys.D2 || e.KeyCode == Keys.NumPad2))
     {
         SelectionWorkingHour?.Invoke();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         TSB_Save.PerformClick();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         Close();
     }
 }
Example #3
0
 private void LL_Material_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     SelectionNomenclature?.Invoke();
 }