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; }
void OnDestory() { Ins = null; }
void Awake() { Ins = this; }
public CategoryCtrl() { dbCat = new DBCategory(); qCtrl = new QuestionCtrl(); }
public QuestionService() { questionController = new QuestionCtrl(); }
public PopUpQuestionDialog() { m_ContentCtrl = new QuestionCtrl(); m_ContentCtrl.ButtonClick+=new EventHandler<DialogResultArgs>(m_ContentCtrl_ButtonClick); }
public PopUpQuestionDialog() { m_ContentCtrl = new QuestionCtrl(); m_ContentCtrl.ButtonClick += new EventHandler <DialogResultArgs>(m_ContentCtrl_ButtonClick); }