Exemplo n.º 1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            int rowindex = dataGridView1.CurrentRow.Index;

            if (dataGridView1.CurrentRow.Index >= 0)
            {
                if (string.IsNullOrEmpty(dataGridView1.SelectedCells[1].Value.ToString()))
                {
                    MessageBox.Show(Properties.Resources.InvalidPhoneorEmpty);
                }
                else
                {
                    CtiCallInfo.GetCtiCallInfoObject().MakeCall(dataGridView1.SelectedCells[1].Value.ToString());
                }
            }
            Close();
        }
Exemplo n.º 2
0
 public ToastViewModel()
 {
     initializeCommands();
     ctiCallInfoObject = CtiCallInfo.GetCtiCallInfoObject();
 }