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(); }
public ToastViewModel() { initializeCommands(); ctiCallInfoObject = CtiCallInfo.GetCtiCallInfoObject(); }