public override void ViewDidLoad() { base.ViewDidLoad(); _rawPageViewController = new RawPageViewController(); _setData = _rawPageViewController; var sampleFrame = new CGRect(SubView.Bounds.Location.X, SubView.Bounds.GetMinY(), SubView.Bounds.Width, SubView.Bounds.Height); _rawPageViewController.View.Frame = sampleFrame; SubView.Add(_rawPageViewController.View); var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate; var station = appDelegate.ActiveStation; var flight = appDelegate.CurrentFlight; _firebaseHelper = new FireBaseHelper(station.Key, flight.Key); _firebaseHelper.StartRawDataObserver((obj) => { Console.WriteLine(obj.EpochTime); GpsImage.Image = new UIImage(GetImageName(obj.GpsStatus)); SensorImage.Image = new UIImage(GetImageName(obj.SensorStatus)); TelemetryImage.Image = new UIImage(GetImageName(obj.TelemetryStatus)); if (obj.StartDetected) { StartTimeText.Text = $"Start Time: {obj.StartTime.FromUnixTime():HH:mm:ss}"; } LastUpdateText.Text = $"Last Update: {obj.EpochTime.FromUnixTime():HH:mm:ss}"; _setData?.SetData(obj); }); }
public MailClientSender(IGetData <bool> FileChecker, IGetData <Params> ParametersReader, ISetData <string> Logger) { fileExists = FileChecker.GetData(); par = ParametersReader.GetData(); logger = Logger; }
private UserManager() { getData = new DataService <User>(); setData = new DataService <User>(); logger = NLog.LogManager.GetCurrentClassLogger(); }
public static T SetTo <T>(this T dataBaseObject, ISetData <T> setableData) where T : BaseObjectData <T> { setableData.SetData(dataBaseObject); return(dataBaseObject); }
public ParamsReader(string[] Args, ISetData <string> Logger) { args = Args; }