Пример #1
0
        internal static LayoutDetailPanel CreateLayoutControls(out AvrMainForm avrMainForm)
        {
            avrMainForm = new AvrMainForm();

            LayoutDetailPanel layoutDetail = null;

            foreach (IRelatedObject child in avrMainForm.Children)
            {
                if (child is LayoutDetailPanel)
                {
                    layoutDetail = child as LayoutDetailPanel;
                }
            }

            Assert.IsNull(layoutDetail);

            avrMainForm.InitLayoutDetail(true);
            foreach (IRelatedObject child in avrMainForm.Children)
            {
                if (child is LayoutDetailPanel)
                {
                    layoutDetail = child as LayoutDetailPanel;
                }
            }
            Assert.IsNotNull(layoutDetail);
            return(layoutDetail);
        }
Пример #2
0
        public void NewQueryLoadDataTest()
        {
            var avrMainForm = new AvrMainForm();
            var args        = new AvrTreeSelectedElementEventArgs(BaseReportTests.QueryId, -1, null, -1, AvrTreeElementType.Query);

            avrMainForm.OpenEditor(args, true);
            avrMainForm.Dispose();
        }
Пример #3
0
        public void NewLayoutLoadDataTest()
        {
            //PresenterFactory.Init(new BaseForm());

            var avrMainForm = new AvrMainForm();
            var args        = new AvrTreeSelectedElementEventArgs(BaseReportTests.QueryId, -1, BaseReportTests.QueryId, -1,
                                                                  AvrTreeElementType.Layout);

            avrMainForm.OpenEditor(args, true);

            avrMainForm.Dispose();
        }