internal void Cellcliick() { var value = WarGrid1.SelectedCells[0].Value.ToString(); var referencetype = Convert.ToInt32(WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[1].Value.ToString()); if (WarGrid1.SelectedCells[0].ColumnIndex == 0) { BookingInfoUI bk = new BookingInfoUI(long.Parse(value)); bk.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 1) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 2) { if (referencetype == 1) { CustomerUI bk = new CustomerUI(long.Parse(value)); bk.ShowDialog(); } else if (referencetype == 2) { AgentUI bk = new AgentUI(long.Parse(value)); bk.ShowDialog(); } //BookingInfoUI b = new BookingInfoUI(long.Parse(value)); //b.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 3) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 4) { PackageUI bk = new PackageUI(long.Parse(value)); bk.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 5) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 6) { // long bookingidrec = long.Parse( WarGrid1.SelectedRows[0].Cells[0].Value.ToString()); var bookingidrec = long.Parse(WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[6].Value.ToString()); PrintUI bk = new PrintUI(bookingidrec); bk.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 7) { } }
internal void Cellcliick() { //var value = WarGrid1.SelectedCells[0].Value.ToString(); //if (WarGrid1.SelectedCells[0].ColumnIndex == 1) //{ // CustomerUI bk = new CustomerUI(long.Parse(value)); // bk.ShowDialog(); //} //else //{ string check = WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[7].Value.ToString(); var value = WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[1].Value.ToString(); if (check.ToLower().Contains("protector") == true) { ProtectorUI bk = new ProtectorUI(long.Parse(value)); bk.ShowDialog(); } else if (check.ToLower().Contains("dubai") == true) { DubaiVisitUI bk = new DubaiVisitUI(long.Parse(value)); bk.ShowDialog(); } else if (check.ToLower().Contains("saudi") == true) { SaudiVisaStampUI bk = new SaudiVisaStampUI(value); bk.ShowDialog(); } else if (check.ToLower().Contains("ticket") == true) { TicketUI bk = new TicketUI(value); bk.ShowDialog(); } else if (check.ToLower().Contains("booking") == true) { BookingInfoUI bk = new BookingInfoUI(long.Parse(value)); bk.ShowDialog(); } //} }
private void ServiceIdLinkTxt_Click(object sender, EventArgs e) { try { var value = ServiceIdLinkTxt.Text; var check = ServiceNameLinkTxt.Text; if (check.ToLower().Contains("protector") == true) { ProtectorUI bk = new ProtectorUI(long.Parse(value)); bk.ShowDialog(); } else if (check.ToLower().Contains("dubai") == true) { DubaiVisitUI bk = new DubaiVisitUI(long.Parse(value)); bk.ShowDialog(); } else if (check.ToLower().Contains("saudi") == true) { SaudiVisaStampUI bk = new SaudiVisaStampUI(value); bk.ShowDialog(); } else if (check.ToLower().Contains("ticket") == true) { TicketUI bk = new TicketUI(value); bk.ShowDialog(); } else if (check.ToLower().Contains("booking") == true) { BookingInfoUI bk = new BookingInfoUI(long.Parse(value)); bk.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
internal void Cellcliick() { var value = WarGrid1.SelectedCells[0].Value.ToString(); if (WarGrid1.SelectedCells[0].ColumnIndex == 0) { long bookingid = long.Parse(WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[2].Value.ToString()); PayablePayUI bk = new PayablePayUI(bookingid); bk.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 1) { CompanyUI bk = new CompanyUI(long.Parse(value)); bk.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 2) { BookingInfoUI b = new BookingInfoUI(long.Parse(value)); b.ShowDialog(); } else if (WarGrid1.SelectedCells[0].ColumnIndex == 3) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 4) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 5) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 6) { } else if (WarGrid1.SelectedCells[0].ColumnIndex == 7) { } }