public KeyBoardForm() { InitializeComponent(); control = new Canvas2D.Controls.Control2D(); control.drawGameEventHandler += Control_DrawGame; point = new Canvas2D.Models.Point(new Vector2(0, 0)); texture = new Canvas2D.Models.Texture(@"../../../大软键盘.bmp"); control.Start(); Height = texture.ImageHeight; Width = texture.ImageWidth; }
public KeyBoardForm_2() { InitializeComponent(); control = new Canvas2D.Controls.Control_9Key( @"D:\RecentHomework\2017大创\temp\Innovation-of-college\MainForm\SubForms\9KeyPosition.xml"); control.drawGameEventHandler += Control_DrawGame; tex = new Canvas2D.Models.Texture(@"D:\RecentHomework\2017大创\temp\Innovation-of-college\新9格键盘.bmp"); Height = tex.ImageHeight; Width = tex.ImageWidth; mouseLocation = new Canvas2D.Models.Point(new Vector2(0, 0)); kiLocation = new Canvas2D.Models.Point(new Vector2(0, 0)); control.Start(); }