private void LoadGadgets()
        {
            var gadgetContainer = new GadgetContainer();
            Canvas.SetTop(gadgetContainer, 100);
            Canvas.SetLeft(gadgetContainer, 100);
            gadgetContainer.OptionButtonType = OptionButtonTypes.Settings;
            gadgetContainer.Close += OnGadgetClose;

            gadgetContainer.Gadget = new TodayAppointments();
            _snapCanvas.Children.Add(gadgetContainer);
        }
        private void LoadGadgets()
        {
            var gadgetContainer = new GadgetContainer();

            Canvas.SetTop(gadgetContainer, 100);
            Canvas.SetLeft(gadgetContainer, 100);
            gadgetContainer.OptionButtonType = OptionButtonTypes.Settings;
            gadgetContainer.Close           += OnGadgetClose;

            gadgetContainer.Gadget = new TodayAppointments();
            _snapCanvas.Children.Add(gadgetContainer);
        }
Пример #3
0
        private void OnbuttonClick(object sender, RoutedEventArgs e)
        {
            var gadgetContainer = new GadgetContainer();
            Canvas.SetTop(gadgetContainer, 100);
            Canvas.SetLeft(gadgetContainer, 100);
            gadgetContainer.OptionButtonType = OptionButtonTypes.Settings;
            gadgetContainer.Close += OnGadgetClose;

            var todaysAppointments = new TodayAppointments();
            gadgetContainer.Gadget = todaysAppointments;

            _snapCanvas.Children.Add(gadgetContainer);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._snapCanvas = ((SHCPL.WPFCommonControls.SnapCanvas)(target));
                return;

            case 2:
                this.gadgetContainer1 = ((SHCPL.WPFCommonControls.GadgetContainer)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnbuttonClick);

            #line default
            #line hidden
                return;

            case 2:
                this._snapCanvas = ((SHCPL.WPFCommonControls.SnapCanvas)(target));
                return;

            case 3:
                this.gadgetContainer1 = ((SHCPL.WPFCommonControls.GadgetContainer)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnbuttonClick);
     
     #line default
     #line hidden
     return;
     case 2:
     this._snapCanvas = ((SHCPL.WPFCommonControls.SnapCanvas)(target));
     return;
     case 3:
     this.gadgetContainer1 = ((SHCPL.WPFCommonControls.GadgetContainer)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this._snapCanvas = ((SHCPL.WPFCommonControls.SnapCanvas)(target));
     return;
     case 2:
     this.gadgetContainer1 = ((SHCPL.WPFCommonControls.GadgetContainer)(target));
     return;
     }
     this._contentLoaded = true;
 }