Exemple #1
0
        private void BtnModifyPicture_OnClick(object sender, RoutedEventArgs e)
        {
            string strName = "顶视图";
            //string strInfo = "还贷款萨丹哈";
            string path = AppDomain.CurrentDomain.BaseDirectory + "\\Data\\Images\\顶视图.png";

            byte[]  byteArray = ImageHelper.LoadImageFile(path);
            Picture pc        = new Picture();

            pc.Name = strName;
            pc.Info = byteArray;
            bool bReturn = client.EditPictureInfo(pc);

            if (bReturn)
            {
                MessageBox.Show("保存成功");
            }
            else
            {
                MessageBox.Show("保存失败");
            }
        }