Пример #1
0
        private void tv_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            TreeNode n = tv.SelectedNode;

            if (n != null && n.Tag is LJZ)
            {
                LJZ     ljz = (LJZ)n.Tag;
                FormLjz f   = new FormLjz(ljz);
                f.ShowDialog(this);
                init();
            }
        }
Пример #2
0
        private void b_createLjz_Click(object sender, EventArgs e)
        {
            if (this.selectedZrz == null)
            {
                MessageBox.Show(this, "请先选择自然幢");
                return;
            }

            FormLjz      form = new FormLjz(ls.newLjz(selectedZrz));
            DialogResult r    = form.ShowDialog(this);

            if (r == DialogResult.OK)
            {
                loadLjzList(selectedZrz);
            }
        }