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; } /// /// 显示XPS文档 /// 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(); //} } } }