Beispiel #1
0
        public MainPage()
        {
            InitializeComponent();

            Feature2Toggle = new Feature2Toggle();
            Feature3Toggle = new Feature3Toggle();

            DataContext = this;
        }
        public MainWindow()
        {
            InitializeComponent();
            Feature2Toggle             = new Feature2Toggle();
            Feature3Toggle             = new Feature3Toggle();
            ToggleFromJsonHttpEndpoint = new ToggleFromJsonHttpEndpoint();

            DataContext = this;
        }
        public MainWindow()
        {
            InitializeComponent();
            Feature2Toggle = new Feature2Toggle();
            Feature3Toggle = new Feature3Toggle();
            ToggleFromJsonHttpEndpoint = new ToggleFromJsonHttpEndpoint();

            DataContext = this;
        }
Beispiel #4
0
        public MainWindow()
        {
            InitializeComponent();

            Feature2Toggle = new Feature2Toggle();
            Feature3Toggle = new Feature3Toggle();

            Feature5 = new CompositeAndDecorator(new FeatureXToggle(), new FeatureYToggle());

            DataContext = this;
        }
        public MainWindow()
        {
            InitializeComponent();

            Feature2Toggle = new Feature2Toggle();
            Feature3Toggle = new Feature3Toggle();
            ToggleFromJsonHttpEndpoint = new ToggleFromJsonHttpEndpoint();

            Feature5 = new CompositeAndDecorator(new FeatureXToggle(), new FeatureYToggle());

            DataContext = this;
        }
        public MainPage()
        {
            InitializeComponent();
            Feature2Toggle = new Feature2Toggle();
            DateToggle = new MyDateToggle();
            DateRangeToggle = new MyDateRangeToggle();

            var feature2Key = "Feature2Toggle";
            var dateKey = "MyDateToggle";
            var dateRangeKey = "MyDateRangeToggle";

            Application.Current.Resources.Add(feature2Key, false);
            Application.Current.Resources.Add(dateKey, new DateTime(2100,1,1));
            Application.Current.Resources.Add(dateRangeKey, "01/01/2012 00:00:00 | 31/12/2012 23:59:59");

            DataContext = this;
        }
Beispiel #7
0
        public MainPage()
        {
            InitializeComponent();
            Feature2Toggle  = new Feature2Toggle();
            DateToggle      = new MyDateToggle();
            DateRangeToggle = new MyDateRangeToggle();

            var feature2Key  = "Feature2Toggle";
            var dateKey      = "MyDateToggle";
            var dateRangeKey = "MyDateRangeToggle";

            Application.Current.Resources.Add(feature2Key, false);
            Application.Current.Resources.Add(dateKey, new DateTime(2100, 1, 1));
            Application.Current.Resources.Add(dateRangeKey, "01/01/2012 00:00:00 | 31/12/2012 23:59:59");


            DataContext = this;
        }
 public MainWindow()
 {
     InitializeComponent();
     Feature2Toggle = new Feature2Toggle();
     DataContext = this;
 }