Exemplo n.º 1
0
 public ShellPageViewModel(IAccelerometer accelerometer, IWarning warning)
 {
     _warning = warning;
     _accelerometer = accelerometer;
     _accelerometer.OnChange += OnSensorChange;
     _accelerometer.Start();
 }
 public WarningController(IWarning repo, IBelaVistaRepository repositoryContext)
 {
     _repo = repo;
     _repositoryContext = repositoryContext;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Init using a single warning.
 /// </summary>
 public Exceptional(IWarning myIWarning)
     : this()
 {
     PushIWarning(myIWarning);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds a single warning.
 /// </summary>
 public Exceptional PushIWarning(IWarning myIWarning)
 {
     lock (this)
     {
         _IWarnings.Push(myIWarning);
         return this;
     }
 }
Exemplo n.º 5
0
 private void AddWarning(IWarning aWarning)
 {
     lock (_warnings)
     {
         _warnings.Add(aWarning);
     }
 }
Exemplo n.º 6
0
 public GraphDBWarningException(IWarning graphDBWarning, Exception innerException)
     : base(graphDBWarning.ToString(), innerException)
 {
     GraphDBWarning = graphDBWarning;
 }
Exemplo n.º 7
0
 public GraphDBWarningException(IWarning graphDBWarning)
     : base(graphDBWarning.ToString())
 {
     GraphDBWarning = graphDBWarning;
 }
Exemplo n.º 8
0
 public EvaluateSample(IWarning Warning)
 {
     warning_ = Warning;
 }