コード例 #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
ファイル: ClusterCaptions.cs プロジェクト: gdlprj/duscusys
        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"));
        }