private void Form1_Load(object sender, EventArgs e)
{
DateTime now = DateAndTime.Now;
this.Text = this.Text + " - Patch " + this.Patch.Text;
this.Text = this.Text + " ~* Coded by Sedrika *~";
if ((!File.Exists(Application.StartupPath + @"\MonsterList.txt") & !File.Exists(Application.StartupPath + @"\ItemList.txt")) & !File.Exists(Application.StartupPath + @"\HonorList.txt"))
{
this.Time.Text = "Keine Resourcen zum laden gefunden.";
}
else
{
ToolStripLabel time = this.Time;
time.Text = time.Text + Strings.Format(DateAndTime.Now.Subtract(now).TotalSeconds, " 0.#### Sekunden.");
}
RegisterHotKey(this.Handle, 1, 0, 0x79);
this.pListe = new Teleport[(this.pmax - 1) + 1];
int num = this.pListe.Length - 1;
for (int i = 0; i <= num; i++)
{
this.pListe[i].MapName = string.Empty;
this.pListe[i].ID = string.Empty;
this.pListe[i].X = string.Empty;
this.pListe[i].Y = string.Empty;
this.pListe[i].Z = string.Empty;
}
this.readFile();
this.anzeigen();
if (File.Exists(Application.StartupPath + @"\MonsterList.txt"))
{
this.ReadMonsterList();
}
if (File.Exists(Application.StartupPath + @"\ItemList.txt"))
{
this.ReadItemList();
}
if (File.Exists(Application.StartupPath + @"\HonorList.txt"))
{
this.ReadHonorList();
}
if (File.Exists(Application.StartupPath + @"\Notizen.txt"))
{
ListView lv = this.ListView4;
this.OpenTextfile(ref lv);
this.ListView4 = lv;
}
}