public PropertyDescription(int propertyID)
        {
            InitializeComponent();

            ID = propertyID;
            dbHelper = new DatabaseHelper(ConfigurationManager.ConnectionStrings["MySQLDB"].ConnectionString);

            loadProperty();
        }
        public MainWindow()
        {
            InitializeComponent();
            loggedOn = false;
            email = "";

            dbHelper = new DatabaseHelper(ConfigurationManager.ConnectionStrings["MySQLDB"].ConnectionString);

            loadAllProperties();
        }
        public MainWindow(String email)
        {
            InitializeComponent();
            loggedOn = true;
            this.email = email;

            dbHelper = new DatabaseHelper(ConfigurationManager.ConnectionStrings["MySQLDB"].ConnectionString);

            //Show on the UI that the user is logged on, and hide the Login, Or, and Signup textblocks
            LoginTextblock.Text = email;
            OrTextblock.Text = "";
            SignupTextblock.Text = "";

            loadAllProperties();
        }
 public void LogError(String sender, String description)
 {
     DatabaseHelper dbHelper = new DatabaseHelper(ConfigurationManager.ConnectionStrings["MySQLDB"].ConnectionString);
     dbHelper.DatabaseInsert("ErrorLogs", "`Sender`,`Description`", "'" + sender + "','" + description.Replace("'","") + "'");
 }
 public SignUp()
 {
     InitializeComponent();
     dbHelper = new DatabaseHelper(ConfigurationManager.ConnectionStrings["MySQLDB"].ConnectionString);
     emailTextbox.Focus();
 }