private void chkInTransitAsset_Checked(object sender, RoutedEventArgs e) { string assetNo = string.Empty; try { this.Cursor = System.Windows.Input.Cursors.Wait; LogManager.WriteLog("Inside chkInTransitAsset_Checked", LogManager.enumLogLevel.Info); CTransitAsset cTransitAsset = new CTransitAsset(); cTransitAsset.ShowDialogEx(this); txtAsset.Text = cTransitAsset.TransitAssetNo; if (txtAsset.Text == string.Empty) { chkInTransitAsset.IsChecked = false; } else { GetAccDetails_Click(sender, e); } } catch (Exception ex) { ExceptionManager.Publish(ex); return; } finally { this.Cursor = System.Windows.Input.Cursors.Arrow; } }
private void chkInTransitAsset_Checked(object sender, RoutedEventArgs e) { string assetNo = string.Empty; try { this.Cursor = System.Windows.Input.Cursors.Wait; LogManager.WriteLog("Inside chkInTransitAsset_Checked", LogManager.enumLogLevel.Info); CTransitAsset cTransitAsset = new CTransitAsset(); cTransitAsset.ShowDialogEx(this); txtAsset.Text = cTransitAsset.TransitAssetNo; if (txtAsset.Text == string.Empty) chkInTransitAsset.IsChecked = false; else GetAccDetails_Click(sender, e); } catch (Exception ex) { ExceptionManager.Publish(ex); return; } finally { this.Cursor = System.Windows.Input.Cursors.Arrow; } }