Пример #1
0
 public void BindIt(BPImg img)
 {
     HisImg           = img;
     this.TB_Url.Text = img.WinURL;
     Glo.BindComboBoxWinOpenTarget(this.DDL_WinName, img.WinTarget);
     this.Show();
 }
Пример #2
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.HisImg.WinURL    = this.TB_Url.Text;
            this.HisImg.WinTarget = this.TB_WinName.Text;

            if (FileName != null)
            {
                ImageBrush  ib  = new ImageBrush();
                BitmapImage png = new BitmapImage(new Uri(Glo.BPMHost + "/DataUser/ImgAth/Upload/" + FileName, UriKind.RelativeOrAbsolute));
                ib.ImageSource         = png;
                this.HisImg.Background = ib;
                this.HisImg.HisPng     = png;
            }

            BPImg img = Glo.currEle as BPImg;

            img.WinURL        = this.TB_Url.Text;
            img.WinTarget     = this.TB_WinName.Text;
            this.DialogResult = true;
        }