代理版本调试
This commit is contained in:
1 parent
0b325e7cd8
commit
8ff2508632
36 files changed
+1049
-342
No files matched your search
+83
-81
@@ -1,4 +1,5 @@
|
||||
using TemuKJD.BaseForms;
|
||||
using AllBase;
|
||||
using NaiBa.Util.Helper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -10,25 +11,26 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase.Helper;
|
||||
using NaiBa.Util.Helper;
|
||||
using System.IO;
|
||||
using AllBase;
|
||||
using TemuKJD.BaseForms;
|
||||
|
||||
namespace TemuKJD
|
||||
{
|
||||
public partial class InitForm : BaseGeneralForm
|
||||
public partial class InitForm : BaseForms.BaseGeneralForm
|
||||
{
|
||||
InitFormSettings initFormSettings = new InitFormSettings();
|
||||
public InitForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Load += InitForm_Load;
|
||||
this.Load += NewInitForm_Load;
|
||||
}
|
||||
|
||||
private void InitForm_Load(object sender, EventArgs e)
|
||||
private void NewInitForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Icon = BaseClass.Ico;
|
||||
//if (!BaseClass.AgentCode.IsNullOrEmpty())
|
||||
// this.Hide();
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
while (!Work.Initialization.IsCheckFilesFinish || !Program.IsInit || this.progressBarX1.Value < 50)
|
||||
@@ -51,84 +53,84 @@ namespace TemuKJD
|
||||
});
|
||||
return;
|
||||
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\YkdChoice.dll"))
|
||||
// {
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbPdd.Visible = true;
|
||||
// }
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\WxChoice.dll"))
|
||||
// {
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbWX.Visible = true;
|
||||
// }
|
||||
//#if DEBUG
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbPdd.Visible = true;
|
||||
// this.rbWX.Visible = true;
|
||||
//#endif
|
||||
// initFormSettings = ConfigHelper.LoadConfig<InitFormSettings>("initFormSettings");
|
||||
// if (initFormSettings == null)
|
||||
// initFormSettings = new InitFormSettings();
|
||||
// this.chkRemember.Checked = initFormSettings.Remember;
|
||||
// this.rbTemu.Checked = initFormSettings.LoginType.ToLower() == "temu";
|
||||
// this.rbPdd.Checked = initFormSettings.LoginType.ToLower() == "pdd";
|
||||
// this.rbWX.Checked = initFormSettings.LoginType.ToLower() == "wx";
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\YkdChoice.dll"))
|
||||
// {
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbPdd.Visible = true;
|
||||
// }
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\WxChoice.dll"))
|
||||
// {
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbWX.Visible = true;
|
||||
// }
|
||||
//#if DEBUG
|
||||
// this.panel3.Location = new Point(4, 4);
|
||||
// this.panel4.Visible = true;
|
||||
// this.rbPdd.Visible = true;
|
||||
// this.rbWX.Visible = true;
|
||||
//#endif
|
||||
// initFormSettings = ConfigHelper.LoadConfig<InitFormSettings>("initFormSettings");
|
||||
// if (initFormSettings == null)
|
||||
// initFormSettings = new InitFormSettings();
|
||||
// this.chkRemember.Checked = initFormSettings.Remember;
|
||||
// this.rbTemu.Checked = initFormSettings.LoginType.ToLower() == "temu";
|
||||
// this.rbPdd.Checked = initFormSettings.LoginType.ToLower() == "pdd";
|
||||
// this.rbWX.Checked = initFormSettings.LoginType.ToLower() == "wx";
|
||||
|
||||
// if (initFormSettings.LoginType.ToLower() == "temu")
|
||||
// BaseClass.MainPath = "kuajingda";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "pdd")
|
||||
// BaseClass.MainPath = "29pdd";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "wx")
|
||||
// BaseClass.MainPath = "29wx";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "dy")
|
||||
// BaseClass.MainPath = "29dy";
|
||||
// if (initFormSettings.LoginType.ToLower() == "temu")
|
||||
// BaseClass.MainPath = "kuajingda";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "pdd")
|
||||
// BaseClass.MainPath = "29pdd";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "wx")
|
||||
// BaseClass.MainPath = "29wx";
|
||||
// else if (initFormSettings.LoginType.ToLower() == "dy")
|
||||
// BaseClass.MainPath = "29dy";
|
||||
|
||||
// this.rbTemu.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// this.rbPdd.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// this.rbWX.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// if (rbWX.Visible == false || rbPdd.Visible == false)
|
||||
// flowLayoutPanel1.Location = new Point(38, flowLayoutPanel1.Location.Y);
|
||||
// this.rbTemu.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// this.rbPdd.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// this.rbWX.CheckedChanged += rbTemu_CheckedChanged;
|
||||
// if (rbWX.Visible == false || rbPdd.Visible == false)
|
||||
// flowLayoutPanel1.Location = new Point(38, flowLayoutPanel1.Location.Y);
|
||||
|
||||
// Task.Run(() =>
|
||||
// {
|
||||
// while (!Work.Initialization.IsCheckFilesFinish || !Program.IsInit || this.progressBarX1.Value < 50)
|
||||
// {
|
||||
// Thread.Sleep(new Random().Next(10, 50));
|
||||
// Task.Run(() =>
|
||||
// {
|
||||
// while (!Work.Initialization.IsCheckFilesFinish || !Program.IsInit || this.progressBarX1.Value < 50)
|
||||
// {
|
||||
// Thread.Sleep(new Random().Next(10, 50));
|
||||
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// this.progressBarX1.Value = Work.Initialization.InitPercent++;
|
||||
// this.progressBarX1.Maximum = 50;
|
||||
// }));
|
||||
// if (this.progressBarX1.Value >= 50)
|
||||
// Thread.Sleep(300);
|
||||
// }
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// btnOK.Visible = true;
|
||||
// }));
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// this.progressBarX1.Value = Work.Initialization.InitPercent++;
|
||||
// this.progressBarX1.Maximum = 50;
|
||||
// }));
|
||||
// if (this.progressBarX1.Value >= 50)
|
||||
// Thread.Sleep(300);
|
||||
// }
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// btnOK.Visible = true;
|
||||
// }));
|
||||
|
||||
//#if DEBUG
|
||||
// Thread.Sleep(2500);
|
||||
//#else
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\YkdChoice.dll"))
|
||||
// {
|
||||
// Thread.Sleep(2500);
|
||||
// }
|
||||
//#endif
|
||||
// if (initFormSettings.Remember)
|
||||
// Thread.Sleep(500);
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// if(initFormSettings.Remember && isChangeType == false)
|
||||
// {
|
||||
// OpenNewMainForm();
|
||||
// }
|
||||
// }));
|
||||
// });
|
||||
//#if DEBUG
|
||||
// Thread.Sleep(2500);
|
||||
//#else
|
||||
// if (File.Exists(System.Environment.CurrentDirectory + "\\YkdChoice.dll"))
|
||||
// {
|
||||
// Thread.Sleep(2500);
|
||||
// }
|
||||
//#endif
|
||||
// if (initFormSettings.Remember)
|
||||
// Thread.Sleep(500);
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// if(initFormSettings.Remember && isChangeType == false)
|
||||
// {
|
||||
// OpenNewMainForm();
|
||||
// }
|
||||
// }));
|
||||
// });
|
||||
}
|
||||
|
||||
bool isOpen = false;
|
||||
|
||||
Reference in new issue
Block a user