/// <summary> /// 窗口退出关闭 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainView_FormClosed(object sender, FormClosedEventArgs e) { IO_Monitor_Timer.Dispose(); //状态监视定时器释放 LW_Refresh_Timer.Dispose(); //激光功率检测定时器关闭 Axis_Handle_Timer.Dispose(); //轴手动操作定时器关闭 Program.SystemContainer.IO.ClearShieldBeepTimer.Dispose(); //蜂鸣器屏蔽取消 if (Program.SystemContainer.SysPara.CamEn) { Program.SystemContainer.T_Client.Send_Data(30); //关闭摄像头软件 } OperatePara.SaveParaXml("Para", Program.SystemContainer.SysPara); Program.SystemContainer.Save_Scissor_Para(); Program.SystemContainer.Save_Material_Storage();//保存材料库 Program.SystemContainer.TimerOFF(); }
/// <summary> /// 系统参数保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SysParaSave_Click(object sender, EventArgs e) { OperatePara.SaveParaXml("Para", Program.SystemContainer.SysPara); }