Beispiel #1
0
        private void btn_Move_Click(object sender, EventArgs e)
        {
            Form dialog;

            if (SelectedProperty.IsRented)
            {
                dialog = new MoveOutForm(SelectedProperty);
            }
            else
            {
                dialog = new MoveInForm(SelectedProperty);
            }

            dialog.ShowDialog();

            if (dialog.DialogResult == DialogResult.OK)
            {
                LoadInformationDGV();
                LoadImageAndLabels();
            }
        }
        private void btn_Move_Click(object sender, EventArgs e)
        {
            Form dialog;

            if (SelectedProperty.IsRented)
            { dialog = new MoveOutForm(SelectedProperty); }
            else
            { dialog = new MoveInForm(SelectedProperty); }

            dialog.ShowDialog();

            if (dialog.DialogResult == DialogResult.OK)
            {
                LoadInformationDGV();
                LoadImageAndLabels();
            }
        }