Beispiel #1
0
        void ShowDetailWindow(InfoOptType type, InfoModel info = null)
        {
            bool rst = (bool)new DetailInfoWindow(type, info).ShowDialog();

            if (rst == true)
            {
                GetInfos();
            }
        }
Beispiel #2
0
        public DetailActivityPlaceWindow(InfoOptType type, PartyActAreaModel area = null)
            : this()
        {
            _type = type;

            if (area != null)
            {
                area.CopyTo(_model);
                //设置图片
                if (area.pic != null && area.pic.Count > 0)
                {
                    System.Drawing.Image img = ImageUtils.Base64Decode(area.pic[0]);
                    string file = AppDomain.CurrentDomain.BaseDirectory + "temp.jpg";
                    img.Save(file, ImageFormat.Jpeg);
                    img.Dispose();
                    img = null;

                    ctlImage.ImgFile = file;
                }
            }
        }