Пример #1
0
 // Trả lời thư
 private void barBtReply_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         if (gridView1.GetDataRow(gridView1.FocusedRowHandle)[0].ToString() != null)
         {
             mail = getMessage(treeList1.FocusedNode[2].ToString(),(int) gridView1.GetDataRow(gridView1.FocusedRowHandle)[0]);
             frmNewMessage form = new frmNewMessage(mail, "Reply",this);
             ProtocolForm.ShowDialog(this, form);
         }
     }
     catch
     {
         PLMessageBox.ShowErrorMessage("Có lỗi");
     }
 }
Пример #2
0
 //*************************************************************************************************************************
 // Grid Event
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.GetDataRow(gridView1.FocusedRowHandle)[0].ToString() != null)
     {
         mail = mess.GetMessage(treeList1.FocusedNode[2].ToString(), (int) gridView1.GetDataRow(gridView1.FocusedRowHandle)[0]);
         frmNewMessage form = new frmNewMessage(mail, "Drafts",this);
         ProtocolForm.ShowDialog(this, form);
     }
 }
Пример #3
0
 // Tạo message mới
 private void barBtNewMessage_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmNewMessage form = new frmNewMessage();
     ProtocolForm.ShowDialog(this, form);
 }