Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            CustomControlContainer container = new CustomControlContainer();

            //OptionChoice optC = new OptionChoice
            //{
            //    Option = new Option
            //    {
            //        Label = "clientAdd",
            //        CurrentDiscount = new Discount
            //        {
            //            ReduceByPercent = 15d
            //        },
            //        BasePrice = 40d
            //    },
            //    TakenDates = new DateRange
            //    {
            //        Start = new DateTime(2016, 2, 15),
            //        End = new DateTime(2016, 3, 1)
            //    }
            //};
            //OptionChoiceEntity opt = new OptionChoiceEntity(optC);

            FlowDocViewModel flowDocVM = new CustomControlsTest.FlowDocViewModel(
                new FlowDocDataItem { Label = "tutu" },
                new FlowDocDataItem { Label = "tata" }
            );

            container.DataContext = flowDocVM;
            MainWindow = container;
            MainWindow.ShowDialog();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            CustomControlContainer container = new CustomControlContainer();

            //OptionChoice optC = new OptionChoice
            //{
            //    Option = new Option
            //    {
            //        Label = "clientAdd",
            //        CurrentDiscount = new Discount
            //        {
            //            ReduceByPercent = 15d
            //        },
            //        BasePrice = 40d
            //    },
            //    TakenDates = new DateRange
            //    {
            //        Start = new DateTime(2016, 2, 15),
            //        End = new DateTime(2016, 3, 1)
            //    }
            //};
            //OptionChoiceEntity opt = new OptionChoiceEntity(optC);

            FlowDocViewModel flowDocVM = new CustomControlsTest.FlowDocViewModel(
                new FlowDocDataItem {
                Label = "tutu"
            },
                new FlowDocDataItem {
                Label = "tata"
            }
                );

            container.DataContext = flowDocVM;
            MainWindow            = container;
            MainWindow.ShowDialog();
        }