コード例 #1
0
ファイル: SurveyShowList_sat.xaml.cs プロジェクト: JuRogn/OA
 //只能单选
 void event_AnswerSelected(object sender, AnswerSelectedEventArgs e)
 {
     foreach (SurveyAnswer_sat sa in spAnswerList.Children)
     {
         if (sa.txbAnswerContent.Text.ToString() == e.DICTIONARYNAME && e.DICTIONARYNAME!="")
         {
             subAnswer = e.DICTIONARYVALUE;
             sa.ckbSelect.IsChecked = true;
         }
         else
             sa.ckbSelect.IsChecked = false;
     }
 }
コード例 #2
0
ファイル: SurveyShowList_sat.xaml.cs プロジェクト: jjg0519/OA
 //只能单选
 void event_AnswerSelected(object sender, AnswerSelectedEventArgs e)
 {
     foreach (SurveyAnswer_sat sa in spAnswerList.Children)
     {
         if (sa.txbAnswerContent.Text.ToString() == e.DICTIONARYNAME && e.DICTIONARYNAME != "")
         {
             subAnswer = e.DICTIONARYVALUE;
             sa.ckbSelect.IsChecked = true;
         }
         else
         {
             sa.ckbSelect.IsChecked = false;
         }
     }
 }
コード例 #3
0
ファイル: SurveyAnswer_sat.xaml.cs プロジェクト: jjg0519/OA
        private void ckbSelect_Checked(object sender, RoutedEventArgs e)
        {
            bool b = (bool)((RadioButton)sender).IsChecked;

            if (b)//<--可能无用
            {
                if (event_AnswerSelected != null)
                {
                    AnswerSelectedEventArgs ev = new AnswerSelectedEventArgs();
                    ev.DICTIONARYVALUE = answerInfo.DICTIONARYVALUE.ToString();
                    ev.DICTIONARYNAME  = this.txbAnswerContent.Text;
                    event_AnswerSelected(this, ev);
                }
            }
        }
コード例 #4
0
ファイル: SurveyAnswer_sat.xaml.cs プロジェクト: JuRogn/OA
 private void ckbSelect_Checked(object sender, RoutedEventArgs e)
 {
     bool b = (bool)((RadioButton)sender).IsChecked;
     if (b)//<--可能无用
         if (event_AnswerSelected != null)
         {
             AnswerSelectedEventArgs ev = new AnswerSelectedEventArgs();
             ev.DICTIONARYVALUE = answerInfo.DICTIONARYVALUE.ToString();
             ev.DICTIONARYNAME = this.txbAnswerContent.Text;
             event_AnswerSelected(this, ev);
         }
 }