old_flsystem/类库/Chat.Framework/QQSdk/PCQQ/InputCode.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UI.Framework.Forms;
namespace Chat.Framework.QQSdk.PCQQ
{
public partial class InputCode : BaseForm
{
public string Code { get; private set; }
private uint qq;
public InputCode(uint qq)
{
InitializeComponent();
this.qq = qq;
}
private void button1_Click(object sender, EventArgs e)
{
this.Code = this.textBox1.Text;
this.Close();
}
private void InputCode_Load(object sender, EventArgs e)
{
var file = CsharpHttpHelper.HttpExtend.MapFile(qq + ".png", "Verify");
if (!System.IO.File.Exists(file))
{
file = CsharpHttpHelper.HttpExtend.MapFile(qq + ".png", "Assembly\\apifile\\Verify");
}
if (System.IO.File.Exists(file)) this.pictureBox1.ImageLocation = file;
else this.Close();
}
}
}