private void ParseTableToEmployeeForm(DataRow row)
        {
            string firstName = (string)row["firstName"];
            string lastName  = (string)row["lastName"];
            string phone     = (string)row["phone"];
            string email     = (string)row["email"];
            string address   = (string)row["address"];
            string roadAddr  = address.Split('|')[0];
            string postCode  = address.Split('|')[1];

            formEmployeeFirstNameTextbox.Text       = firstName;
            formEmployeeLastNameTextbox.Text        = lastName;
            formEmployeePhoneNumberTextbox.Text     = phone;
            formEmployeeEmailAddressTextbox.Text    = email;
            formEmployeeHouseNumberNameTextbox.Text = roadAddr;
            formEmployeePostCodeTextbox.Text        = postCode;

            byte permissions = ((byte[])row["permissions"])[0];

            StaffModel selected = new StaffModel()
            {
                ID           = (int)row["id"],
                FirstName    = (string)row["firstName"],
                LastName     = (string)row["lastName"],
                PhoneNumber  = phone,
                EmailAddress = email,
                Address      = address,
                Permissions  = DBAccessHelper.CalculatePermissions(permissions)
            };

            if (selected.Can(StaffModel.Permission.ReadCustomerData))
            {
                employeeCB_RCD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.WriteCustomerData))
            {
                employeeCB_WCD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.DeleteCustomerData))
            {
                employeeCB_DCD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.ReadStockData))
            {
                employeeCB_RSD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.WriteStockData))
            {
                employeeCB_WSD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.DeleteStockData))
            {
                employeeCB_DSD.IsChecked = true;
            }

            if (selected.Can(StaffModel.Permission.AccessEmployeeData))
            {
                employeeCB_AED.IsChecked = true;
            }

            selectedRow = selected;
            CheckEmployeeEmail();
        }