123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746 |
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSIncAMeasureApp
- {
- public class OTSDelegateEventFun
- {
- OTSIncAMeasureAppForm m_MeasureAppForm = null; //MeasureAPP对象
- public OTSDelegateEventFun(OTSIncAMeasureAppForm MeasureAppForm)
- {
- m_MeasureAppForm = MeasureAppForm;
- }
- /*****************************************************************
- *
- * MeasureApp 和 SampleSpaceWindow 样品台数据交互委托事件
- *
- *****************************************************************/
- public delegate void DSStageDataEventHandler(OTSSampleStageData SStageData); // MeasureApp和 SampleSpaceWindow 交互样品台数据委托
- public event DSStageDataEventHandler DSMeasureAppDataToSampleWindowEvent; // MeasureApp给SampleSpaceWindow窗口发送样品台数据
- //MeasureApp和 SampleSpaceWindow 添加样品事件委托
- //string sSampleHoleName: 新添加样品所在的样品孔名称
- public delegate void DAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler(string sSampleHoleName); //MeasureApp 和 SampleSpaceWindow 添加样品事件委托
- // public event DAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler DAddSample_MeasureAppToSampleWindow_Event;
- public event DAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler DAddSample_SampleWindowToMeasureApp_Event; //SampleSpaceWindow 向MeasureApp 请求添加样品
-
- //MeasureApp和 SampleSpaceWindow 删除样品事件委托
- //string sSampleHoleName: 删除工作样品
- // string sNewWSampleName: 新的工作样品
- public delegate void DDeleteWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler(string sDeleteWSampleName, string sNewWSampleName); //MeasureApp 和 SampleSpaceWindow 删除样品事件委托
- public event DDeleteWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler DDeleteWorkSample_MeasureAppToSampleWindow_Event;
- // public event DDeleteWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler DDeleteWorkSample_SampleWindowToMeasureApp_Event; //SampleSpaceWindow 向MeasureApp 请求删除样品
- //MeasureApp和 SampleSpaceWindow 修改工作样品名称事件委托
- //string sNewWSampleName: 修改工作样品名称
- public delegate void DChangeWorkSampleName_MeasureAppWithSampleSpaceWindow_EventHandler(string sNewWSampleName); //MeasureApp 和 SampleSpaceWindow 修改工作样品名称事件委托
- public event DChangeWorkSampleName_MeasureAppWithSampleSpaceWindow_EventHandler DChangeWorkSampleName_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 切换工作样品名称事件委托
- //string sNewWSampleName: 切换新工作样品名称
- //bool bDrawField : (打开工作样品文件)样品测量时,样品台上的样品需要重新绘制FIELD 图
- public delegate void DSwitchWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler(string sNewWSampleName,bool bDrawField=false); //MeasureApp 和 SampleSpaceWindow 切换工作样品名称事件委托
- public event DSwitchWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler DSwitchWorkSample_MeasureAppToSampleWindow_Event; //MeasureApp 向 SampleSpaceWindow 发送样品台切换事件
- public event DSwitchWorkSample_MeasureAppWithSampleSpaceWindow_EventHandler DSwitchWorkSample_SampleWindowToMeasureApp_Event; //SampleSpaceWindow 向 MeasureApp 发送样品台切换事件
- //MeasureApp和 SampleSpaceWindow 添加样品事件委托返回
- //SampleMeasurePara SMeasurePara 样品参数
- public delegate void DRevAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler(SampleMeasurePara SMeasurePara); //MeasureApp 和 SampleSpaceWindow 添加样品事件委托返回
- public event DRevAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler DRevAddSample_MeasureAppToSampleWindow_Event; //MeasureApp 向 SampleSpaceWindow 返回添加样品信息
- // public event DRevAddNewSample_MeasureAppWithSampleSpaceWindow_EventHandler DRevAddSample_SampleWindowToMeasureApp_Event;
- //当SampleSpaceWindow 获取电镜参数时,SampleSpaceWindow给MeasureApp发送事件通知MEASUREP更新SEM电镜工作参数参数
- public delegate void DUpdateSEMData_MeasureAppWithSampleSpaceWindow_EventHandler();
- public event DUpdateSEMData_MeasureAppWithSampleSpaceWindow_EventHandler DUpdateSEMData_SampleWindowToMeasureApp_Event;
- //当修改了GRID 的样品台测量精度、放大倍数和图片像素大小 时,SAMPLEWINDOW重新绘制样品台
- public delegate void DDrawSampleStage_EventHandler();
- public event DDrawSampleStage_EventHandler DDDrawSampleStage_EventHandler_Event;
- public void Send_DrawSampleStage_Event_Fun()
- {
- if (null != DDDrawSampleStage_EventHandler_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_DDrawSampleStage_Event_Fun) Send_DDrawSampleStage_Event_Fun Success");
- DDDrawSampleStage_EventHandler_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_DDrawSampleStage_Event_Fun) Send_DDrawSampleStage_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- // OTSSampleStageData SStageData: 样品台信息
- //List<SampleMeasurePara> SMeasrueAreaList : 样品信息
- //string sWorkSampleName
- public delegate void DOpenExistSampleFile_MeasureAppWithSampleSpaceWindow_EventHandler(OTSSampleStageData SStageData, List<SampleMeasurePara> SMeasrueAreaList, string sWorkSampleName); ////MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- public event DOpenExistSampleFile_MeasureAppWithSampleSpaceWindow_EventHandler DOpenExistSampleFile_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- public delegate void DRunThread_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 启动线程委托
- public event DRunThread_MeasureAppToSampleWindow_EventHandler DRunThread_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- public delegate void DStopThread_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 停止线程委托
- public event DStopThread_MeasureAppToSampleWindow_EventHandler DStopThread_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- public delegate void DCheckSampleParam_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 检测委托
- public event DCheckSampleParam_MeasureAppToSampleWindow_EventHandler DCheckSampleParam_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 将测量区域复位
- public delegate void DResetMeasure_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 测量区域复位
- public event DResetMeasure_MeasureAppToSampleWindow_EventHandler DResetMeasure_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 绘制圆形测量区域
- public delegate void DDrawCirCleMeasure_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 测量区域复位
- public event DDrawCirCleMeasure_MeasureAppToSampleWindow_EventHandler DDrawCirCleMeasure_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 绘制矩形测量区域
- public delegate void DDrawRectangleMeasure_MeasureAppToSampleWindow_EventHandler(); // MeasureApp和 SampleSpaceWindow 测量区域复位
- public event DDrawRectangleMeasure_MeasureAppToSampleWindow_EventHandler DDrawRectangleMeasure_MeasureAppToSampleWindow_Event;
- //MeasureApp和 SampleSpaceWindow 添加打开样品文件事件委托
- // OTSSampleStageData SStageData: 样品台信息
- //List<SampleMeasurePara> SMeasrueAreaList : 样品信息
- //string sWorkSampleName
- public void Send_OpenExistSampleFile_MeasureAppToSampleWindow_Event_Fun(OTSSampleStageData SStageData, List<SampleMeasurePara> SMeasrueAreaList, string sWorkSampleName)
- {
- if (null != DOpenExistSampleFile_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_OpenExistSampleFile_MeasureAppToSampleWindow_Event_Fun) Send_OpenExistSampleFile_MeasureAppToSampleWindow_Event_Fun Success");
- DOpenExistSampleFile_MeasureAppToSampleWindow_Event(SStageData, SMeasrueAreaList, sWorkSampleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_OpenExistSampleFile_MeasureAppToSampleWindow_Event_Fun) Send_OpenExistSampleFile_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //当SampleSpaceWindow 获取电镜参数时,SampleSpaceWindow给MeasureApp发送事件通知MEASUREP更新电镜工作参数参数
- public void Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun() //Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun
- {
- if (null != DUpdateSEMData_SampleWindowToMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun) Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun Success");
- DUpdateSEMData_SampleWindowToMeasureApp_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun) Send_DUpdateSEMData_SampleWindowToMeasureApp_Event_Fun Failed");
- }
- }
- //MeasureApp 给SampleWindow窗口发送样品台数据
- // OTSSampleStageData StageData: 样品台数据
- public void SendMeasureAppStageDateToSampleWindow(OTSSampleStageData StageData)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DSMeasureAppDataToSampleWindowEvent)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendMeasureAppDateToSampleWindow) SendMeasureAppDateToSampleWindow Success");
- DSMeasureAppDataToSampleWindowEvent(StageData);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendMeasureAppDateToSampleWindow) SendMeasureAppDateToSampleWindow Failed");
- }
- }
- ///MeasureApp和 SampleSpaceWindow 切换工作样品名称事件委托
- ///string sNewWSampleName: 切换新工作样品名称
- public void Send_SwitchWorkSample_MeasureAppToSampleWindow_Event_Fun(string sNewWSampleName, bool bDrawField = false)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DSwitchWorkSample_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWorkSample_MeasureAppToSampleWindow_Event_Fun) Send_SwitchWorkSample_MeasureAppToSampleWindow_Event_Fun Success");
- DSwitchWorkSample_MeasureAppToSampleWindow_Event(sNewWSampleName,bDrawField);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWorkSample_MeasureAppToSampleWindow_Event_Fun) Send_SwitchWorkSample_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 切换工作样品名称事件委托
- //string sNewWSampleName: 切换新工作样品名称
-
- public void Send_SwitchWorkSample_SampleWindowToMeasureApp_Event_Fun(string sNewWSampleName, bool bDrawField = false)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DSwitchWorkSample_SampleWindowToMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWorkSample_SampleWindowToMeasureApp_Event_Fun) Send_SwitchWorkSample_SampleWindowToMeasureApp_Event_Fun Success");
- DSwitchWorkSample_SampleWindowToMeasureApp_Event(sNewWSampleName, bDrawField);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWorkSample_SampleWindowToMeasureApp_Event_Fun) Send_SwitchWorkSample_SampleWindowToMeasureApp_Event_Fun Failed");
- }
- }
- //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
- // SampleMeasurePara SMeasurePara : 新添加样品的测量区域
- public void Send_AddSample_MeasureAppToSampleWindow_Event_Fun(SampleMeasurePara SMeasurePara)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DRevAddSample_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSampleWindow_Event_Fun) Send_AddSample_MeasureAppToSampleWindow_Event_Fun Success");
- DRevAddSample_MeasureAppToSampleWindow_Event(SMeasurePara);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSampleWindow_Event_Fun) Send_AddSample_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 修改工作样品名称事件委托
- //string sSampleHoleName: 修改工作样品名称
- public void Send_ChangeWorkSampleName_MeasureAppToSampleWindow_Event_Fun(string sNewWSampleName)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DChangeWorkSampleName_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_ChangeWorkSampleName_MeasureAppToSampleWindow_Event_Fun) Send_ChangeWorkSampleName_MeasureAppToSampleWindow_Event_Fun Success");
- DChangeWorkSampleName_MeasureAppToSampleWindow_Event(sNewWSampleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_ChangeWorkSampleName_MeasureAppToSampleWindow_Event_Fun) Send_ChangeWorkSampleName_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //SampleWindow 给MeasureApp 窗口发送添加样品的样品孔数据
- //string sSampleHoleName: 新添加样品所在的样品孔名称
- public void Send_AddSample_SampleWindowToMeasureAPP_Event_Fun(string sSampleHoleName)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DAddSample_SampleWindowToMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SampleWindowToMeasureAPP_Event_Fun) Send_AddSample_SampleWindowToMeasureAPP_Event_Fun Success");
- DAddSample_SampleWindowToMeasureApp_Event(sSampleHoleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SampleWindowToMeasureAPP_Event_Fun) Send_AddSample_SampleWindowToMeasureAPP_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 删除样品事件委托
- //string sSampleHoleName: 删除工作样品名
- // string sNewWSampleName: 新的工作样品名
- public void Send_DeleteWorkSample_MeasureAppToSampleWindow_Event_Fun(string sDeleteWSampleName, string sNewWSampleName)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DDeleteWorkSample_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SampleWindowToMeasureAPP_Event_Fun) Send_AddSample_SampleWindowToMeasureAPP_Event_Fun Success");
- DDeleteWorkSample_MeasureAppToSampleWindow_Event(sDeleteWSampleName, sNewWSampleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SampleWindowToMeasureAPP_Event_Fun) Send_AddSample_SampleWindowToMeasureAPP_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 运行线程事件委托
- public void Send_RunThread_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DRunThread_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_RunThread_MeasureAppToSampleWindow_Event) Send_RunThread_MeasureAppToSampleWindow_Event_Fun Success");
- DRunThread_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_RunThread_MeasureAppToSampleWindow_Event_Fun) Send_RunThread_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 停止线程事件委托
- public void Send_StopThread_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DStopThread_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DStopThread_MeasureAppToSampleWindow_Event) Send_StopThread_MeasureAppToSampleWindow_Event_Fun Success");
- DStopThread_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_StopThread_MeasureAppToSampleWindow_Event_Fun) Send_StopThread_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 检查样品测量参数
- public void Send_CheckSampleParam_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DCheckSampleParam_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DCheckSampleParam_MeasureAppToSampleWindow_Event) Send_CheckSampleParam_MeasureAppToSampleWindow_Event_Fun Success");
- DCheckSampleParam_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_CheckSampleParam_MeasureAppToSampleWindow_Event_Fun) Send_CheckSampleParam_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- //MeasureApp和 SampleSpaceWindow 运行线程事件委托
- public void Send_ResetMeasure_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DResetMeasure_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_ResetMeasure_MeasureAppToSampleWindow_Event) Send_ResetMeasure_MeasureAppToSampleWindow_Event_Fun Success");
- DResetMeasure_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.Send_ResetMeasure_MeasureAppToSampleWindow_Event_Fun) Send_ResetMeasure_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- /* //MeasureApp和 SampleSpaceWindow 删除样品事件委托
- //string sSampleHoleName: 删除工作样品名
- public void Send_DeleteWorkSample_SampleWindowToMeasureAPP_Event_Fun(string sWSampleName)
- {
- // //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.SendStageDateToSampleSpaceWindow) SendEventStageDateToOTSSamplespaceWindow!");
- if (null != DDeleteWorkSample_SampleWindowToMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeleteWorkSample_SampleWindowToMeasureAPP_Event_Fun) Send_DeleteWorkSample_SampleWindowToMeasureAPP_Event_Fun Success");
- DDeleteWorkSample_SampleWindowToMeasureApp_Event(sWSampleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeleteWorkSample_SampleWindowToMeasureAPP_Event_Fun) Send_DeleteWorkSample_SampleWindowToMeasureAPP_Event_Fun Failed");
- }
- }
- */
- /*
- * OTSSamplespaceWindow 在指定样品孔上请求增加样品的流程:
- * 1. OTSSamplespaceWindow 发送增加样品请求信息事件给 OTSSolutionWindow
- * 2. OTSSolutionWindow发送将增加样品请求信息事件 转发给MasureAPP, MeasureAPP再将增加样品请求信息交给DataMgr
- * 3. DataMgr同意增加或者拒绝增加信息给MeasureApp,MeasureApp将DataMgr回复的信息通过事件给OTSSolutionWindow
- * 4. OTSSolutionWindow在将回复的信息通过事件给OTSSamplespaceWindow, OTSSamplespaceWindow 在样品孔上增加样品
- *
- */
- /**********************************************************************
- *
- * MeasureApp 和 SampleSpaceWindow 测量过程中交互测量数据委托事件
- *
- ***********************************************************************/
- public delegate void DSampleMeasureData_MeasureAppToSampleSpaceWindow_EventHandler(SMSR_RET_DATA SMsrData); //
- public event DSampleMeasureData_MeasureAppToSampleSpaceWindow_EventHandler DSampleMeasureData_MeasureAppToSampleWindow_Event;
- public void Send_DSampleMeasureData_MeasureAppToSampleWindow_Event_Fun(SMSR_RET_DATA SMsrData)
- {
- if (null != DSampleMeasureData_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DSampleMeasureData_MeasureAppToSampleWindow_Event) Send_DSampleMeasureData_MeasureAppToSampleWindow_Event_Fun Success");
- DSampleMeasureData_MeasureAppToSampleWindow_Event(SMsrData);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DSampleMeasureData_MeasureAppToSampleWindow_Event) Send_DSampleMeasureData_MeasureAppToSampleWindow_Event_Fun Failed");
- }
- }
- /**********************************************************************
- *
- * MeasureApp 和 OTSSolutionWindow 样品数据交互委托事件
- *
- **********************************************************************/
- // MeasureApp 和 OTSSolutionWindow 交互样品信息
- //SampleInfoList: MeasureApp获得样品列表后发送给OTSSolutionWindow;
- //sWorkSampleName : 工作样品名
- public delegate void DSSampleName_MeasureAppWithSoluWindow_EventHandler(List<OTSSampleMeaInfo> SampleInfoList,string sWorkSampleName); // MeasureApp 给 OTSSolutionWindow 发送样品信息
- public event DSSampleName_MeasureAppWithSoluWindow_EventHandler DSInfoName_MeasureAppToSoluWindow_Event; // MeasureApp 给 OTSSolutionWindow 发送样品信息
- // MeasureApp 和 OTSSolutionWindow 交互样品信息
- //List<CTreeSampleParam> TSampleParamList : //MeasureApp 给 SoluWindow 发送打开已存在的样品LIST (之前可能保存了多个样品)
- //CTreeSampleParam WorkSampleParam : 工作样品参数 (保存了多个样品,其中的一个是工作样品)
- public delegate void DOpenExistSampleFile_MeasureAppWithSoluWindow_EventHandler(List<CTreeSampleParam> TSampleParamList, CTreeSampleParam WorkSampleParam); // MeasureApp 给 OTSSolutionWindow 发送打开已保存的工作文件
- public event DOpenExistSampleFile_MeasureAppWithSoluWindow_EventHandler DOpenExistSampleFile_MeasureAppToSoluWindow_Event; // MeasureApp 给 OTSSolutionWindow 发送打开已保存的工作文件 事件
- // MeasureApp 和 OTSSolutionWindow 交互样品信息
- //CWorkSampleParam WSampleParam : //MeasureApp 给 SoluWindow 发送添加样品的样品信息
- public delegate void DAddSample_MeasureAppWithSoluWindow_EventHandler(CTreeSampleParam TSampleParam); // MeasureApp 给 OTSSolutionWindow 发送工作样品信息
- public event DAddSample_MeasureAppWithSoluWindow_EventHandler DSAddSample_MeasureAppToSoluWindow_Event; // MeasureApp 给 OTSSolutionWindow 发送工作样品信息
- //请求添加样品
- public delegate void DAddSample_SoluWindowReqMeasureApp_EventHandler(); // OTSSolutionWindow窗口给MeasureApp窗口添加样品请求
- public event DAddSample_SoluWindowReqMeasureApp_EventHandler DAddSample_SoluWindowReqMeasureApp_Event; //OTSSolutionWindow窗口给MeasureApp窗口添加样品请求
- //请求删除样品
- public delegate void DDeletSample_SoluWindowReqMeasureApp_EventHandler(string sDeletSName=""); // OTSSolutionWindow窗口给MeasureApp窗口删除样品请求
- public event DDeletSample_SoluWindowReqMeasureApp_EventHandler DDeletSample_SoluWindowReqMeasureApp_Event; //OTSSolutionWindow窗口给MeasureApp窗口删除样品请求
- public event DDeletSample_SoluWindowReqMeasureApp_EventHandler DDeletSample_SoluWindowRevMeasureApp_Event; //MeasureApp窗口给 OTSSolutionWindow 发送窗口删除样品回复
-
- //请求修改样品名称
- // string sSampleOldName : 样品名原名
- //string sSampleNewName : 样品名新名
- public delegate void DEditSample_SoluWindowReqMeasureApp_EventHandler(string sSampleOldName, string sSampleNewName); // OTSSolutionWindow窗口给MeasureApp窗口编辑样品名请求
- public event DEditSample_SoluWindowReqMeasureApp_EventHandler DEditEditSample_SoluWindowReqMeasureApp_Event; // OTSSolutionWindow 窗口给MeasureApp窗口编辑样品名请求
- public event DEditSample_SoluWindowReqMeasureApp_EventHandler DEditEditSample_SoluWindowRevMeasureApp_Event; // MeasureApp 窗口给 OTSSolutionWindow 窗口编辑样品名回复
-
-
- //切换当前工作样品
- //string sNewWorkSample : 新的工作样品名
- public delegate void DSwitchWSample_SoluWindowReqMeasureApp_EventHandler(string sNewWorkSample); // OTSSolutionWindow窗口给MeasureApp窗口发送改变工作样品请求
- public event DSwitchWSample_SoluWindowReqMeasureApp_EventHandler DSwitchWSample_SoluWindowReqMeasureApp_Event; // OTSSolutionWindow窗口给MeasureApp窗口发送改变工作样品请求
- public event DSwitchWSample_SoluWindowReqMeasureApp_EventHandler DSwitchWSample_SoluWindowRevMeasureApp_Event; // MeasureApp 窗口给 OTSSolutionWindow 窗口发送改变工作样品回复
- // 当Propwindw的switch状态发生变化后,对应的treeview的checkbox状态也发生变化
- //string sSampleName : 样品名; bool bCheckBoxStatu: 样品名对应的CheckBox发生变化的值(选中/不选中)
- public delegate void DChangeCheckBoxStatu_SoluWindowWithMeasureApp(string sSampleName, bool bCheckBoxStatu); // OTSSolutionWindow 窗口和 MeasureApp 窗口交互CheckBox 状态
- public event DChangeCheckBoxStatu_SoluWindowWithMeasureApp DCheckBoxStatu_MeasureAPPToSoluWindow_Event; //MeasureApp 给 OTSSolutionWindow 发送样品checkbox发生变化事件
- public event DChangeCheckBoxStatu_SoluWindowWithMeasureApp DCheckBoxStatu_SoluWindowToMeasureAPP_Event; //OTSSolutionWindow 给 MeasureApp 发送样品checkbox发生变化事件
- // 当TREEVIEW 样品数的样品顺序发生变化后,执行TREEVIEW树上的样品排序
- public delegate void DSSampleSortOrder_SoluWindowWithMeasureApp(); //
- public event DSSampleSortOrder_SoluWindowWithMeasureApp DSampleSortOrder_SoluWindowToMeasureAPP_Event; //
- // 当TREEVIEW 样品数的样品顺序发生变化后,执行TREEVIEW树上的样品排序
- public void Send_SampleSortOrder_SoluWindow_Event_Fun()
- {
- if (null != DSampleSortOrder_SoluWindowToMeasureAPP_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleSortOrder_SoluWindow_Event_Fun) Send_SampleSortOrder_SoluWindow_Event_Fun Success");
- DSampleSortOrder_SoluWindowToMeasureAPP_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleSortOrder_SoluWindow_Event_Fun) Send_SampleSortOrder_SoluWindow_Event_Fun Failed");
- }
-
- }
- // MeasureApp 和 OTSSolutionWindow 交互样品信息
- //List<CTreeSampleParam> TSampleParamList : //MeasureApp 给 SoluWindow 发送打开已存在的样品LIST (之前可能保存了多个样品)
- //CTreeSampleParam WorkSampleParam : 工作样品参数 (保存了多个样品,其中的一个是工作样品)
- public void Send_OpenExistSampleFile_MeasureAppToSoluWindow_Event_Fun(List<CTreeSampleParam> TSampleParamList, CTreeSampleParam WorkSampleParam)
- {
- if (null != DOpenExistSampleFile_MeasureAppToSoluWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSoluWindow_Event_Fun) Send_AddSample_MeasureAppToSoluWindow_Event_Fun Success");
- DOpenExistSampleFile_MeasureAppToSoluWindow_Event(TSampleParamList,WorkSampleParam);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSoluWindow_Event_Fun) Send_AddSample_MeasureAppToSoluWindow_Event_Fun Failed");
- }
- }
- // MeasureApp 和 OTSSolutionWindow 交互样品信息
- //CWorkSampleParam WSampleParam : //MeasureApp 给 SoluWindow 发送添加样品的样品信息
- public void Send_AddSample_MeasureAppToSoluWindow_Event_Fun(CTreeSampleParam TSampleParam)
- {
- if (null != DSAddSample_MeasureAppToSoluWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSoluWindow_Event_Fun) Send_AddSample_MeasureAppToSoluWindow_Event_Fun Success");
- DSAddSample_MeasureAppToSoluWindow_Event(TSampleParam);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_MeasureAppToSoluWindow_Event_Fun) Send_AddSample_MeasureAppToSoluWindow_Event_Fun Failed");
- }
- }
- /* // 当TREEVIEW 样品数的样品顺序发生变化后,Solution 需要将新的样品顺序发送给MeasureApp
- //SampleInfoList: 样品新的排列顺序;
- public void Send_SampleNewPosition_SoluWindowToMeasureAPP_Event_Fun(List<OTSSampleMeaInfo> SampleInfoList)
- {
- if (null != DSNewPostion_SoluWindowToMeasureAPP_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleNewPosition_SoluWindowToMeasureAPP_Event_Fun) Send_SampleNewPosition_SoluWindowToMeasureAPP_Event_Fun Success");
- DSNewPostion_SoluWindowToMeasureAPP_Event(SampleInfoList);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleNewPosition_SoluWindowToMeasureAPP_Event_Fun) Send_SampleNewPosition_SoluWindowToMeasureAPP_Event_Fun Failed");
- }
- }*/
- //MeasureApp 给 OTSSolutionWindow 发送样品checkbox发生变化事件
- //string sSampleName : 样品名; bool bCheckBoxStatu: 样品名对应的CheckBox发生变化的值(选中/不选中)
- public void Send_CheckBoxStatu_MeasureAPPToSoluWindow_Event_Fun(string sSampleName, bool bCheckBoxStatu)
- {
- if (null != DCheckBoxStatu_MeasureAPPToSoluWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_CheckBoxStatu_MeasureAPPToSoluWindow_Event_Fun) Send_CheckBoxStatu_MeasureAPPToSoluWindow_Event_Fun Success");
- DCheckBoxStatu_MeasureAPPToSoluWindow_Event(sSampleName, bCheckBoxStatu);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_CheckBoxStatu_MeasureAPPToSoluWindow_Event_Fun) Send_CheckBoxStatu_MeasureAPPToSoluWindow_Event_Fun Failed");
- }
- }
- //OTSSolutionWindow 给 MeasureApp 发送样品checkbox发生变化事件
- //string sSampleName : 样品名; bool bCheckBoxStatu: 样品名对应的CheckBox发生变化的值(选中/不选中)
- public void Send_CheckBoxStatu_SoluWindowToMeasureAPP_Event_Fun(string sSampleName, bool bCheckBoxStatu)
- {
- if (null != DCheckBoxStatu_SoluWindowToMeasureAPP_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_CheckBoxStatu_SoluWindowToMeasureAPP_Event_Fun) Send_CheckBoxStatu_SoluWindowToMeasureAPP_Event_Fun Success");
- DCheckBoxStatu_SoluWindowToMeasureAPP_Event(sSampleName, bCheckBoxStatu);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_CheckBoxStatu_SoluWindowToMeasureAPP_Event_Fun) Send_CheckBoxStatu_SoluWindowToMeasureAPP_Event_Fun Failed");
- }
- }
- // OTSSolutionWindow窗口给MeasureApp窗口发送切换工作样品请求
- // sNewWorkSample: 新工作样品名
- public void Send_SwithcWSample_SoluWindowReqMeasureApp_Event_Fun(string sNewWorkSample)
- {
- if (null != DSwitchWSample_SoluWindowReqMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwithcWSample_SoluWindowReqMeasureApp_Event_Fun) Send_SwithcWSample_SoluWindowReqMeasureApp_Event_Fun Success");
- DSwitchWSample_SoluWindowReqMeasureApp_Event(sNewWorkSample);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwithcWSample_SoluWindowReqMeasureApp_Event_Fun) Send_SwithcWSample_SoluWindowReqMeasureApp_Event_Fun Failed");
- }
- }
- // MeasureApp 窗口给 OTSSolutionWindow 窗口发送切换工作样品回复
- // sNewWorkSample: 新工作样品名
- public void Send_SwitchWSample_SoluWindowRevMeasureApp_Event_Fun(string sNewWorkSample)
- {
- if (null != DSwitchWSample_SoluWindowRevMeasureApp_Event)
- {
- ////m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWSample_SoluWindowRevMeasureApp_Event_Fun) Send_SwitchWSample_SoluWindowRevMeasureApp_Event_Fun Success");
- DSwitchWSample_SoluWindowRevMeasureApp_Event(sNewWorkSample);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SwitchWSample_SoluWindowRevMeasureApp_Event_Fun) Send_SwitchWSample_SoluWindowRevMeasureApp_Event_Fun Failed");
- }
- }
- // MeasureApp 窗口给 OTSSolutionWindow 窗口编辑样品名回复
- //sSampleNewName="" ,说明不允许修改样品名
- public void Send_EditSample_SoluWindowRevMeasureApp_Event_Fun(string sSampleOldName, string sSampleNewName="")
- {
- if (null != DEditEditSample_SoluWindowRevMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_EditSample_SoluWindowRevMeasureApp_Event_Fun) Send_EditSample_SoluWindowRevMeasureApp_Event_Fun Success");
- DEditEditSample_SoluWindowRevMeasureApp_Event(sSampleOldName, sSampleNewName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_EditSample_SoluWindowRevMeasureApp_Event_Fun) Send_EditSample_SoluWindowRevMeasureApp_Event_Fun Failed");
- }
- }
-
- // OTSSolutionWindow窗口给MeasureApp窗口编辑样品名请求
- public void Send_EditSample_SoluWindowReqMeasureApp_Event_Fun(string sSampleOldName, string sSampleNewName)
- {
- if (null != DEditEditSample_SoluWindowReqMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_EditSample_SoluWindowReqMeasureApp_Event_Fun) Send_EditSample_SoluWindowReqMeasureApp_Event_Fun Success");
- DEditEditSample_SoluWindowReqMeasureApp_Event(sSampleOldName, sSampleNewName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_EditSample_SoluWindowReqMeasureApp_Event_Fun) Send_EditSample_SoluWindowReqMeasureApp_Event_Fun Failed");
- }
- }
- //MeasureApp 给 OTSSolutionWindow 发送样品信息
- //SampleInfoList: MeasureApp获得样品列表后发送给OTSSolutionWindow;
- //sWorkSampleName : 工作样品名
- public void Send_SampleName_MeasureAppToSoluWindow_Event_Fun(List<OTSSampleMeaInfo> SampleInfoList, string sWorkSampleName)
- {
- if (null != DSInfoName_MeasureAppToSoluWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleName_MeasureAppToSoluWindow_Event_Fun) Send_SampleName_MeasureAppToSoluWindow_Event_Fun Success");
- DSInfoName_MeasureAppToSoluWindow_Event(SampleInfoList,sWorkSampleName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleName_MeasureAppToSoluWindow_Event_Fun) Send_SampleName_MeasureAppToSoluWindow_Event_Fun Failed");
- }
- }
- //OTSSolutionWindow窗口给MeasureApp窗口添加样品请求
- public void Send_AddSample_SoluWindowReqMeasureApp_Event_Fun()
- {
- if (null != DAddSample_SoluWindowReqMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SoluWindowReqMeasureApp_Event_Fun) Send_AddSample_SoluWindowReqMeasureApp_Event_Fun Success");
- DAddSample_SoluWindowReqMeasureApp_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_AddSample_SoluWindowReqMeasureApp_Event_Fun) Send_AddSample_SoluWindowReqMeasureApp_Event_Fun Failed");
- }
- }
- //OTSSolutionWindow窗口给MeasureApp窗口删除样品请求
- public void Send_DeletSample_SoluWindowReqMeasureApp_Event_Fun(string sDeletSName)
- {
- if (null != DDeletSample_SoluWindowReqMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeletSample_SoluWindowReqMeasureApp_Event_Fun) Send_DeletSample_SoluWindowReqMeasureApp_Event_Fun Success");
- DDeletSample_SoluWindowReqMeasureApp_Event(sDeletSName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeletSample_SoluWindowReqMeasureApp_Event_Fun) Send_DeletSample_SoluWindowReqMeasureApp_Event_Fun Failed");
- }
- }
- //MeasureApp窗口给 OTSSolutionWindow 发送窗口删除样品回复
- public void Send_DeletSample_SoluWindowRevMeasureApp_Event_Fun(string sDeletSName = "")
- {
- if (null != DDeletSample_SoluWindowRevMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeletSample_SoluWindowRevMeasureApp_Event_Fun) Send_DeletSample_SoluWindowRevMeasureApp_Event_Fun Success");
- DDeletSample_SoluWindowRevMeasureApp_Event(sDeletSName);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_DeletSample_SoluWindowRevMeasureApp_Event_Fun) Send_DeletSample_SoluWindowRevMeasureApp_Event_Fun Failed");
- }
- }
- /**********************************************************************
- *
- * MeasureApp 和 OTSPropertyWindow 样品属性数据交互委托事件
- *
- **********************************************************************/
- //OTS_SAMPLE_PROP_GRID_ITEMS SampleId: 被修改的当前工作样品属性值的ID。
- //object ObjVal:被修改的当前工作样品属性值
- public delegate void DSampleInfo_MeasureAppWithPropWindow_EventHandler(OTSSampleMeaInfo SampleInfo); // MeasureApp 和OTSPropertyWindow 交互样品属性数据(Grid 显示样品属性数据)
- public delegate void DWSampleInfo_MeasureAppWithPropWindow_EventHandler(OTS_SAMPLE_PROP_GRID_ITEMS SampleId, OTS_ITEM_TYPES ValType, object ObjVal, bool bCheckBoxFlag = false); // MeasureApp 和 OTSPropertyWindow 交互样品属性数据(Grid 显示样品属性数据)
- public event DSampleInfo_MeasureAppWithPropWindow_EventHandler DSInfo_MeasureAppToPropWindow_Event; // MeasureApp 窗口给 OTSPropertyWindow窗口 Grid显示的样品属性信息
- public event DWSampleInfo_MeasureAppWithPropWindow_EventHandler DWSInfo__PropWindowReqMeasureApp_Event; // OTSPropertyWindow 给 MeasureApp 窗口改动的工作样品Grid的样品属性信息请求
- public event DWSampleInfo_MeasureAppWithPropWindow_EventHandler DWSInfo__PropWindowRevMeasureApp_Event; // MeasureApp 给 OTSPropertyWindow 窗口改动的工作样品Grid的样品属性信息回复
-
- // MeasureApp 窗口给 OTSPropertyWindow窗口 Grid显示的样品属性信息
- public void Send_SampleInfo_MeasureAppToPropWindow_Event_Fun(OTSSampleMeaInfo SampleInfo)
- {
- if (null != DSInfo_MeasureAppToPropWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleInfo_MeasureAppToPropWindow_Event_Fun) Send_SampleInfo_MeasureAppToPropWindow_Event_Fun Success");
- DSInfo_MeasureAppToPropWindow_Event(SampleInfo);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_SampleInfo_MeasureAppToPropWindow_Event_Fun) Send_SampleInfo_MeasureAppToPropWindow_Event_Fun Failed");
- }
- }
- // OTSPropertyWindow 给 MeasureApp 窗口发送改动的Grid的当前工作样品属性信息请求
- public void Send_WSampleInfo_PropWindowReqMeasureApp_Event_Fun(OTS_SAMPLE_PROP_GRID_ITEMS SampleId, OTS_ITEM_TYPES ValType, object ObjVal, bool bCheckBoxFlag = false)
- {
- if (null != DWSInfo__PropWindowReqMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_WSampleInfo_PropWindowReqMeasureApp_Event_Fun) Send_WSampleInfo_PropWindowReqMeasureApp_Event_Fun Success");
- DWSInfo__PropWindowReqMeasureApp_Event(SampleId, ValType, ObjVal, bCheckBoxFlag);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_WSampleInfo_PropWindowReqMeasureApp_Event_Fun) Send_WSampleInfo_PropWindowReqMeasureApp_Event_Fun Failed");
- }
- }
- // MeasureApp 给 OTSPropertyWindow 窗口改动的工作样品Grid的样品属性信息回复
- public void Send_WSampleInfo_PropWindowRevMeasureApp_Event_Fun(OTS_SAMPLE_PROP_GRID_ITEMS SampleId, OTS_ITEM_TYPES ValType, object ObjVal, bool bCheckBoxFlag = false)
- {
- if (null != DWSInfo__PropWindowRevMeasureApp_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_WSampleInfo_PropWindowRevMeasureApp_Event_Fun) Send_WSampleInfo_PropWindowRevMeasureApp_Event_Fun Success");
- DWSInfo__PropWindowRevMeasureApp_Event(SampleId, ValType, ObjVal, bCheckBoxFlag);
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog(" (OTSDelegateEventFun.Send_WSampleInfo_PropWindowRevMeasureApp_Event_Fun) Send_WSampleInfo_PropWindowRevMeasureApp_Event_Fun Failed");
- }
- }
- //手动绘制圆形测量区域
- public void Send_DrawCircleMeasure_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DDrawCirCleMeasure_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DDrawCirCleMeasure_MeasureAppToSampleWindow_Event) DDrawCirCleMeasure_MeasureAppToSampleWindow_Event Success");
- DDrawCirCleMeasure_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DDrawCirCleMeasure_MeasureAppToSampleWindow_Event) DDrawCirCleMeasure_MeasureAppToSampleWindow_Event Failed");
- }
- }
- //手动绘制矩形测量区域
- public void Send_DrawRectangleMeasure_MeasureAppToSampleWindow_Event_Fun()
- {
- if (null != DDrawRectangleMeasure_MeasureAppToSampleWindow_Event)
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DDrawRectangleMeasure_MeasureAppToSampleWindow_Event) DDrawRectangleMeasure_MeasureAppToSampleWindow_Event Success");
- DDrawRectangleMeasure_MeasureAppToSampleWindow_Event();
- }
- else
- {
- //m_MeasureAppForm.m_LogFunExport.TraceLog("(OTSDelegateEventFun.DDrawRectangleMeasure_MeasureAppToSampleWindow_Event) DDrawRectangleMeasure_MeasureAppToSampleWindow_Event Failed");
- }
- }
- }
- }
|