private bool DoOnF5(ComboBox sender) { Action <string> act = value => { if (value != null) { sender.Text = value; } }; if (sender == cbIINien || sender == cbIINizd) { MyMainForm.ShowFormAcp3Dialog(act); return(true); } if (sender == cbPVNien || sender == cbPVNizd || sender == cbPVNdeb || sender == cbPVNkred) { MyMainForm.ShowFormAcp5Dialog(act); return(true); } return(false); }
private void cbIIN_MouseDoubleClick(object sender, MouseEventArgs e) { MyMainForm.ShowFormAcp3Dialog( value => { if (value != null) { (sender as ComboBox).Text = value; } }); }
private bool DoOnF5(ComboBox sender) { Action <string> act = value => { if (value != null) { sender.Text = value; } }; if (sender == cbClid) { MyMainForm.ShowFormPersonsDialog(act); return(true); } if (sender == cbAC11 || sender == cbAC12 || sender == cbAC21 || sender == cbAC22) { MyMainForm.ShowFormAcplanDialog(act); return(true); } if (sender == cbAC13 || sender == cbAC23) { MyMainForm.ShowFormAcp3Dialog(act); return(true); } if (sender == cbAC14 || sender == cbAC24) { MyMainForm.ShowFormAcp4Dialog(act); return(true); } if (sender == cbAC15 || sender == cbAC25) { MyMainForm.ShowFormAcp5Dialog(act); return(true); } return(false); }