Пример #1
0
        //新增类型
        private void addType_Click(object sender, EventArgs e)
        {
            //if (m_thread != null && m_thread.IsAlive)
            //    m_thread.Abort();

            MemberTypeForm addType = new MemberTypeForm(null);

            if (addType.ShowDialog() == DialogResult.OK)
            {
                createTree();
            }
        }
Пример #2
0
        //编辑类型
        private void editType_Click(object sender, EventArgs e)
        {
            //if (m_thread != null && m_thread.IsAlive)
            //    m_thread.Abort();

            if (typeTree.SelectedNode == null ||
                db.MemberType.FirstOrDefault(x => x.name == typeTree.SelectedNode.Text) == null)
            {
                GeneralClass.printErrorMsg("没有选择类别!");
                return;
            }

            MemberType     memberType = db.MemberType.FirstOrDefault(x => x.name == typeTree.SelectedNode.Text);
            MemberTypeForm editType   = new MemberTypeForm(memberType);

            if (editType.ShowDialog() == DialogResult.OK)
            {
                createTree();
            }
        }
Пример #3
0
        //编辑类型
        private void editType_Click(object sender, EventArgs e)
        {
            //if (m_thread != null && m_thread.IsAlive)
            //    m_thread.Abort();

            if (typeTree.SelectedNode == null ||
                db.MemberType.FirstOrDefault(x => x.name == typeTree.SelectedNode.Text) == null)
            {
                GeneralClass.printErrorMsg("没有选择类别!");
                return;
            }

            MemberType memberType = db.MemberType.FirstOrDefault(x => x.name == typeTree.SelectedNode.Text);
            MemberTypeForm editType = new MemberTypeForm(memberType);
            if (editType.ShowDialog() == DialogResult.OK)
                createTree();
        }
Пример #4
0
        //新增类型
        private void addType_Click(object sender, EventArgs e)
        {
            //if (m_thread != null && m_thread.IsAlive)
            //    m_thread.Abort();

            MemberTypeForm addType = new MemberTypeForm(null);
            if (addType.ShowDialog() == DialogResult.OK)
                createTree();
        }