private void showBackpackToolStripMenuItem_Click(object sender, EventArgs e) { // Friend's backpack if (Properties.Settings.Default.NewBackpack) { ShowBackpackGrid showBP = new ShowBackpackGrid(bot, sid); showBP.Show(); showBP.Activate(); } else { ShowBackpack showBP = new ShowBackpack(bot, sid); showBP.Show(); showBP.Activate(); } }
private void showBackpackToolStripMenuItem_Click(object sender, EventArgs e) { // Friend's backpack ulong sid = Convert.ToUInt64(column_sid.GetValue(friends_list.SelectedItem.RowObject)); if (Properties.Settings.Default.NewBackpack) { ShowBackpackGrid showBP = new ShowBackpackGrid(bot, sid); showBP.Show(); showBP.Activate(); } else { ShowBackpack showBP = new ShowBackpack(bot, sid); showBP.Show(); showBP.Activate(); } }
private void showBackpackToolStripMenuItem1_Click(object sender, EventArgs e) { // Your backpack ulong sid = bot.SteamUser.SteamID; if (Properties.Settings.Default.NewBackpack) { ShowBackpackGrid showBP = new ShowBackpackGrid(bot, sid); showBP.Show(); showBP.Activate(); } else { ShowBackpack showBP = new ShowBackpack(bot, sid); showBP.Show(); showBP.Activate(); } }
private void button_ok_Click(object sender, EventArgs e) { if (text_profile.Text.Length < 17 || text_profile.Text == "" || Regex.IsMatch(text_profile.Text, "^[A-Za-z]$")) { MessageBox.Show("The SteamID64 is invalid. It must be 17 characters and cannot be blank or contain letters.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } else { ulong id = Convert.ToUInt64(text_profile.Text); this.Close(); var showBP = new ShowBackpackGrid(bot, id); showBP.Show(); showBP.Activate(); } }