private void RightSSPC_Click(object sender, EventArgs e) { if (dataMatrix2[3, 3] == 1) { RightGenForm RightSSPCForm = new RightGenForm(); RightSSPCForm.StartPosition = FormStartPosition.Manual; RightSSPCForm.Show(); } }
private void RightGen_Click(object sender, EventArgs e) { Point pos; RightGenForm RightGenForm = new RightGenForm(); RightGenForm.StartPosition = FormStartPosition.Manual; pos = MousePosition; pos.X += -300; pos.Y += -100; RightGenForm.Show(); }