Exemplo n.º 1
0
        void btnSubSubItemAdd_Click(object sender, EventArgs e)
        {
            if (this.m_objSubItem == null)
            {
                return;
            }
            AddStructure addSubSub = new AddStructure("添加子子結構", null);
            DialogResult result = addSubSub.ShowDialog();
            if (result == DialogResult.Yes)
            {
                string name = addSubSub.m_StructreName;
                this.EditState = Common.DefineConstantValue.EditStateEnum.OE_Insert;
                SetDataObj(m_Type._Three, name);
                Save();
                this.m_objSubSubItem = this.m_objInfo;
                LoadStructure();
                LoadSubStructure();
                LoadSubSubStructure();

                this.m_objInfo = null;
            }
        }
Exemplo n.º 2
0
 void btnSubSubItemModify_Click(object sender, EventArgs e)
 {
     if (this.m_objSubSubItem == null)
     {
         return;
     }
     AddStructure addSubSub = new AddStructure("修改子子結構", this.m_objSubSubItem.stt_cDesc);
     DialogResult result = addSubSub.ShowDialog();
     if (result == DialogResult.Yes)
     {
         string name = addSubSub.m_StructreName;
         this.EditState = Common.DefineConstantValue.EditStateEnum.OE_Update;
         SetDataObj(m_Type._Three, name);
         this.m_objInfo.stt_cKey3 = this.m_objSubSubItem.stt_cKey3;
         Save();
         LoadStructure();
         LoadSubStructure();
         LoadSubSubStructure();
     }
 }
Exemplo n.º 3
0
 void btnItemAdd_Click(object sender, EventArgs e)
 {
     this.m_objItem = null;
     AddStructure add = new AddStructure("添加結構", null);
     DialogResult result = add.ShowDialog();
     if (result == DialogResult.Yes)
     {
         string name = add.m_StructreName;
         this.EditState = Common.DefineConstantValue.EditStateEnum.OE_Insert;
         SetDataObj(m_Type._One, name);
         Save();
         this.m_objItem = this.m_objInfo;
         LoadStructure();
         this.m_objInfo = null;
     }
 }