| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.Mcp.Mch
- {
- public partial class FrmMagneticInspectionResult : FrmBase
- {
- public FrmMagneticInspectionResult()
- {
- InitializeComponent();
- }
- private void FrmMagneticInspectionResult_Load(object sender, EventArgs e)
- {
-
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "DoQuery":
- //ShowXPSDocument();
- break;
- }
- }
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- this.magneticInspectionControl1.Grid.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False;
- }
- /// <summary>
- /// 显示XPS文档
- /// </summary>
- private void ShowXPSDocument()
- {
- OpenFileDialog dialog = new OpenFileDialog();
- dialog.Filter = "XPS 文档(*.xps)|*.xps";
- //if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- //{
- // XpsDocument doc = new XpsDocument(dialog.FileName, System.IO.FileAccess.Read);
- // this.documentViewer1.Viewer.Document = doc.GetFixedDocumentSequence();
- //}
- }
- }
- }
|