private void ItemCode_txt_KeyUp(object sender, KeyEventArgs e) { try { if (e.KeyCode != Keys.Up && e.KeyCode != Keys.Down && e.KeyCode != Keys.Enter && e.KeyValue != 27) { try { if (ItemCode_txt.Text != null) { RandomAlgos.comboKeyPressed(ItemCode_txt); } } catch (Exception ex) { Variables.NotificationMessageTitle = this.Name; Variables.NotificationMessageText = ex.Message; Variables.NotificationStatus = true; } } } catch (Exception ex) { Variables.NotificationStatus = true; Variables.NotificationMessageTitle = this.Name; Variables.NotificationMessageText = ex.Message; } }
private void ConsignmentNumberSearch_txt_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode != Keys.Up && e.KeyCode != Keys.Down && e.KeyCode != Keys.Right && e.KeyCode != Keys.Left && e.KeyCode != Keys.Enter) { if (ConsignmentNumberSearch_txt.Text != null) { RandomAlgos.comboKeyPressed(ConsignmentNumberSearch_txt); } } } catch (Exception ex) { Variables.NotificationMessageTitle = this.Name; Variables.NotificationMessageText = ex.Message; Variables.NotificationStatus = true; } }