public MyMap(PictureBox p, FormMapCopy formMap) { this.formMap = formMap; pictureBox = p; g = p.CreateGraphics(); pictureBox.MouseDown += pictureBox_MouseDown; pictureBox.MouseMove += pictureBox_MouseMove; pictureBox.Paint += pictureBox_Paint; pictureBox.Resize += pictureBox_Resize; }
public static FormMapCopy Instance(FormBot fb) { if (instanceFormMapCopy == null) instanceFormMapCopy = new FormMapCopy(fb); return instanceFormMapCopy; }