示例#1
0
        public void UploadBmobWindowShow()
        {
            switch (_currentUploadPhotoType)
            {
            case UploadPhotoType.Commodity:
                if (_commodity != null)
                {
                    _confirmUploadCommodityInfo = ConfirmUploadCommodityInfo.Builder(this)
                                                  .SetCommodityInfo(_commodity);
                    _confirmUploadCommodityInfo.Show();
                    return;
                }
                break;

            case UploadPhotoType.Subcategory:
                _confirmUploadSubCategoryInfo = ConfirmUploadSubCategoryInfo.Builder(this)
                                                .SetSubCategoryInfo(_subCategory);
                _confirmUploadSubCategoryInfo.Show();
                break;

            default:
                throw new Exception("程序错误,请检查");
            }
        }
示例#2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     _confirmUploadCommodityInfo = null;
 }
示例#3
0
 private ConfirmUploadCommodityInfo()
 {
     InitializeComponent();
     _confirmUploadCommodityInfo = this;
 }