void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:
                this.solidColorBrushEditor = ((PosControls.SolidColorBrushEditorControl)(target));
                return;

            case 4:
                this.textGradientOffset = ((PosControls.CustomTextBox)(target));
                return;

            case 5:
                this.buttonSave = ((PosControls.TextBlockButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        private void NewSolidColorBrush(bool editExisting)
        {
            SolidColorBrushEditorControl control = new SolidColorBrushEditorControl();
            PosDialogWindow window = new PosDialogWindow(control,
                                                         "Solid Color Brush Editor", 500, 260);

            if (editExisting)
            {
                control.SelectedBrush = UserControl.SelectedBrush as SolidColorBrush;
            }
            if (PosDialogWindow.ShowPosDialogWindow(this, window) != null)
            {
                UserControl.SelectedBrush = control.SelectedBrush;
            }
        }