public WinHistoryView() { InitializeComponent(); //Sets up the tabBars event handlers SpTabControl1.OnShowStatButtonClicked += TabBarController.ShowStatButtonPressed; SpTabControl1.OnShowHistoryButtonClicked += TabBarController.ShowHistoryButtonPressed; SpTabControl1.OnShowAddPoolButtonClicked += TabBarController.ShowAddPoolButtonPressed; SpTabControl1.OnShowEditPoolButtonClicked += TabBarController.ShowEditPoolButtonPressed; SpTabControl1.OnShowEditUserButtonClicked += TabBarController.ShowEditUserButtonPressed; string Ip = System.IO.File.ReadAllText("IpTextFile.txt"); var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip)); Controller = new HistoryViewController(this, clientMessager); Controller.ViewDidLoad(); }
public HistoryViewBridge (IntPtr handle) : base (handle) { // Initialize view controller. _historicData = new List<Tuple<SensorTypes, List<double>>>(); Controller = new HistoryViewController(this, iOSClientFactory.DefaultClient()); }