예제 #1
0
        public ShapeCaptionsManager(ICaptionHost host, CaptionCreationRequested captionCreationRequested)
        {
            _hostShape = host;

            _captionCreationRequested = captionCreationRequested;

            btnDraw = new ClusterButton();
            btnDraw.btn.Click += __bntDraw;
            btnDraw.SetBrush((System.Windows.Media.Brush) Application.Current.TryFindResource("editBrush"));

            btnType = new ClusterButton();
            btnType.btn.Click += __bntType;
            btnType.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("keyboard"));
        }
예제 #2
0
        public ShapeCaptionsManager(ICaptionHost host, CaptionCreationRequested captionCreationRequested)
        {
            _hostShape = host;

            _captionCreationRequested = captionCreationRequested;

            btnDraw            = new ClusterButton();
            btnDraw.btn.Click += __bntDraw;
            btnDraw.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("editBrush"));

            btnType            = new ClusterButton();
            btnType.btn.Click += __bntType;
            btnType.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("keyboard"));
        }
예제 #3
0
        public ClusterCaptions(VdCluster cluster, CaptionCreationRequested captionCreationRequested)
        {
            this.cluster = cluster;

            _captionCreationRequested = captionCreationRequested;

            btnDraw = new ClusterButton();
            btnDraw.btn.Click += __bntDraw;
            btnDraw.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("editBrush"));

            btnType = new ClusterButton();
            btnType.btn.Click += __bntType;
            btnType.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("typeBrush"));
        }
예제 #4
0
        public ClusterCaptions(VdCluster cluster, CaptionCreationRequested captionCreationRequested)
        {
            this.cluster = cluster;

            _captionCreationRequested = captionCreationRequested;

            btnDraw            = new ClusterButton();
            btnDraw.btn.Click += __bntDraw;
            btnDraw.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("editBrush"));

            btnType            = new ClusterButton();
            btnType.btn.Click += __bntType;
            btnType.SetBrush((System.Windows.Media.Brush)Application.Current.TryFindResource("typeBrush"));
        }