private void btnCavebot_Click(object sender, EventArgs e) { if (formCavebot == null) formCavebot = new Cavebot(Client); formCavebot.StartPosition = FormStartPosition.Manual; formCavebot.Location = new Point(this.Location.X + 20, this.Location.Y + 20); if (!formCavebot.Visible) formCavebot.Show(); else formCavebot.Activate(); }
private void MainHub_Shown(object sender, EventArgs e) { this.Client.CloseWhenClientCloses = true; // instantiate modules formCavebot = new Cavebot(this.Client); formHealer = new Healer(this.Client); formHotkeys = new Hotkeys(this.Client); formInformation = new Information(this.Client); formPvP = new PvP(this.Client); formScripter = new Scripter(this.Client); }
private void btnCavebot_Click(object sender, EventArgs e) { if (formCavebot == null) { formCavebot = new Cavebot(Client); } formCavebot.StartPosition = FormStartPosition.Manual; formCavebot.Location = new Point(this.Location.X + 20, this.Location.Y + 20); if (!formCavebot.Visible) { formCavebot.Show(); } else { formCavebot.Activate(); } }