📄 glidertoebot.cs
字号:
namespace WoWBot
{
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using WoWBot.My;
[DesignerGenerated]
public class GliderTOeBot : Form
{
private IContainer b;
[AccessedThroughProperty("Button3")]
private Button b;
[AccessedThroughProperty("Button2")]
private Button b;
[AccessedThroughProperty("Button1")]
private Button b;
[AccessedThroughProperty("Label1")]
private Label b;
[AccessedThroughProperty("OpenFileDialog1")]
private OpenFileDialog b;
[AccessedThroughProperty("Log")]
private TextBox b;
[AccessedThroughProperty("Path")]
private TextBox b;
[DebuggerNonUserCode]
public GliderTOeBot()
{
this.a();
}
[DebuggerStepThrough]
private void a()
{
this.Path = new TextBox();
this.Button1 = new Button();
this.Label1 = new Label();
this.Button2 = new Button();
this.Log = new TextBox();
this.OpenFileDialog1 = new OpenFileDialog();
this.Button3 = new Button();
this.SuspendLayout();
Point point = new Point(0x6a, 12);
this.Path.Location = point;
this.Path.Name = "Path";
Size size = new Size(0xab, 20);
this.Path.Size = size;
this.Path.TabIndex = 0;
point = new Point(0x11b, 10);
this.Button1.Location = point;
this.Button1.Name = "Button1";
size = new Size(0x4b, 0x17);
this.Button1.Size = size;
this.Button1.TabIndex = 1;
this.Button1.Text = "Parcourir ...";
this.Button1.UseVisualStyleBackColor = true;
this.Label1.AutoSize = true;
point = new Point(12, 15);
this.Label1.Location = point;
this.Label1.Name = "Label1";
size = new Size(0x5d, 13);
this.Label1.Size = size;
this.Label1.TabIndex = 2;
this.Label1.Text = "Votre profil Glider :";
point = new Point(12, 0x26);
this.Button2.Location = point;
this.Button2.Name = "Button2";
size = new Size(170, 0x17);
this.Button2.Size = size;
this.Button2.TabIndex = 3;
this.Button2.Text = "Convertir";
this.Button2.UseVisualStyleBackColor = true;
point = new Point(12, 0x44);
this.Log.Location = point;
this.Log.Multiline = true;
this.Log.Name = "Log";
this.Log.ReadOnly = true;
size = new Size(0x15a, 0x4e);
this.Log.Size = size;
this.Log.TabIndex = 4;
this.OpenFileDialog1.FileName = "OpenFileDialog1";
point = new Point(0xbc, 0x26);
this.Button3.Location = point;
this.Button3.Name = "Button3";
size = new Size(170, 0x17);
this.Button3.Size = size;
this.Button3.TabIndex = 5;
this.Button3.Text = "Fermer";
this.Button3.UseVisualStyleBackColor = true;
SizeF ef = new SizeF(6f, 13f);
this.AutoScaleDimensions = ef;
this.AutoScaleMode = AutoScaleMode.Font;
size = new Size(0x16f, 0x9a);
this.ClientSize = size;
this.Controls.Add(this.Button3);
this.Controls.Add(this.Log);
this.Controls.Add(this.Button2);
this.Controls.Add(this.Label1);
this.Controls.Add(this.Button1);
this.Controls.Add(this.Path);
this.Name = "GliderTOeBot";
this.Text = "Glider -> eBot";
this.ResumeLayout(false);
this.PerformLayout();
}
private void a(object b, EventArgs b)
{
this.OpenFileDialog1.ShowDialog();
try
{
this.Path.Text = this.OpenFileDialog1.FileName;
this.Log.AppendText("Profil trouv\x00e9 !\r\n");
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.Log.AppendText("Profil introuvable ...\r\n");
ProjectData.ClearProjectError();
}
}
private void b(object b, EventArgs b)
{
this.Visible = false;
}
private void c(object b, EventArgs b)
{
StreamReader reader2 = new StreamReader(this.Path.Text);
StreamReader reader = new StreamReader(Application.StartupPath + @"\Config\Language.ini");
string str3 = reader.ReadLine();
reader.Close();
string str2 = reader2.ReadToEnd();
reader2.Close();
this.Log.AppendText("Convertion du profils ...\r\n");
string str = func.Post_request("http://www.ebot-france.com/post/xml.php", "pass=123znjeklhjk&xml=" + str2);
func.oldWait(100);
this.Log.AppendText("Traitements des donn\x00e9es ...\r\n");
if (str3 == "French")
{
str = str.Replace(".", ",");
}
func.oldWait(100);
this.Log.AppendText("Chargement du profil ...\r\n");
MyProject.Forms.Config.waypoint.Clear();
MyProject.Forms.Config.waypoint.Text = str;
func.oldWait(100);
this.Log.AppendText("Votre profil est charg\x00e9 dans eBot !\r\n");
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if (disposing && (this.b != null))
{
this.b.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
internal virtual Button Button1
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
EventHandler handler = new EventHandler(this.a);
if (this.b != null)
{
this.b.Click -= handler;
}
this.b = value;
if (this.b != null)
{
this.b.Click += handler;
}
}
}
internal virtual Button Button2
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
EventHandler handler = new EventHandler(this.c);
if (this.b != null)
{
this.b.Click -= handler;
}
this.b = value;
if (this.b != null)
{
this.b.Click += handler;
}
}
}
internal virtual Button Button3
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
EventHandler handler = new EventHandler(this.b);
if (this.b != null)
{
this.b.Click -= handler;
}
this.b = value;
if (this.b != null)
{
this.b.Click += handler;
}
}
}
internal virtual Label Label1
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this.b = value;
}
}
internal virtual TextBox Log
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this.b = value;
}
}
internal virtual OpenFileDialog OpenFileDialog1
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this.b = value;
}
}
internal virtual TextBox Path
{
[DebuggerNonUserCode]
get
{
return this.b;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this.b = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -