Example #1
0
        private void ButtonEditTenant_Click(object sender, EventArgs e)
        {
            DataGridViewRow selectedRow  = DataGridViewTenants.CurrentRow;
            int             tenantID     = int.Parse(selectedRow.Tag.ToString());
            TenantDA        tenantDA     = new TenantDA();
            Tenant          tenantToEdit = tenantDA.GetTenantByID(tenantID);

            NewTenantForm editTenantForm = new NewTenantForm(tenantToEdit);

            editTenantForm.ShowDialog();
        }
Example #2
0
        private void ButtonAddNewTenant_Click(object sender, EventArgs e)
        {
            NewTenantForm newTenant = new NewTenantForm();

            newTenant.ShowDialog();
        }
Example #3
0
        private void ToolStripMenuItemNewTenant_Click(object sender, EventArgs e)
        {
            NewTenantForm newTenant = new NewTenantForm();

            newTenant.ShowDialog();
        }