private void btnmyCollective_Click(object sender, EventArgs e) { if (Globals.myCollective != null) { CollectiveInfo opencollectiveInfo = new CollectiveInfo(0, 1); opencollectiveInfo.Show(); } else { MessageBox.Show("You are not currently in a collective.", "No Collective", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Collectives_Click(object sender, EventArgs e) { CollectiveInfo opencollectiveInfo = new CollectiveInfo(collectivePictureList.IndexOf((PictureBox)sender), 0); opencollectiveInfo.Show(); }