private void buttonTestADSL_Click(object sender, EventArgs e) { if (this.textBoxADSLEntryName.Text == "" || this.textBoxADSLUserName.Text == "") { MessageBox.Show("请输入ADSL连接名、账号、密码后再按测试钮", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } ADSLFactory.Init(this.textBoxADSLEntryName.Text, this.textBoxADSLUserName.Text, this.textBoxADSLPassword.Text); ADSLFactory.Reconnect(); }
public static void SetConfigurationToADSL() { ADSLFactory.Init(ms_c.ADSLEntryName, ms_c.ADSLUserName, ms_c.ADSLPassword); }