Exemple #1
0
 //点击清屏选项
 private void TSMI_Clear_Click(object sender, EventArgs e)
 {
     TestBoard.CleanScreen();
     TestBoard.StartCollectPoints();
     //测试绘图
     TestBoard.ShowString("Test_ GDI+ World.\nTest... GDI+ Word.", new Point(14, 10));
 }
Exemple #2
0
        public MainForm()
        {
            InitializeComponent();

            //实例化通信组件
            COM = new InterfaceToSlave(ref Datas);

            //挂靠用户数据引用
            COM.InitUserDatas(ref Datas);

            //初始化通信组件串口
            COM.InitSerialPort(ref SPort);

            //初始化测试绘图板
            TestBoard = new ShootBoard(ref groupBox1);

            //初始化采样点坐标处理委托
            Datas.SampleHandlerInit(new UserDatas.SampleDataHandlerTypedef(GetShootPoint));

            //初始化校准采样处理委托
            Datas.CorrectHandlerInit(new UserDatas.CorrectDataHandlerTypedef(CorrectScreen));

            //初始化控制请求处理委托
            Datas.CtrlHandlerInit(new UserDatas.CtrlHandlerTypedef(GetCtrlData));

            //测试绘图
            TestBoard.ShowString("Test_ GDI+ World.\nTest... GDI+ Word.", new Point(14, 10));

            //测试清除
            //TestBoard.ClearScreenPartialy(new Point(14, 10), 20, 60);
        }