Example #1
0
        public WinAddPoolView()
        {
            InitializeComponent();
            //UI related. Sets placeholder text
            ThemeProperties.SetPlaceholderText(NameTextBox, "Pool name");
            ThemeProperties.SetPlaceholderText(VolumeTextBox, "Volume in m^3");
            ThemeProperties.SetPlaceholderText(LengthTextBox, "Width");
            ThemeProperties.SetPlaceholderText(WidthTextBox, "Length");
            ThemeProperties.SetPlaceholderText(DepthTextBox, "Depth");
            ThemeProperties.SetPlaceholderText(SeialTextBox, "Moniter unit serial number");

            //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");
            //Controllers
            var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip));
            Controller = new AddPoolViewController(this, clientMessager);
            Controller.ViewDidLoad();

        }
 public void SetUp()
 {
     _view = Substitute.For<IAddPoolView>();
     _clientMessenger = Substitute.For<IClientMessenger>();
     _uut = new AddPoolViewController(_view, _clientMessenger);
     _view.Controller = _uut;
 }
Example #3
0
		public AddPoolViewBridge (IntPtr handle) : base (handle)
		{
			Controller = new AddPoolViewController(this, iOSClientFactory.DefaultClient());
		}