public RefuellerPictureBox(ModelingForm modelingForm, RefuellerView refuellerView) { Tag = refuellerView; Image = Properties.Resources.refueler_30x35_; Location = DestinationPointsDefiner.RefuellerSpawnPoint; SizeMode = PictureBoxSizeMode.AutoSize; MouseClick += ClickEventProvider.RefuellerPictureBox_Click; modelingForm.PlaygroundPanel.Controls.Add(this); BringToFront(); }
public static RefuellerPictureBox CreateRefuellerPictureBox(RefuellerView refuellerView) { return(new RefuellerPictureBox(_modelingForm, refuellerView)); }