Files
KJD_WebService/TEMUKJD/ChangeForm.cs
T
2025-06-29 19:38:31 +08:00

106 lines
3.0 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 LittleRabbit.ChatForms;
using LittleRabbit.DashBoardForms;
using LittleRabbit.LittleRabbitForms.BaseForms;
using Work;
namespace LittleRabbit
{
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.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;
}
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();
}
}
}