Beispiel #1
0
 /// <summary>
 ///     值改变
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cLookUp_EditValueChanged(object sender, EventArgs e)
 {
     if (ListIsValid == null)
     {
         return;
     }
     CurrentApplyWay = EditValue == null
            ? null
            : ListIsValid.Find(model => model.ApplyWayID == Convert.ToInt32(EditValue));
 }
Beispiel #2
0
 /// <summary>
 /// 确定按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Btn_Ok_Click(object sender, EventArgs e)
 {
     _applyway = (ApplyWay)this.trl_Left.GetDataRecordByNode(this.trl_Left.FocusedNode);
     if (_applyway != null)
     {
         this.DialogResult = DialogResult.OK;
     }
     else
     {
         MsgBox.ShowWarn("请选中数据");
         return;
     }
 }