public UserControl_System(SystemObj system, HazMap parenthazmapform, Canvasdata canvasdata) { InitializeComponent(); this.system = system; //updateloc(canvasdata); this.parenthazmapform = parenthazmapform; this.textBox_sysnotes.Text = system.notes; this.canvasdata = canvasdata; //system.usrctrl = this; //this.Location = canvasdata.sub(canvasdata.canvasLocation(system.maploc), offset); location(); this.Size = this.MinimumSize; setminsize(); label_SysName.Text = system.name; if (showname) { label_SysName.Enabled = true; } else { label_SysName.Enabled = false; } }
public void location(Canvasdata canvasdata) { this.canvasdata = canvasdata; location(); }
public void canvasupdate() { canvasdata = new Canvasdata(1, pictureBox1.Width, pictureBox1.Height, canvasloc); }
public HazMap() { InitializeComponent(); canvasloc = new Point((pictureBox1.Width / 2) * -1, pictureBox1.Height / 2); canvasdata = new Canvasdata(1, pictureBox1.Width, pictureBox1.Height, canvasloc); }