Esempio n. 1
0
        private void 出租房源设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHouse fh = new frmHouse();

            fh.ShowDialog();
            fh.Dispose();
        }
Esempio n. 2
0
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            string   str = this.listView1.SelectedItems[0].Text.ToString();
            frmHouse fh  = new frmHouse();

            fh.M_str_Show = str;
            this.Close();
            fh.Show();
        }
Esempio n. 3
0
        private void butIHouse_Click(object sender, EventArgs e)
        {
            frmHouse fh = new frmHouse();
            frmMain  fm = new frmMain();

            fh.M_str_temp = cu.id;

            fh.Show();
        }
Esempio n. 4
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            Int32 selectedRowCount = dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected);

            if (selectedRowCount > 0)
            {
                try
                {
                    string str = this.dataGridView1.SelectedCells[0].Value.ToString();
                    if (str.IndexOf("hou") != -1)
                    {
                        frmHouse fh = new frmHouse();
                        fh.M_str_Show = str;
                        fh.ShowDialog(this);
                    }
                    str = string.Empty;
                }
                catch {}
            }
        }