Esempio n. 1
0
        private void btnChat_Click(object sender, EventArgs e)
        {
            this.Hide();
            string   chatID            = "";
            TourChat opentourGuideChat = new TourChat(ViewAll.LoginInfo.TourID, ViewAll.LoginInfo.UserID, chatID);

            opentourGuideChat.ShowDialog();
        }
Esempio n. 2
0
        private void dtGridViewAllChat_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 5)
            {
                int    columnIndex = e.ColumnIndex;
                int    rowIndex    = e.RowIndex;
                string tourid      = dtGridViewAllChat.Rows[rowIndex].Cells[1].Value.ToString();
                string touristID   = dtGridViewAllChat.Rows[rowIndex].Cells[3].Value.ToString();
                string chatid      = dtGridViewAllChat.Rows[rowIndex].Cells[0].Value.ToString();

                TourChat openTourChat = new TourChat(tourid, touristID, chatid);
                openTourChat.Show();
                this.Hide();
            }
        }