Exemplo n.º 1
0
        private void btnAddPhone_Click(object sender, EventArgs e)
        {
            string lcReply = new InputBox(clsPhone.FACTORY_PROMPT).Answer;

            if (!string.IsNullOrEmpty(lcReply)) // not cancelled?

            {
                clsPhone lcPhone = clsPhone.NewPhone(lcReply[0]);
                FrmPhone.DispatchPhoneForm(lcPhone);
                if (lcPhone != null) // valid artwork created?

                {
                    FrmMain.Instance.UpdateDisplay();
                }
            }
        }
Exemplo n.º 2
0
        private void phoneList_DoubleClick(object sender, EventArgs e)
        {
            var prPhone = phoneList.SelectedValue as clsPhone;

            FrmPhone.DispatchPhoneForm(phoneList.SelectedValue as clsPhone);
        }