コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public void location(Canvasdata canvasdata)
 {
     this.canvasdata = canvasdata;
     location();
 }
コード例 #3
0
ファイル: HazMap.cs プロジェクト: Deantwo/HazeronMapper
 public void canvasupdate()
 {
     canvasdata = new Canvasdata(1, pictureBox1.Width, pictureBox1.Height, canvasloc);
 }
コード例 #4
0
ファイル: HazMap.cs プロジェクト: Deantwo/HazeronMapper
 public HazMap()
 {
     InitializeComponent();
     canvasloc = new Point((pictureBox1.Width / 2) * -1, pictureBox1.Height / 2);
     canvasdata = new Canvasdata(1, pictureBox1.Width, pictureBox1.Height, canvasloc);
 }