Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            RoomTypeMDL.ui = 1;
            FrmEditRoom fer = new FrmEditRoom();

            fer.ShowDialog();
            listView1.Items.Clear();
            listView2.Items.Clear();
            设置_Load(null, null);
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count < 1)
            {
                MessageBox.Show("请选择一条数据");
                return;
            }
            RoomTypeMDL.tid    = Convert.ToInt32(listView1.SelectedItems[0].SubItems[2].Text);
            RoomTypeMDL.tname  = Convert.ToString(listView1.SelectedItems[0].SubItems[0].Text);
            RoomTypeMDL.tmount = Convert.ToString(listView1.SelectedItems[0].SubItems[1].Text);
            RoomTypeMDL.ui     = 2;
            FrmEditRoom fer = new FrmEditRoom();

            fer.ShowDialog();
            listView1.Items.Clear();
            listView2.Items.Clear();
            设置_Load(null, null);
        }