Files
KJD/TEMUKJD/KJDForms/SystemForms/SystemRemoveRestrictionsForm.cs

86 lines
2.4 KiB
C#

using TemuKJD.KJDForms.ToolForms;
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 TemuKJD.BaseForms;
using AllBase.Helper;
namespace TemuKJD.KJDForms.SystemForms
{
public partial class SystemRemoveRestrictionsForm : BaseForm
{
ChangeIPForm changeIPForm = new ChangeIPForm();
public SystemRemoveRestrictionsForm()
{
InitializeComponent();
}
private void pbLogin1688_Click(object sender, EventArgs e)
{
IeForm tbForm = new IeForm("https://work.1688.com/");
tbForm.Show();
}
private void pbLoginTaobao_Click(object sender, EventArgs e)
{
//IeForm tbForm = new IeForm("https://i.taobao.com/my_taobao.htm");
//tbForm.Show();
if (TaobaoLoginForm.instance != null)
TaobaoLoginForm.instance.Show();
else
new TaobaoLoginForm().Show();
}
private void pbManageToken_Click(object sender, EventArgs e)
{
TokenNewForm tokenForm = new TokenNewForm();
tokenForm.Show();
}
private void pbAgentIp_Click(object sender, EventArgs e)
{
ProxyForm proxyForm = new ProxyForm();
proxyForm.Show();
}
private void pbAdsl_Click(object sender, EventArgs e)
{
changeIPForm.Show();
}
private void pbLoginPdd_Click(object sender, EventArgs e)
{
}
private void SystemRemoveRestrictionsForm_Load(object sender, EventArgs e)
{
if (AllBase.BaseClass.MainPath == "29wx")
{
this.ucCheckBox1.Visible = true;
}
else
this.ucCheckBox1.Visible = false;
}
private void SystemRemoveRestrictionsForm_VisibleChanged(object sender, EventArgs e)
{
this.ucCheckBox1.Checked = GlobalConfig.GlobalSettings.IsWxUseSoftwareDefaultAddress;
}
private void ucCheckBox1_CheckedChanged(object sender, EventArgs e)
{
GlobalConfig.GlobalSettings.IsWxUseSoftwareDefaultAddress = this.ucCheckBox1.Checked;
StartUp.SaveGlobalSettings();
}
}
}