예제 #1
0
 private void execShowDetail(DataGridViewRow drShow)
 {
     if (this.m_dvLogData.Count != 0)
     {
         DetailLog.myLogForm = this;
         myDetailLog         = new DetailLog();
         myDetailLog.setShowDetail(drShow);
         myDetailLog.ShowDialog();
     }
 }
예제 #2
0
 public void execMoveSelected(int iCnt)
 {
     if (this.m_dvLogData.Count > 1)
     {
         if (this.dgvLogData.SelectedRows.Count <= 0)
         {
             if (iCnt > 0)
             {
                 this.dgvLogData.CurrentCell = this.dgvLogData.Rows[0].Cells["ReceTime"];
             }
             else
             {
                 this.dgvLogData.CurrentCell = this.dgvLogData.Rows[this.dgvLogData.Rows.Count - 1].Cells["ReceTime"];
             }
         }
         else
         {
             int index = this.dgvLogData.CurrentRow.Index;
             if ((index + iCnt) < 0)
             {
                 if (MessageBox.Show("日志已达到首位,是否从末尾继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
                 {
                     return;
                 }
                 this.dgvLogData.CurrentCell = this.dgvLogData.Rows[this.dgvLogData.Rows.Count - 1].Cells["ReceTime"];
             }
             else if ((index + iCnt) > (this.m_dvLogData.Count - 1))
             {
                 if (MessageBox.Show("日志已达到末尾,是否从首位继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
                 {
                     return;
                 }
                 this.dgvLogData.CurrentCell = this.dgvLogData.Rows[0].Cells["ReceTime"];
             }
             else
             {
                 this.dgvLogData.CurrentCell = this.dgvLogData.Rows[index + iCnt].Cells["ReceTime"];
             }
         }
         myDetailLog.setShowDetail(this.dgvLogData.Rows[this.dgvLogData.CurrentRow.Index]);
     }
 }
예제 #3
0
파일: LogForm.cs 프로젝트: lexzh/Myproject
 private void execShowDetail(DataGridViewRow drShow)
 {
     if (this.m_dvLogData.Count != 0)
     {
         DetailLog.myLogForm = this;
         myDetailLog = new DetailLog();
         myDetailLog.setShowDetail(drShow);
         myDetailLog.ShowDialog();
     }
 }