public LoginScreen()
        {
            viewModel = new LoginScreenViewModel();

            InitializeComponent();

            base.DataContext = viewModel;
            txbPassword.Password = "";
        }
        public MainWindow(string user, string pass, string broker, string project, LoginScreenViewModel ParentWindow)
        {
            viewModel = new HarvestUtilitiesViewModel(user, pass, broker, project, this);

            InitializeComponent();

            base.DataContext = viewModel;

            //Hide login window
            try
            {
                this.ParentWindow = ParentWindow;
                ParentWindow.thisScreen.Hide();
            }
            catch (Exception e) { Console.WriteLine(e.Message); }

            AllocConsole();
        }