Exemplo n.º 1
0
 private void barButtonItem_OK_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.gridView_Sentence.GetFocusedRow() == null)
     {
         return;
     }
     sentenceInfo = this.gridView_Sentence.GetFocusedRow() as MySentenceInfo;
     objectid     = sentenceInfo.SENTENCEINFO_ID;
 }
Exemplo n.º 2
0
        //对应句子
        private void gridControl_OSentence_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e)
        {
            if (e.View == null)
            {
                return;
            }

            g_OsentenceInfo = this.gridView_OSentence.GetRow(this.gridView_OSentence.FocusedRowHandle) as MySentenceInfo;

            this.memoEdit_Note.Text = g_OsentenceInfo.SENTENCEINFO_NOTE;
            this.memoEdit_Name.Text = g_OsentenceInfo.SENTENCEINFO_NAME;
        }
Exemplo n.º 3
0
        public bool SaveSentenceInfoCard(MySentenceInfo item)
        {
            bool result = true;

            return(result);
        }
Exemplo n.º 4
0
 private void gridControl_Event_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e)
 {
     sentenceInfo = this.gridView_Sentence.GetFocusedRow() as MySentenceInfo;
     this.memoEdit_SentenceNote.EditValue = sentenceInfo.SENTENCEINFO_NOTE;
 }