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() { _client = Substitute.For<IClient>(); //_client.StartClient().Returns(new LoginResponseMsg("TokenString", true)); _clientResponseManager = Substitute.For<IClientResponseManager>(); _uut = new ClientMessenger(_client); }
public WinLoginView() { //UI related. Sets placeholdertext InitializeComponent(); ThemeProperties.SetPlaceholderText(EmailTextBox, "E-mail"); ThemeProperties.SetPlaceholderText(PasswordTextBox, "Password"); string Ip = System.IO.File.ReadAllText("IpTextFile.txt"); //Controller var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip)); Controller = new LoginViewController(this, clientMessager); Controller.ViewDidLoad(); }
public WinCreateUserView() { InitializeComponent(); ThemeProperties.SetPlaceholderText(NameTextBox, "Name"); ThemeProperties.SetPlaceholderText(EmailTextBox, "E-mail"); ThemeProperties.SetPlaceholderText(PasswordTextBox, "Password"); ThemeProperties.SetPlaceholderText(RepeatPasswordTextBox, "Repeat password"); string Ip = System.IO.File.ReadAllText("IpTextFile.txt"); var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip)); Controller = new SignUpViewController(this, clientMessager); Controller.ViewDidLoad(); }
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 WinEditUserView() { InitializeComponent(); //UI related. Sets placeholder text ThemeProperties.SetPlaceholderText(CurrentPasswordTextBox, "Current password"); ThemeProperties.SetPlaceholderText(PasswordTextBox, "New password"); ThemeProperties.SetPlaceholderText(RepeatPasswordTextBox, "Repeat new password"); //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 EditUserViewController(this, clientMessager); Controller.ViewDidLoad(); }
public WinStatView() { InitializeComponent(); PoolComboBox.ItemsSource = AvailablePoolsList; TemperatureStatViewer.BorderColor = new SolidColorBrush(Color.FromRgb(0xFF, 0x58, 0x4D)); PhStatViewer.BorderColor = new SolidColorBrush(Color.FromRgb(0xFD, 0xA0, 0x29)); ChlorineStatViewer.BorderColor = new SolidColorBrush(Color.FromRgb(0x49, 0xBA, 0xE1)); HumidityStatViewer.BorderColor = new SolidColorBrush(Color.FromRgb(0x03, 0x54, 0xA5)); //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"); //Controller var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip)); Controller = new StatViewController(this, clientMessager); Controller.ViewDidLoad(); }