1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387 |
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Windows.Forms;
- using OTS.WinFormsUI.Docking;
- using System.Runtime.InteropServices;
- using System.Collections;
- using CefSharp;
- using OTSDataType;
- using OTSModelSharp;
- using OTSModelSharp.ResourceManage;
- using static OTSDataType.otsdataconst;
- using System.Diagnostics;
- using OTSModelSharp.ServiceInterface;
- using OTSMeasureApp._0_OTSModel.Measure.ParamData;
- using OTSCLRINTERFACE;
- using System.IO;
- using System.Management;
- using System.Xml;
- using System.Linq;
- using System.Text;
- using System.Runtime.Remoting.Channels.Ipc;
- using System.Runtime.Remoting.Channels;
- using System.Runtime.Remoting;
- using OTSMeasureApp.ServiceCenter;
- namespace OTSMeasureApp
- {
- public enum ShapeType
- {
- CIRCUL = 0, //圆形
- RECTANGLE = 1 //矩形
- };
-
- enum MessageBoxRev
- {
- DIALOG_YES = 0,
- DIALOG_NO = 1,
- DIALOG_CANCEL = 2
- }
- public partial class OTSIncAMeasureAppForm : Form
- {
- public static string m_SamplespaceWindowName = "样品台";
- public static string m_MeasureStauWindowName = "测量状态";
- public static string m_MeasureRetWindowName = "测量结果";
- public static string m_NoWindowName = "未知工作窗口";
- //国际化
- OTSCommon.Language lan;
- Hashtable table;
- public OTSRibbonFun m_RibbonFun = null;
- // 初始化日志类
- NLog.Logger log ;
- private PostLogMsg m_LogMsg;
- public const int MsgID = 0x0464;
- public const int LogMsgID = 0x0465;
- // Control m_ControlWindow = null;
- public OTSMeasureResultWindow m_MeasureRetWindow = null;
- public OTSMeasureStatusWindow m_MessureStatuWindow = null;
- public OTSSamplespaceWindow m_SamplepaceWindow = null;
- public OTSMeasureOutputNlog m_OTSMeasureOutputNlog = null;
-
-
- public COTSMeasureParam m_ProjParam = null;
- public COTSMsrPrjResultData m_ProjData;
- public OTSSolutionWindow m_SolutionWindows = null;
- public OTSPropertyWindow m_SPropertyWindows = null;
-
- //测量线程对象
- public CMeasureThreadWrapper m_MsrThreadWrapper = null;
-
-
- // 测量线程当前状态 True: 正在测量; False: 测量结束
- public bool MeasureThreadRunFlag { get => m_MsrThreadWrapper.BGWorkThreadIsRunning(); }
- public MSR_RUN_TYPE GetRunType()
- {
- return m_MsrThreadWrapper.GetDoRunType();
- }
- public void SetRunType(MSR_RUN_TYPE value)
- {
- m_MsrThreadWrapper.SetDoRunType(value);
- }
- public FileSystemWatcher fileWatcher = new FileSystemWatcher(Application.StartupPath+ @"\Config\SysData");
- public OTSIncAMeasureAppForm()
- {
- InitializeComponent();
- //国际化
- lan = new OTSCommon.Language(this);
- table = lan.GetNameTable(this.Name);
- m_SamplespaceWindowName = table["m_samplespacewindowname"].ToString();
- m_MeasureStauWindowName = table["m_measurestauwindowname"].ToString();
- m_MeasureRetWindowName = table["m_measureretwindowname"].ToString();
- m_NoWindowName = table["m_nowindowname"].ToString();
-
- m_OTSMeasureOutputNlog = new OTSMeasureOutputNlog();
- m_OTSMeasureOutputNlog.Show();
-
- // 初始化Docpanle
- m_SolutionWindows = new OTSSolutionWindow(this);
- m_SPropertyWindows = new OTSPropertyWindow(this);
- m_MeasureRetWindow = new OTSMeasureResultWindow(this);
- m_MeasureRetWindow.Text = m_MeasureRetWindowName;
- m_MessureStatuWindow = new OTSMeasureStatusWindow(this);
- m_MessureStatuWindow.Text = m_MeasureStauWindowName;
- m_SamplepaceWindow = new OTSSamplespaceWindow(this);
- m_SamplepaceWindow.Text = m_SamplespaceWindowName;
-
- //和DataMgr进行数据交互类
- m_ProjParam = new COTSMeasureParam(this);
- m_ProjData = m_ProjParam.GetResultData();
- //初始化Ribbon类,操作Ribbon按钮的可用或者不可用
- m_RibbonFun = new OTSRibbonFun(this);
- //初始化测量线程
- m_MsrThreadWrapper = new CMeasureThreadWrapper(this);//must be the last sentence of this procedure.
- fileWatcher.Changed += FileWatcher_Changed;
-
- fileWatcher.EnableRaisingEvents=true;
- }
- private void FileWatcher_Changed(object sender, FileSystemEventArgs e)
- {
- if (e.Name == "SpecialGrayConfig.xml")
- {
- m_ProjParam.SpecialRanges.IsInited = false;
- foreach (var s in this.m_ProjData.GetSampleList())
- {
- s.GetMsrParams().GetSpecialGrayRangeParam().IsInited = false;
- }
- }
- }
- private void OTSIncAMeasureAppForm_Load(object sender, EventArgs e)
- {
- try
- {
- ArrangWorkspaceWindow();
- log = NLog.LogManager.GetCurrentClassLogger();
-
- if (m_ProjParam.LoadParamFile() && m_ProjParam.LoadStageParamFile())
- {
- m_ProjParam.LoadSpecialGrayRangeParamFile();
-
- if (m_ProjParam.InitResultData())
- {
- m_RibbonFun.SetAllRibbonButnStatus(true);
-
- m_SamplepaceWindow.InitStageDisplay(m_ProjData.GetStage(),m_ProjData.GetSEMStageData());
- //添加启动系统界面显示
- if (m_ProjParam.GetDefaultParam().m_nPackId == OTS_SysType_ID.IncA)
- {
- this.Text += "(Inclusion)";
- }
- else if (m_ProjParam.GetDefaultParam().m_nPackId == OTS_SysType_ID.CleannessA)
- {
- this.Text += "(Cleanness)";
- }
- }
- else
- {
- log.Error(" InitResultData() failed");
- }
-
- }
- else
- {
- log.Error("(OTSIncAMeasureAppForm.OTSIncAMeasureAppForm_Load) (LoadParamFile() && LoadStageParamFile()) failed");
- }
-
- if (!m_MsrThreadWrapper.ConnectSEM())
- {
- MessageBox.Show("Connect SEM failed!Please goto the SysMgrApp.exe to setup the proper parameter or check other parameter of the EDS software");
- System.Diagnostics.ProcessStartInfo process = new System.Diagnostics.ProcessStartInfo();
- process.FileName = "OTSSysMgrApp.exe";//打开app的路径
-
- process.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
- System.Diagnostics.Process.Start(process);
- this.rbConnectHardware.Enabled = true;
- this.rbDisconnectHardware.Enabled = false;
-
- }
- this.rbConnectHardware.Enabled = false;
-
- this.rbDisconnectHardware.Enabled = true;
- log.Warn("SEM connect success!");
-
- PrepareIpcServer();
- log.Info("Ipc server start success!");
- //----------------------Test Code, Don't delete
- //var f = new BaseFunctionTest();
- //f.ShowDialog();
- //----------------------
- }
- catch (Exception ex)
- {
- log.Error(" OTSIncAMeasureAppForm_Load:" + ex.ToString());
- }
-
- }
- public void ArrangWorkspaceWindow()
- {
- //Show 样品台窗口
- m_SamplepaceWindow.Show(dockPanel);
- //Show 测量状态窗口
- m_MessureStatuWindow.Show(dockPanel);
- //Show 测量结果窗口
- m_MeasureRetWindow.Show(dockPanel);
- m_SolutionWindows.Show(dockPanel, DockState.DockLeft);
- //Show 测量过程中Log显示窗口
- m_OTSMeasureOutputNlog.Show(dockPanel, DockState.DockRight);
- dockPanel.DockRightPortion = 365;
- m_SPropertyWindows.Show(dockPanel);
- m_SamplepaceWindow.Activate();
- }
- private void rbReport_Click(object sender, EventArgs e)
- {
-
- //测量结果文件路径列表
- List<string> mrFilePathList = new List<string>();
- //获取测量结果文件路径列表
- bool result = m_ProjParam.GetCompletedMeasureFileName(ref mrFilePathList);
- if (result)
- {
- for (int i = 0; i < mrFilePathList.Count; i++)
- {
- mrFilePathList[i] = mrFilePathList[i].Replace(" ", "^");
- }
- //转换为数组
- string[] resultFilePath = mrFilePathList.ToArray();
- System.Diagnostics.ProcessStartInfo process = new System.Diagnostics.ProcessStartInfo();
- process.FileName = "OTSIncAReportApp.exe";//打开app的路径
- string FilePath = string.Join(" ", resultFilePath);
- process.Arguments = FilePath;//多个参数用空格隔开
- process.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
- System.Diagnostics.Process.Start(process);
- }
- }
- // sNewWorkSampleName: 新工作样品名
- public void SwitchWSample(string sNewWorkSampleName)
- {
- m_ProjParam.SetWorkSample(sNewWorkSampleName);
-
- m_SolutionWindows.SwitchSample(m_ProjParam.GetWorkSampleName());
- //获取新工作样品属性值
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetWorkSample(), ref SMInfo);
-
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- //发送新的样品名给Treeview
- m_SolutionWindows.SwitchSample(sNewWorkSampleName);
- //发送想你的样品名给Sample
- m_SamplepaceWindow.SwitchWorkSample(sNewWorkSampleName);
- //根据节点设置样品台窗口中所选择的样品名称
-
- }
-
- public void Rev_SoluWindowReqCheckBosStatuChange_Event(string sSampleName, bool bCheckBoxStatu)
- {
- string sWSampleName = m_ProjParam.GetWorkSampleName();
- if ("" == sWSampleName)
- {
- //不修改Tteeview 的工作样品属性值
- m_SolutionWindows.Rev_MeasureApp_CheckboxStatuChange_Event(sSampleName, !bCheckBoxStatu);
- return;
- }
- //Treeview更改的工作样品数的CHECKBOX 状态
- if (!m_ProjParam.SetSampleParamVal(OTS_SAMPLE_PROP_GRID_ITEMS.SWITCH, OTS_ITEM_TYPES.BOOL, bCheckBoxStatu))
- {
- //不修改Tteeview 的工作样品属性值
- m_SolutionWindows.Rev_MeasureApp_CheckboxStatuChange_Event(sSampleName, !bCheckBoxStatu);
- return;
- }
- // 设置 开始 ,停止 和检查参数 按钮状态
- m_RibbonFun.SetMeasureRibbonButnStatu();
- //修改Grid工作样品的SWITCH值
- OTSSamplePropertyInfo SMeasurenfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetWorkSample(), ref SMeasurenfo))
- {
- return;
- }
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMeasurenfo);
- }
-
- public bool EditWorkSampleName(string sSampleOldName, string sSampleNewName)
- {
- if (!m_ProjParam.ChangeWorkSampleName(sSampleNewName))
- {
- return false;
- }
- // 获取修改名称后的工作样品属性值
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetWorkSample(), ref SMInfo))
- {
- return false;
- }
- //获取修改名称后的工作样品属性值发送给Grid显示
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- //给样品台发送新的工作样品名称
- m_SamplepaceWindow.ChangeWorkSampleName(sSampleNewName);
- return true;
- }
-
- public void SoluwindowReqAddSample()
- {
- //Treeview右键点击添加新样品
- this.AddNewSampleMeasure();
- }
-
- private void OTSIncAMeasureAppForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- try
- {
-
- if (m_MsrThreadWrapper.BGWorkThreadIsRunning ()) //当前正在测量
- {
- e.Cancel = true;
- return;
- }
- if (m_MsrThreadWrapper.IsHavingNotCompleteSamples()) //当前正在测量
- {
- e.Cancel = true;
- MessageBox.Show("There is one sample is still in pausing state,please stop it!");
- return;
- }
- //判断测量结果文件修改后是否保存
- if (m_ProjData.IsModified())
- {
- string message = table["message2"].ToString();
- DialogResult lsdr = MessageBox.Show(message, "Tip", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information);
- if (lsdr == DialogResult.Yes)
- {
- //保存,退出
- m_ProjData.Save();
- //保存,直接退出
- Application.ExitThread();
- }
- else if (lsdr == DialogResult.No)
- {
- //不保存,直接退出
- Application.ExitThread();
- }
- else if (lsdr == DialogResult.Cancel)
- {
- //取消
- e.Cancel = true;
- return;
- }
- }
- log.Info("Disconnect SEM!");
- m_MsrThreadWrapper.DisconnectSEM();
- m_MsrThreadWrapper.SetWorkThreadPending();
- }
- catch (Exception ex)
- {
- string message = table["message3"].ToString();
- log.Error("OTSIncAMeasureAppForm_FormClosing-"+ message + ":" + ex.ToString());
- }
-
- Process.GetCurrentProcess().Kill();
-
-
- }
- //打开指定路径的文件
- private void ribbonOrbMenuItem1_OpenWorkspace_Click(object sender, EventArgs e)
- {
- OpenMeasureProjectFile();
- //UpdatePropertyVal();
- }
- //新建样品工作文件
- private void ribbonOrbMenuItem3_CreateWorkspace_Click(object sender, EventArgs e)
- {
- int iCreateNewFileResult = m_ProjParam.CreateNewFile();
- if (iCreateNewFileResult == 0)
- {
- log.Error("(OTSIncAMeasureAppForm.rbNew_CreateWorkspace_Click) m_DataMgrFun.CreateNewFile() Failed !");
- return;
- }
- else if(iCreateNewFileResult == 2)
- {
- log.Info("(OTSIncAMeasureAppForm.rbNew_CreateWorkspace_Click) m_DataMgrFun.CreateNewFile() Cancel !");
- return;
- }
- m_RibbonFun.SetAllRibbonButnStatus(true);
- //清除TREEVIEW和GRID上的显示的已经保存的样品信息
- m_SolutionWindows.m_TreeViewBase.DeleteAllTreeNode();
- m_SPropertyWindows.m_SampleGrid.HideGrid();
- //设置报告按钮
- rbPReport.Enabled = false;
- rbReport.Enabled = false;
- rbReClassify.Enabled = true;
- //新建项目时,设置属性窗体中的两个按钮也为不可用状态
- m_SPropertyWindows.TSLoad.Enabled = false;
- m_SPropertyWindows.TSSaveAs.Enabled = false;
- //绘制样品台
- m_SamplepaceWindow.InitStageDisplay(m_ProjData.GetStage(), m_ProjData.GetSEMStageData());
- //隐藏XrayTable控件
- m_MessureStatuWindow.HideXRayTable();
- //新建时重新初始化结果窗体结果
- m_MeasureRetWindow.SetInit();
- }
- // 新建样品时提示保存样品信息Messagebox
- public int ShowSaveInfoMsgBox()
- {
- string message = table["message4"].ToString();
-
- DialogResult dResult = MessageBox.Show(message, "Tip", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
- if (dResult == DialogResult.Yes)
- {
- return (int)MessageBoxRev.DIALOG_YES;
- }
- else if (dResult == DialogResult.No)
- {
- return (int)MessageBoxRev.DIALOG_NO;
- }
- else
- {
- return (int)MessageBoxRev.DIALOG_CANCEL;
- }
- }
- //打开已经保存的工作文件
- private bool DisplayExistSampleFile()
- {
- List<CTreeSampleParam> TSampleParamList = new List<CTreeSampleParam>();
- List<SampleMeasurePara> SampleMeasureAreaList = new List<SampleMeasurePara>();
-
- int iSampleCount = m_ProjData.GetSampleList().Count;
- if (0 == iSampleCount)
- {
- return false;
- }
- for (int i = 0; i < iSampleCount; i++)
- {
- CTreeSampleParam CTSampleParam = new CTreeSampleParam();
- COTSSample SampleClr = (m_ProjData.GetSampleList())[i];
- CTSampleParam.sSampleTitleName = m_ProjData.GetFileName();
- CTSampleParam.sWorkSampleName = SampleClr.GetName();
- CTSampleParam.bSwitch = SampleClr.GetSwitch();
- CTSampleParam.bParamLock = SampleClr.GetParamLock();
- TSampleParamList.Add(CTSampleParam);
- }
-
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetResultData().GetWorkingSample(), ref SMInfo))
- {
- log.Error("(OTSIncAMeasureAppForm.OpenExistSampleFile) m_DataMgrFun.GetSamplePropertyVal(m_DataMgrFun.GetWorkSample(), ref SMInfo) = false Failed !");
- return false;
- }
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- m_SolutionWindows.OpenExistSampleFile(TSampleParamList, SMInfo.TSampleParam);
-
- if (!OpenExistSampleMeasureArea(ref SampleMeasureAreaList))
- {
- log.Error(" OpenExistSampleMeasureArea(ref SampleMeasureAreaList) Failed !");
- return false;
- }
- string sWSampleName = m_ProjParam.GetWorkSampleName();
-
- if ("" == sWSampleName)
- {
- log.Error("(OTSIncAMeasureAppForm.OpenExistSampleFile) m_DataMgrFun.GetWorkSampleName() = null !");
- return false;
- }
-
- m_SamplepaceWindow.OpenExistSampleFile(m_ProjData.GetStage(), m_ProjData.GetSEMStageData(), SampleMeasureAreaList);
- return true;
- }
- public bool OpenExistSampleMeasureArea(ref List<SampleMeasurePara> SampleMeasureParaList)
- {
- int iSListCount = m_ProjData.GetSampleList().Count;
- if (0 == iSListCount)
- {
- return false;
- }
- for (int i = 0; i < iSListCount; i++)
- {
- SampleMeasurePara SampleMeasureArea = new SampleMeasurePara();
- //获取样品的测量区域信息
- //获取样品名称
- SampleMeasureArea.sSampleName = (m_ProjData.GetSampleList())[i].GetName();
- // 获取测量区域形状
- SampleMeasureArea.iShape = (ShapeType)m_ProjData.GetSampleList()[i].GetMsrDomain().GetShape();
- //获取样品孔名称
- SampleMeasureArea.sampleHoleName = (m_ProjData.GetSampleList())[i].GetSampleHoleName();
- //样品测量区域
- SampleMeasureArea.MeasureRect =(m_ProjData.GetSampleList())[i].GetMsrDomain().GetRectDomain();
- //多边形点集合
- List<PointF> PointRegionF = new List<PointF>();
- List<Point> PolygonPoint = m_ProjData.GetSampleList()[i].GetMsrDomain().GetPolygonPoint();
- if (PolygonPoint != null)
- {
- foreach (var item in m_ProjData.GetSampleList()[i].GetMsrDomain().GetPolygonPoint())
- {
- PointRegionF.Add(new PointF(item.X, item.Y));
- }
- }
- SampleMeasureArea.DrawPolygonPointList = PointRegionF;
- SampleMeasureParaList.Add(SampleMeasureArea);
- }
- return true;
- }
- //打开指定路径的文件
- private void rbOpen_Click(object sender, EventArgs e)
- {
- OpenMeasureProjectFile();
- }
-
- private void rbDeleteSample_Click(object sender, EventArgs e)
- {
- //删除样品(样品必须先选中)
- string sWSampleName = m_ProjParam.GetWorkSampleName();
- if ("" == sWSampleName)
- {
- log.Error("(OTSIncAMeasureAppForm.rbDeleteSample_Click) m_DataMgrFun.GetWorkSampleName() = null Failed");
- return;
- }
- string message = table["message5"].ToString();
- string message6 = table["message6"].ToString();
- string sDeleteSampleName = message;
- sDeleteSampleName += sWSampleName;
- sDeleteSampleName += message6;
- if (DialogResult.OK == MessageBox.Show(sDeleteSampleName, "Tip", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning))
- {
- //删除样品成功
- DeleteSample(sWSampleName);
-
-
- sWSampleName = m_ProjParam.GetWorkSampleName();
- if ("" != sWSampleName)
- {
-
- m_SolutionWindows.m_TreeViewBase.GetTreeWorkSampleNode(sWSampleName);
- m_SolutionWindows.treeView1.Focus();
- }
- }
-
- }
- //返回删除的工作样品名
- public void DeleteSample(string sDeleteWSampleName = "")
- {
- if (m_MsrThreadWrapper.m_measure.mapSmplMsr.ContainsKey(sDeleteWSampleName))
- {
- m_MsrThreadWrapper.m_measure.mapSmplMsr.Remove(sDeleteWSampleName);
- }
-
- if (!m_ProjParam.DeleteWorkSample(sDeleteWSampleName))
- {
- log.Error("(OTSIncAMeasureAppForm.DeleteSample) m_DataMgrFun.DeleteWorkSample(sDeleteWSampleName) Failed, sDeleteWSampleName = " + sDeleteWSampleName);
-
- }
- // 设置 开始 ,停止 和检查参数 按钮状态
- m_RibbonFun.SetMeasureRibbonButnStatu();
- //设置 删除,复位,圆形,矩形 按钮状态
- m_RibbonFun.SetSampleRibbonButnStatus();
- // 更新报告ribbon按钮状态
- m_RibbonFun.SetAllRibbonButnStatus(true);
- int iSampleCount = m_ProjParam.GetSampleCount();
- if (0 == iSampleCount)
- {
- //给工作样品台发送删除样品和新的工作样品名称
- m_SamplepaceWindow.DeleteWorkSample(sDeleteWSampleName);
-
- m_SPropertyWindows.PropGrid.Hide();
- m_SolutionWindows.treeView1.Nodes.Clear();
- m_MessureStatuWindow.HideXRayTable();
- m_MeasureRetWindow.SetInit();
- return ;
- }
- else
- {
- string sNewWSName = m_ProjParam.GetWorkSampleName();
- if ("" == sNewWSName)
- {
- log.Error("(OTSIncAMeasureAppForm.DeleteSample) m_DataMgrFun.GetWorkSampleName() = null Failed");
- return ;
- }
- m_SolutionWindows.DeletCurrentSampleNode();
- m_SolutionWindows.DisplaySample(sNewWSName);
- //将测量状态初始化
- m_MessureStatuWindow.SetMeasureStatusInit();
- //给工作样品台发送删除样品和新的工作样品名称
- m_SamplepaceWindow.DeleteWorkSample(sDeleteWSampleName);
- //设置工作样品
- SwitchWSample(sNewWSName);
- }
- return ;
- }
- private void rbAddSample_Click(object sender, EventArgs e)
- {
- this.AddNewSampleMeasure();//the system will choose the empty hole one by one according to the holeNo sequence.
- }
- public void AddNewSampleMeasure(string sSampleHoleName = "")
- {
- //样品的属性值
-
- OTSSamplePropertyInfo SMInfo = m_ProjParam.AddNewSampleMeasure(sSampleHoleName);
- if (null == SMInfo)
- {
- // 设置 开始 ,停止 和检查参数 按钮状态
- m_RibbonFun.SetMeasureRibbonButnStatu();
- log.Error("(OTSIncAMeasureAppForm.AddNewSample) m_DataMgrFun.AddNewSample(sSampleHoleName) = null ");
- return;
- }
- m_SPropertyWindows.TSSaveAs.Enabled = true;
- m_SPropertyWindows.TSLoad.Enabled = true;
- //给SampleWindow 发送样品信息
-
- m_SamplepaceWindow.AddSampleArea(SMInfo.SMeasurePara);
- m_SamplepaceWindow.ReadSEMDataAndSetToCurrentSample();
- //给PropWindow 发送工作样品属性信息
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- //给SoluWindow 发送样品显示信息
- m_SolutionWindows.AddSampleMeasure(SMInfo.TSampleParam);
- // 设置 开始 ,停止 和检查参数 按钮状态
- m_RibbonFun.SetMeasureRibbonButnStatu();
- //设置 删除,复位,圆形,矩形 按钮状态
- m_RibbonFun.SetSampleRibbonButnStatus();
- //清空帧图信息
- SetRunType(MSR_RUN_TYPE.RUNMEASURE);
-
- }
-
- private void rbSelectDlg_Click(object sender, EventArgs e)
- {
-
- //判断样品台是否有样品,如果有样品则不能设置默认参数
- if (m_ProjParam.GetSampleCount() > 0)
- {
- MessageBox.Show("Cann't setup preference parameter,for you have added some samples!");
- return;
- }
- ProgMgrInfoForm ProgMgrForm = new ProgMgrInfoForm();
-
- if (DialogResult.OK == ProgMgrForm.ShowDialog())
- {
-
- if (m_ProjParam.LoadParamFile() && m_ProjParam.LoadStageParamFile())
- {
-
- if (m_ProjParam.InitResultData())
- {
- m_RibbonFun.SetAllRibbonButnStatus(true);
- //当样品台上有样品,则不更新样品台数据
- if (0 == m_ProjParam.GetSampleCount())
- {
-
-
- m_SamplepaceWindow.InitStageDisplay(m_ProjData.GetStage(), m_ProjData.GetSEMStageData());
- }
- }
- else
- {
- log.Error("(OTSIncAMeasureAppForm.rbSelectDlg_Click) this.CheckMeasureSysFileExist() = false");
- }
- }
- else
- {
- log.Error("(OTSIncAMeasureAppForm.rbSelectDlg_Click) (m_DataMgrFun.CheckParamFile() && m_DataMgrFun.CheckStageFile()) = false");
- }
- }
- }
-
-
- // 主Windows框右下角显示鼠标点的SEM坐标(样品台)
- public void ShowSemCoordvAL(string sSemCoord)
- {
- STSemCoordinate.Text = sSemCoord;
-
- statusStrip1.Refresh();
- }
- //// 主Windows框右下角显示鼠标点的灰度值(测量图)
- public void ShowGrayVal(string sGrayVal)
- {
- TSGrayVal.Text = sGrayVal;
- statusStrip1.Refresh();
- }
-
- //获取工作样品测量锁
- public bool GetWorkSampleParamLock(ref CTreeSampleParam TSParamLock)
- {
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWSampleParaLock(ref SMInfo))
- {
- return false;
- }
- TSParamLock = SMInfo.TSampleParam;
- return true;
- }
-
- /// <summary>
- /// 更新属性窗口
- /// </summary>
- public void UpdatePropertyVal()
- {
- //获取新的工作样品属性值
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetWorkSample(), ref SMInfo))
- {
- log.Error("(OTSIncAMeasureAppForm.SetSEMData) m_DataMgrFun.GetSamplePropertyVal(m_DataMgrFun.GetWorkSample(),ref SMInfo) = false Failed");
- }
- // MeasureApp 窗口给 OTSPropertyWindow窗口 Grid显示的样品属性信息
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- }
-
- private void ribbonOrbMenuItemSaveAs_Click(object sender, EventArgs e)
- {
- bool iRev = m_ProjData.SaveAs();
- if (!iRev)
- {
- return;
- }
- }
- private void rbSaveFile_Click(object sender, EventArgs e)
- {
- bool iRev = m_ProjData.Save();
- if (!iRev)
- {
-
- return;
- }
- }
- private void rbCheckParam_Click(object sender, EventArgs e)
- {
- //检查样品测量参数
- if (m_ProjParam.CheckSampleParam(true))
- {
- string message = table["message7"].ToString();
- MessageBox.Show(message, "Tip", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }
- private void ribReset_Click(object sender, EventArgs e)
- {
- //调用样品台窗口中的复位方法
- m_SamplepaceWindow.ResetWorkSampleMeasure();
- }
- //绘制圆形测量区域
- private void ribCircle_Click(object sender, EventArgs e)
- {
- //修改工作样品的测量区域为圆形
- m_SamplepaceWindow.DrawCircleMeasure();
- }
- private void rbThreePoints_Click(object sender, EventArgs e)
- {
- //修改工作样品的测量区域为圆形
- m_SamplepaceWindow.DrawCircleMeasureByThreePoints();
- }
- private void rbRingShape_Click(object sender, EventArgs e)
- {
- //修改工作样品的测量区域为圆形
- m_SamplepaceWindow.DrawRingShapeArea();
- }
- //绘制矩形测量区域
- private void ribRectangle_Click(object sender, EventArgs e)
- {
- //修改工作样品的测量区域为矩形
- m_SamplepaceWindow.DrawRectangleMeasure();
- }
- private void rbExitApp_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
- private void rbStart_Click(object sender, EventArgs e)
- {
- if (!m_ProjParam.CheckSampleParam(false))
- {
- return;
- }
- if (!m_MsrThreadWrapper.BGWorkThreadIsRunning() && !m_MsrThreadWrapper.BgWorkIsPaused())
- {
- SetRunType(MSR_RUN_TYPE.RUNMEASURE);
- //m_MsrThreadWrapper.SetDoRunType(MSR_RUN_TYPE.RUNMEASURE);
- m_MsrThreadWrapper.StartBGWorkThread();
- m_RibbonFun.SetMeasureRibbonButnStatu();
- }
- else //thread is in pausing state
- {
- SetRunType(MSR_RUN_TYPE.RUNMEASURE);
- //m_MsrThreadWrapper.SetDoRunType(MSR_RUN_TYPE.RUNMEASURE);
- m_MsrThreadWrapper.SetMeasureThreadStatus(OTS_MSR_THREAD_STATUS.INPROCESS);
- m_RibbonFun.SetMeasureRibbonButnStatu();
- }
- }
- public void SetStartMeasureRibbonStatus()
- {
-
- ribView.Enabled = false;
- m_RibbonFun.SetToolButnStatu(false);
- //false: 将其他ribbon按钮设置为灰色
- rbPanelFile.Enabled = false;
- rbPanelSample.Enabled = false;
- m_SolutionWindows.Enabled = false;
- m_SPropertyWindows.Enabled = false;
- rbStart.Enabled = false;
- //rbPause.Enabled = true;
- rbStop.Enabled = true;
- rbCheckParam.Enabled = false;
- }
- private void rbStop_Click(object sender, EventArgs e)
- {
- //如果当前正在测量,则停止测量线程
- if (MeasureThreadRunFlag)
- {
- //停止测量线程
- m_MsrThreadWrapper.SetMeasureThreadStatus(otsdataconst.OTS_MSR_THREAD_STATUS.STOPPED);
- }
- else if (m_MsrThreadWrapper.m_measure.GetMsrThreadStatus() .GetStatus()== OTS_MSR_THREAD_STATUS.PAUSED)
- {
- foreach (KeyValuePair<string, CSmplMeasure> smpl in m_MsrThreadWrapper.m_measure.mapSmplMsr)
- {
- if (smpl.Value.GetSample().GetMsrStatus().GetStatus() == OTS_MSR_SAMPLE_STATUS.PAUSED)
- {
- smpl.Value.TheLastWorkOfSampleMeasure();
- return;
- }
- }
- }
- }
- private void rbPause_Click(object sender, EventArgs e)
- {
- //如果当前正在测量,则停止测量线程
- if (MeasureThreadRunFlag)
- {
- //停止测量线程
- m_MsrThreadWrapper.SetMeasureThreadStatus(otsdataconst.OTS_MSR_THREAD_STATUS.PAUSED);
- }
- }
- private void rbRuler_Click(object sender, EventArgs e)
- {
- m_SamplepaceWindow.ShowRulerLocation();
- }
- private void rbSmapleName_Click(object sender, EventArgs e)
- {
- //m_SamplepaceWindow.ChangeSampleHoleFont();
- }
- private void rbSmaplePhoto_Click(object sender, EventArgs e)
- {
- m_SamplepaceWindow.ChangeSampleHoleImage();
- }
- //当点击Ribbon停止按钮时,设置Ribbon状态
- public void SetStopMeasureRibbonStatus()
- {
-
- ribView.Enabled = true;
- m_RibbonFun.SetToolButnStatu(true);
- rbPanelFile.Enabled = true;
- rbPanelSample.Enabled = true;
- m_RibbonFun.SetMeasureRibbonButnStatu();
- m_SolutionWindows.Enabled = true;
- m_SPropertyWindows.Enabled = true;
- rbStart.Enabled = true;
- rbPause.Enabled = false;
- rbStop.Enabled = false;
- rbCheckParam.Enabled = true;
- }
- public void SetPauseMeasureRibbonStatus()
- {
-
- ribView.Enabled = true;
- m_RibbonFun.SetToolButnStatu(true);
- rbPanelFile.Enabled = true;
- rbPanelSample.Enabled = true;
- m_RibbonFun.SetMeasureRibbonButnStatu();
- m_SolutionWindows.Enabled = true;
- m_SPropertyWindows.Enabled = true;
- rbStart.Enabled = true;
- rbPause.Enabled = false;
- rbStop.Enabled = true;
- rbCheckParam.Enabled = false;
- }
- public bool SwitchMeasureSample(string sMsrSampleName)
- {
- if (!m_ProjParam.SetWorkSample(sMsrSampleName))
- {
- log.Error("(OTSIncAMeasureAppForm.SwitchMeasureSample) SetWorkSample(sMsrSampleName =" + sMsrSampleName + ") Failed !");
- return false;
- }
- OTSSamplePropertyInfo SMInfo = new OTSSamplePropertyInfo();
- if (!m_ProjParam.GetWorkSamplePerameter(m_ProjParam.GetWorkSample(), ref SMInfo))
- {
- log.Error("(OTSIncAMeasureAppForm.SwitchMeasureSample) m_DataMgrFun.GetSamplePropertyVal(m_DataMgrFun.GetWorkSample(), ref SMInfo) = false Failed !");
- return false;
- }
- // MeasureApp 窗口给 OTSPropertyWindow窗口 Grid显示的样品属性信息
- m_SolutionWindows.SwitchSample(sMsrSampleName);
- m_SPropertyWindows.DisplaySampleMeasureInfo(SMInfo);
- return true;
- }
- #region 开始获取样品孔中的照片
- /// <summary>
- /// 开始获取样品孔中的照片
- /// </summary>
- /// <param name="doRunType"></param>
- /// <param name="HoleID"></param>
- /// <param name="c_DomainMessure"></param>
- public void StartSampleHoleBSEImage(int HoleID)
- {
-
- //设置获取样品孔中照片所需的参数
- m_MsrThreadWrapper.SetHoleImagePreview(HoleID);
- if (!m_MsrThreadWrapper.BGWorkThreadIsRunning())
- {
-
- m_MsrThreadWrapper.StartBGWorkThread();
- m_RibbonFun.SetMeasureRibbonButnStatu();
- }
- }
- #endregion
- private void rbRecover_Click(object sender, EventArgs e)
- {
- //关闭所有内容
- CloseAllContents();
- //显示样品属性窗口与树结构窗口
- m_SolutionWindows.Show(dockPanel, DockState.DockLeft);
- m_SPropertyWindows.Show(dockPanel);
- //显示样品台窗口 测量状态与测量结果窗口
- m_SamplepaceWindow.Show(dockPanel);
- m_MessureStatuWindow.Show(dockPanel);
- m_MeasureRetWindow.Show(dockPanel);
- //此处将在父窗体选项卡上显示
- foreach (Form child in this.MdiChildren)
- {
- if (child.Name == "OTSSamplespaceWindow")
- {
- child.Activate();
- break;
- }
- }
- }
- private void CloseAllContents()
- {
- m_SolutionWindows.DockPanel = null;
- m_SPropertyWindows.DockPanel = null;
- m_SamplepaceWindow.DockPanel = null;
- m_MessureStatuWindow.DockPanel = null;
- m_MeasureRetWindow.DockPanel = null;
- CloseAllDocuments();
- }
- private void CloseAllDocuments()
- {
- if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
- {
- foreach (Form form in MdiChildren)
- form.Close();
- }
- else
- {
- IDockContent[] documents = dockPanel.DocumentsToArray();
- foreach (IDockContent content in documents)
- content.DockHandler.Close();
- }
- }
- private void rbMeasureCircle_Click(object sender, EventArgs e)
- {
- m_ProjParam.SetMeasureAreaShape(ShapeType.CIRCUL);
- //修改工作样品的测量区域为圆形
- m_SamplepaceWindow.changeShape(ShapeType.CIRCUL);
- }
- private void rbMeasureRectangle_Click(object sender, EventArgs e)
- {
- m_ProjParam.SetMeasureAreaShape(ShapeType.RECTANGLE);
- //修改工作样品的测量区域为矩形
- m_SamplepaceWindow.changeShape(ShapeType.RECTANGLE);
- }
- //ctrl+s组合键进行保存
- private void OTSIncAMeasureAppForm_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.S && e.Modifiers == Keys.Control)
- {
- bool iRev = m_ProjData.Save();
- if (!iRev)
- {
- log.Error("(OTSIncAMeasureAppForm.rbSaveFile_Click) m_DataMgrFun.SaveFile() Failed !");
- return;
- }
- log.Error("(OTSIncAMeasureAppForm.rbSaveAs_Click) m_DataMgrFun.SaveFile() Success !");
- }
- }
- private void rbSTDEdit_Click_1(object sender, EventArgs e)
- {
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "(*.db)|*.db";
- openFileDialog.InitialDirectory = Application.StartupPath + "\\Config\\SysData\\";
- openFileDialog.RestoreDirectory = true;
- openFileDialog.FilterIndex = 1;
- if (openFileDialog.ShowDialog() == DialogResult.OK)
- {
- try
- {
- System.Diagnostics.Process p = System.Diagnostics.Process.Start(".\\OTSPartA_STDEditor.exe", openFileDialog.FileName);
- p.WaitForExit();
- }
- catch (Exception ex)
- {
- log.Error("OTSPartA_STDEditor:" + ex.ToString());
- }
- }
- //reload the setup data just now
- foreach (var s in this.m_ProjData.GetSampleList())
- {
- var stdname= s.GetMsrParams().GetSTDName();
- if (stdname != "NoSTD")
- {
- if (!stdname.Contains(".db"))
- {
- stdname += ".db";
- }
- var m_classifyEngine = new COTSClassifyEngineClr(EngineType.ParticleClassifyEng, stdname);
- m_classifyEngine.ReloadEngineDB();
- }
- }
- }
- private void rbSysMgrApp_Click(object sender, EventArgs e)
- {
- try
- {
- System.Diagnostics.Process p = System.Diagnostics.Process.Start(".\\OTSSysMgrApp.exe");
- p.WaitForExit();
- }
- catch (Exception ex)
- {
- log.Error("OTSSysMgrApp:" + ex.ToString());
- }
-
- }
- private void ribPolygon_Click(object sender, EventArgs e)
- {
- //修改工作样品的测量区域为矩形
- m_SamplepaceWindow.DrawPolygonMeasure();
- }
- private void rbReClassify_Click(object sender, EventArgs e)
- {
- this.Cursor = Cursors.WaitCursor;
- if (m_ProjData.Reclassify())
- {
- m_ProjData.Save();
- MessageBox.Show("reclassification success");
- }
- else
- {
- MessageBox.Show("reclassification failed");
- }
- this.Cursor = Cursors.Default;
- }
- /// <summary>
- /// 打开测量项目文件
- /// </summary>
- private void OpenMeasureProjectFile()
- {
-
- bool bOpenFlag=false;
- COTSMsrPrjResultData ProjDataMgr = new COTSMsrPrjResultData();
- string strPathName;
-
-
- // file open dialog
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "Probject Files (*.prj)|*.prj";
- if (openFileDialog.ShowDialog() != DialogResult.OK)
- {
- return ;
- }
- strPathName = openFileDialog.FileName;
- this.Cursor = Cursors.WaitCursor;
- if (ProjDataMgr.Load(strPathName))
- {
- m_ProjData = ProjDataMgr;
- m_ProjParam.SetResultData(m_ProjData);
- m_ProjParam.InitResultData();
-
- bOpenFlag = true;
- }
- this.Cursor = Cursors.Default;
- if (bOpenFlag)
- {
- if (!DisplayExistSampleFile())
- {
- log.Error("(OTSIncAMeasureAppForm.rbOpen_Click) OpenExistSampleFile() = false Failed !");
- return;
- }
- m_RibbonFun.SetAllRibbonButnStatus(true);
- }
- else
- {
- log.Error("(OTSIncAMeasureAppForm.rbOpen_Click) m_DataMgrFun.OpenExistSampleFile() Failed !");
- }
-
- }
- private void OTSIncAMeasureAppForm_FormClosed(object sender, FormClosedEventArgs e)
- {
-
- }
- private void rbAbout_Click(object sender, EventArgs e)
- {
- About m_about = new About();
- m_about.ShowDialog();
- }
- protected override void DefWndProc(ref Message m)
- {
- switch (m.Msg)
- {
- case MsgID:
-
- break;
- case LogMsgID:
- m_LogMsg = new PostLogMsg();
- m_LogMsg = (PostLogMsg)Marshal.PtrToStructure(m.LParam, typeof(PostLogMsg));
- var log = NLog.LogManager.GetCurrentClassLogger();
- string s = GetString(m_LogMsg.logMessage);
- switch (m_LogMsg.logLevel)
- {
- case 1:
- log.Trace(s);
- break;
- case 2:
- log.Debug(s);
- break;
- case 3:
- log.Info(s);
- break;
- case 4:
- log.Warn(s);
- break;
- case 5:
- log.Error(s);
- break;
- case 6:
- log.Fatal(s);
- break;
- }
- break;
- default:
- base.DefWndProc(ref m);
- break;
- }
- }
- private string GetString(char[] csStr)
- {
- int ilen = csStr.Length;
- string csName = new string(csStr); //MSTMsg.STMSampleStu.cSName
- csName.IndexOf('\0');
- csName = csName.Substring(0, csName.IndexOf('\0'));
- return csName;
- }
- private void PrepareIpcServer()
- {
- //Instantiate our server channel.
- IpcServerChannel channel = new IpcServerChannel("ServerChannel");
- //Register the server channel.
- ChannelServices.RegisterChannel(channel, false);
- //Register this service type.
- RemotingConfiguration.RegisterWellKnownServiceType(typeof(IpcSEMController), "RemoteObject", WellKnownObjectMode.Singleton);
-
- }
- private void rbConnectHardware_Click_1(object sender, EventArgs e)
- {
- if (!m_MsrThreadWrapper.IsSEMConnected())
- {
- if (!m_MsrThreadWrapper.ConnectSEM())
- {
- MessageBox.Show("Connect failed!");
- return;
- }
-
- }
- this.rbConnectHardware.Enabled = false;
- this.rbDisconnectHardware.Enabled = true;
- log.Warn("SEM connect success!");
- }
- private void rbDisconnectHardware_Click_1(object sender, EventArgs e)
- {
- if (m_MsrThreadWrapper.IsSEMConnected())
- {
- m_MsrThreadWrapper.DisconnectSEM();
-
- }
- this.rbDisconnectHardware.Enabled = false;
- this.rbConnectHardware.Enabled = true;
- log.Warn("SEM Disconnect!");
- }
- private void rbinterrupt_Click(object sender, EventArgs e)
- {
- if (m_MsrThreadWrapper.IsSEMConnected())
- {
- m_MsrThreadWrapper.StopXrayAcquisition();
- }
-
- log.Warn("StopXrayAcquisition!");
- }
- private void rbAutoBeamOff_Click(object sender, EventArgs e)
- {
- if (m_ProjData.GetGenParam().AutoBeamOff)
- {
- m_ProjData.GetGenParam().AutoBeamOff = false;
- rbAutoBeamOff.Image = global::OTSMeasureApp.Properties.Resources.AutoBeamOff_off;
- rbAutoBeamOff.SmallImage = global::OTSMeasureApp.Properties.Resources.AutoBeamOff_off;
- }
- else
- {
- m_ProjData.GetGenParam().AutoBeamOff = true;
- rbAutoBeamOff.Image = global::OTSMeasureApp.Properties.Resources.AutoBeamOff_on;
- rbAutoBeamOff.SmallImage = global::OTSMeasureApp.Properties.Resources.AutoBeamOff_on;
- }
- }
- }
- }
|