Exemple #1
0
        private void cbClid_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            string s = cbClid.Text;

            MyMainForm.ShowFormPersonsDialog(
                value =>
            {
                if (value != null)
                {
                    cbClid.SelectedValue = value;
                }
            });
        }
Exemple #2
0
        private bool DoOnF5(ComboBox sender)
        {
            Action <string> act =
                value =>
            {
                if (value != null)
                {
                    sender.Text = value;
                }
            };

            if (sender == cbClid)
            {
                MyMainForm.ShowFormPersonsDialog(act);
                return(true);
            }
            return(false);
        }
Exemple #3
0
        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);
        }