示例#1
0
        public override void Setup()
        {
            fBase       = new BaseWindowStub();
            fTaskRecord = new GDMTaskRecord(fBase.Context.Tree);

            fDialog      = new TaskEditDlg(fBase);
            fDialog.Task = fTaskRecord;
            fDialog.Show();
        }
示例#2
0
        public static void TaskEditDlg_Handler(TaskEditDlg dlg)
        {
            SelectCombo("cmbGoalType", dlg, 3);
            ClickButton("btnGoalSelect", dlg);

            SelectCombo("cmbGoalType", dlg, 2);
            RecordSelectDlgTests.SetCreateItemHandler(fFormTest, SourceEditDlgTests.SourceAdd_Mini_Handler);
            ClickButton("btnGoalSelect", dlg);

            SelectCombo("cmbGoalType", dlg, 1);
            RecordSelectDlgTests.SetCreateItemHandler(fFormTest, FamilyEditDlgTests.FamilyAdd_Mini_Handler);
            ClickButton("btnGoalSelect", dlg);

            SelectCombo("cmbGoalType", dlg, 0);
            PersonEditDlgTests.SetCreateIndividualHandler(fFormTest, GDMSex.svMale);
            ClickButton("btnGoalSelect", dlg);

            ClickButton("btnAccept", dlg);
        }