public static ChatMessageBox GetInstance(MainForm args) { if (Instance == null) Instance = new ChatMessageBox(); mainForm=args; return Instance; }
/// <summary> /// /// </summary> /// <param name="qqMainForm"></param> /// <param name="isAuto">是否由错误引起的登录 true 是</param> public LoginFrom(MainForm qqMainForm, bool isAuto) { ISAutoLogin = true; _MainForm = qqMainForm; InitializeComponent(); if (isAuto) { lab_isAutoLogin.Visible = true; timer1.Enabled = true; } txt_name.Enabled = false; txt_pswd.Enabled = false; txt_name.Texts = Program.UserName; chb_autu.Enabled = false; chb_save.Enabled = false; }