Ejemplo n.º 1
0
        /// <summary>
        /// Dtl
        /// </summary>
        public BPM2M(string name)
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();

            this.Name            = name;
            this.Foreground      = new SolidColorBrush(Colors.Green);
            this.FontStyle       = FontStyles.Normal;
            this.Width           = 400;
            this.Height          = 200;
            this.BorderThickness = new Thickness(5);
            this.LoadDtl();
            this.SizeChanged += new SizeChangedEventHandler(BPM2M_SizeChanged);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// BPImgAth
        /// </summary>
        public BPImgAth()
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();

            this.Name       = "TB" + DateTime.Now.ToString("yyMMddhhmmss");
            this.IsReadOnly = true;

            this.Width  = 160;
            this.Height = 200;

            ImageBrush ib = new ImageBrush();
            //  BitmapImage png = new BitmapImage(new Uri("/CCForm;component/Img/LogoH.png", UriKind.Relative));
            BitmapImage png = new BitmapImage(new Uri("/CCForm;component/Img/Logo/" + Glo.CompanyID + "/LogoH.png", UriKind.Relative));

            ib.ImageSource    = png;
            this.Background   = ib;
            this.TextWrapping = System.Windows.TextWrapping.Wrap;
        }