public static EnableDisableMachineBiz CreateInstance() { if (_ObjBiz == null) _ObjBiz = new EnableDisableMachineBiz(); return _ObjBiz; }
public static EnableDisableMachineBiz CreateInstance() { if (_ObjBiz == null) { _ObjBiz = new EnableDisableMachineBiz(); } return(_ObjBiz); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { _EnableMachineBiz = EnableDisableMachineBiz.CreateInstance(); lstMachineDetails.Items.Clear(); _ListActiveMachines = _EnableMachineBiz.GetActiveMachine().ToList(); lstMachineDetails.ItemsSource = _ListActiveMachines; BarPosNumber = _ListActiveMachines[0].BarPosNumber; } catch (Exception ex) { ExceptionManager.Publish(ex); } }