private void newQuestion_Click(object sender, RoutedEventArgs e)
        {
            HydraulicsQuestion q    = new HydraulicsQuestion("New Message for data input", 0.0, 0.0, 0.0);
            QuestionCtrl       ctrl = new QuestionCtrl();

            ctrl.DataContext = q;

            //double x, y, z;

            ctrl.submit.Click += (sender2, arg) =>
            {
                //Calculate using the formula
                //
                ResultCtrl resctrl = new ResultCtrl();
                resctrl.DataContext   = ctrl.calculate();
                containetCtrl.Content = resctrl;
            };


            containetCtrl.Content = ctrl;
        }
Exemple #2
0
 void OnDestory()
 {
     Ins = null;
 }
Exemple #3
0
 void Awake()
 {
     Ins = this;
 }
 public CategoryCtrl()
 {
     dbCat = new DBCategory();
     qCtrl = new QuestionCtrl();
 }
Exemple #5
0
 public QuestionService()
 {
     questionController = new QuestionCtrl();
 }
 public PopUpQuestionDialog()
 {
     m_ContentCtrl = new QuestionCtrl();
     m_ContentCtrl.ButtonClick+=new EventHandler<DialogResultArgs>(m_ContentCtrl_ButtonClick);
 }
Exemple #7
0
 public PopUpQuestionDialog()
 {
     m_ContentCtrl              = new QuestionCtrl();
     m_ContentCtrl.ButtonClick += new EventHandler <DialogResultArgs>(m_ContentCtrl_ButtonClick);
 }