private void btnCancel_Click(object sender, EventArgs e)
        {
            frmViewings2 fc = new frmViewings2();

            fc.Show();
            this.Close();
        }
예제 #2
0
        private void btnCheckView_Click(object sender, EventArgs e)
        {
            frmViewings2 formCalled = new frmViewings2();

            formCalled.Show();
            this.Close();
        }
        // Create viewing button
        private void btnCreateViewing_Click(object sender, EventArgs e)
        {
            int tempSelectedBuyer = 0;

            try
            {
                tempSelectedBuyer = Int32.Parse(selectedClient);
                int tempSelectedProp = Int32.Parse(selectedProp);

                createViewing(tempSelectedBuyer, tempSelectedProp, Variables.SelectedDate, timeSelected);
                frmViewings2 fc = new frmViewings2();
                fc.Show();
                this.Close();
            }catch (Exception ex)
            {
                MessageBox.Show("Choose Client again");
            }
        }