示例#1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            SaveFileDialog _SaveFileDialog = new SaveFileDialog();

            _SaveFileDialog.Filter = "*.jpg|*.jpg";
            if (_SaveFileDialog.ShowDialog() == DialogResult.OK)
            {
                titleimg.Image.Save(_SaveFileDialog.FileName, ImageFormat.Jpeg);
                MConsole.Log("保存成功,少年拿好你的纸巾");
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!canSend)
            {
                MConsole.Log("少年手速太快了,雅蠛蝶");
            }
            canSend = false;
            //验证av号码
            Regex isNumber = new Regex(@"^[0-9]{2,10}");

            if (!isNumber.IsMatch(avcode.Text))
            {
                MConsole.Log("请输入正确的av号,例如: 170000");
                return;
            }
            //隐藏下载按钮
            saveImages.Visible = false;
            //隐藏原来的图片
            titleimg.Visible = false;
            backgroundWorker1.RunWorkerAsync();
            mypress.Visible = true;
        }