private void bbiNew_ItemClick(object sender, ItemClickEventArgs e) { ScheduleTicket scheduleTicket = new ScheduleTicket(); checkStatus = 1; scheduleTicket.ShowDialog(); BindData(); }
private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e) { foreach (int i in gridView.GetSelectedRows()) { DataRow row = gridView.GetDataRow(i); pickupId = Convert.ToInt32(row[0].ToString()); ScheduleTicket scheduleTicket = new ScheduleTicket(); checkStatus = 3; scheduleTicket.ShowDialog(); BindData(); } }