/// <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")); } }
/// <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); } }