示例#1
0
        private void button7_Click(object sender, EventArgs e)
        {
            var Row = GetDataRow(table_Estate);

            if (Row == null)
            {
                return;
            }

            Form f = new EstateViewer(null, Row.Cells[1].Value.ToString(), "view", null);

            f.ShowDialog();
        }
示例#2
0
        private void BuyNow_Click(object sender, EventArgs e)
        {
            if (lbl_ID.Text == string.Empty)
            {
                MessageBox.Show("ID not given");
                return;
            }
            if (Adresses.Text == string.Empty)
            {
                MessageBox.Show("Adress not given");
                return;
            }

            string[] ComboArray = Adresses.Text.Split(' ');
            Form     f          = new EstateViewer(int.Parse(lbl_ID.Text), ComboArray[0] + " " + ComboArray[1], "purchase", UserController.GetAgentByName(cBox_agents.Text).ID);

            f.ShowDialog();
        }