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("程序错误,请检查"); } }
private void Window_Closed(object sender, EventArgs e) { _confirmUploadCommodityInfo = null; }
private ConfirmUploadCommodityInfo() { InitializeComponent(); _confirmUploadCommodityInfo = this; }