Files
KJD_WebService/TEMUKJD/ChangeForm.cs
T

117 lines
3.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase;
//using TemuKJD.ChatForms;
//using TemuKJD.DashBoardForms;
using TemuKJD.KJDForms.BaseForms;
using Work;
namespace TemuKJD
{
public partial class ChangeForm : LRBaseForm
{
public MainForm mf;
public ChangeForm()
{
InitializeComponent();
}
private void panel1_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = "TaobaoLoginer.exe";
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
p.StartInfo.UseShellExecute = true;
p.StartInfo.Verb = "runas";
p.Start();
Process.GetCurrentProcess().Kill();
}
private void panel2_Click(object sender, EventArgs e)
{
mf.WindowState = FormWindowState.Maximized;
mf.Show();
mf.SetTitle();
mf.ShowTaobaoLoginAndInitModule();
Hide();
}
private void panel3_Click(object sender, EventArgs e)
{
try
{
Process p = new Process();
p.StartInfo.FileName = "FindLittleRabbitOrder.exe";
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
p.StartInfo.UseShellExecute = true;
p.StartInfo.Verb = "runas";
p.Start();
Process.GetCurrentProcess().Kill();
}
catch
{
BaseMsgForm.ShowInfo("未找到拍单王启动文件");
}
}
private void panel4_Click(object sender, EventArgs e)
{
string url = "http://oa.qixiaoke.com/?obj=public/jump_login&url=order&" + UserLogin.GetSignaturex();
GetHtml.OpenUrl(url);
}
private void ChangeForm_FormClosed(object sender, FormClosedEventArgs e)
{
Process.GetCurrentProcess().Kill();
}
private void ChangeForm_Load(object sender, EventArgs e)
{
TitleText = "功能选择 - " + BaseClass.ToolName;
if (BaseClass.Ico != null)
{
Iconx = BaseClass.Ico;
Icon = BaseClass.Ico;
}
mf.Hide();
Text += " - " + BaseClass.ToolName;
pnlExtend.Visible = BaseClass.DarenYaoyue;
//直接登录上货工具
Task.Run(() =>
{
System.Threading.Thread.Sleep(100);
Invoke(new Action(() =>
{
panel2_Click(this.panel2, null);
}));
});
}
private void pnlChat_Click(object sender, EventArgs e)
{
//ChatForm cf = new ChatForm();
//cf.Show();
//cf.SetTitle();
//Hide();
}
private void pnlExtend_Click(object sender, EventArgs e)
{
//DashBoardForm df = new DashBoardForm();
//df.Show();
////df.SetTitle();
//Hide();
}
}
}