Пример #1
0
 //����ʶ����
 private void barButtonItemRecognizer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     AddRecognizer addRecognizer = new AddRecognizer();
     addRecognizer.Opt = Util.Operateion.Add;
     addRecognizer.ShowDialog(this);
     BuildRecognizerTree();
     ShowRecognizerInfo();
 }
Пример #2
0
 //�޸�ʶ����
 private void barButtonItemEditRecognizer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     RecognizerInfo ri = RecognizerBusiness.Instance.GetRecognizerInfoByRecognizerId(ref errMessage, int.Parse(treeListShowRecognizer.FocusedNode.Tag.ToString().Split(';')[0]));
     AddRecognizer editRecognizer = new AddRecognizer(ri);
     editRecognizer.Opt = Util.Operateion.Update;
     editRecognizer.Id = int.Parse(treeListShowRecognizer.FocusedNode.Tag.ToString().Split(';')[0]);
     editRecognizer.ShowDialog(this);
     BuildRecognizerTree();
     ShowRecognizerInfo();
 }