Example #1
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (IsTemplate())
     {
         ModuleAdd md = new ModuleAdd(nodeText, node);
         md.ShowDialog();
         if (md.DialogResult == DialogResult.OK)
         {
             BindModule();
         }
     }
     else
     {
         MessageBox.Show("该产品已有模板,不可重复添加!");
     }
 }
Example #2
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            string dt = Toos.ServiceReferenceManager.GetClient().RunServerAPI("BLL.SSW", "GetTemplate", nodeText);
            List <P_SSW_TemplateList> proc = JsonConvert.DeserializeObject <List <P_SSW_TemplateList> >(dt);

            if (IsTemplate())
            {
                MessageBox.Show("暂无模板,不可修改,请添加模板!");
            }
            else
            {
                string    mid = proc[0].Template_id.ToString();
                ModuleAdd md  = new ModuleAdd(mid);
                md.ShowDialog();
                if (md.DialogResult == DialogResult.OK)
                {
                    BindModule();
                }
            }
        }