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

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