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

            fh.ShowDialog();
            fh.Dispose();
        }
Example #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();
        }
Example #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();
        }
Example #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 {}
            }
        }