12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LYFZ.Software.MainBusiness.OssTask
- {
- public class frmBaiduShareUrl : LYFZ.Software.OssTask.frmBaiduShareUrl
- {
- public frmBaiduShareUrl()
- {
- this.OK.Click += OK_Click;
- this.Cancel.Click += Cancel_Click;
- // 居中显示;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- }
- private void Cancel_Click( object sender, EventArgs e )
- {
- this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.Close();
- }
- private void OK_Click( object sender, EventArgs e )
- {
- if ( string.IsNullOrEmpty( this.tx_code.Text ) || string.IsNullOrEmpty( this.tx_url.Text ) )
- {
- MessageBoxCustom.Show( "请输入提取码和百度分享地址链接!" );
- return;
- }
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.Close();
- }
- }
- }
|