private void timerUpdate_Tick(object sender, EventArgs e) { txtStatus.Text = Fishing.fishStatus.ToString() + ": " + Status.GetFishingStatus(Fishing.fishStatus).ToString(); if (Fishing.GetGP() != -1) { txtStatus.Text += " - " + Fishing.GetGP().ToString(); } }
private void Form1_Load(object sender, EventArgs e) { cmbCastKey.DataSource = Enum.GetValues(typeof(VK)); cmbHookKey.DataSource = Enum.GetValues(typeof(VK)); cmbReleaseKey.DataSource = Enum.GetValues(typeof(VK)); cmbChumKey.DataSource = Enum.GetValues(typeof(VK)); try { Fishing.Attach(); } catch { MessageBox.Show("Please run as Administrator."); SaveSettings(); System.Environment.Exit(1); } LoadSettings(); timerUpdate.Enabled = true; }