Beispiel #1
0
        public BPM2M()
        {
            Adjust adjust = new Adjust();

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

            this.Foreground      = new SolidColorBrush(Colors.Green);
            this.FontStyle       = FontStyles.Normal;
            this.Width           = 500;
            this.Height          = 200;
            this.BorderThickness = new Thickness(5);

            DataGrid dg = new DataGrid();

            dg.Name = "DG" + this.Name;
            DataGridTextColumn mycol = new DataGridTextColumn();

            mycol.Header = "提示:aswd键改变位置,鼠标移动到边框,按住左键调整大小,双击或右键修改属性。";
            dg.Columns.Add(mycol);
            dg.Width          = this.Width;
            dg.Height         = this.Height;
            this.Content      = dg;
            this.MyDG         = dg;
            this.SizeChanged += new SizeChangedEventHandler(BPM2M_SizeChanged);
        }
Beispiel #2
0
        /// <summary>
        /// BPTextBox
        /// </summary>
        public BPTextBox()
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();
            this.Name = "TB" + DateTime.Now.ToString("yyMMddhhmmss");
        }
Beispiel #3
0
        public BPTextBox(TBType ty)
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();
            this.Name      = "TB" + DateTime.Now.ToString("yyMMddhhmmss");
            this.HisTBType = ty;
            this.InitType();
        }
Beispiel #4
0
        public BPTextBox(TBType ty, string tbName)
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();
            this.NameOfReal = tbName;
            this.Name       = tbName;
            this.HisTBType  = ty;
            this.InitType();
        }
Beispiel #5
0
        public BPAttachmentM()
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();
            this.Foreground      = new SolidColorBrush(Colors.Green);
            this.FontStyle       = FontStyles.Normal;
            this.Width           = 500;
            this.Height          = 200;
            this.BorderThickness = new Thickness(5);
        }
Beispiel #6
0
        public BPDtl()
        {
            Adjust adjust = new Adjust();

            adjust.Bind(this);
            this.BindDrag();
            this.Foreground      = new SolidColorBrush(Colors.Green);
            this.FontStyle       = FontStyles.Normal;
            this.Width           = 400;
            this.Height          = 200;
            this.BorderThickness = new Thickness(5);
            this.SizeChanged    += new SizeChangedEventHandler(BPDtl_SizeChanged);
        }
Beispiel #7
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;
        }