示例#1
0
        /// <summary>
        /// Gets called when a scan has changed
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">Event arguments</param>
        private void OnScanDataChanged(object sender, ScanDataEventArgs e)
        {
            BaseScan scan = (BaseScan) sender;

            if (e.Changed.Equals("FiberType") && e.Unsaved.Contains("FiberType")) {
                Refresh(scan, true);
            }

            if (e.Changed.Equals("Name") && e.Unsaved.Contains("Name")) {
                Refresh(scan);
            }

            if (e.Changed.Equals("mask") && e.Unsaved.Contains("mask")) {
                Refresh(scan);
            }

            if (e.Unsaved.Count == 0) {
                Refresh(scan, e.Changed.Equals("FiberType"));
            }
        }
示例#2
0
文件: Preview.cs 项目: jfreax/BAIMP
 /// <summary>
 /// Gets called when current selected scan data changed.
 /// </summary>
 /// <param name="sender">Changed scan.</param>
 /// <param name="e">Event arguments.</param>
 private void OnScanDataChanged(object sender, ScanDataEventArgs e)
 {
     // propagate
     if (scanDataChanged != null) {
         scanDataChanged(sender, e);
     }
 }