示例#1
0
        void SearchDanKai(string StrType, string StrOpen)
        {
            DanKaiMenKuan.Value        = ToInt(xml.Search(DOOR, StrType, StrOpen, "门宽"));
            DanKaiMenGao.Value         = ToInt(xml.Search(DOOR, StrType, StrOpen, "门高"));
            DanKaiMenShanWaiBan1.Value = ToInt(xml.Search(DOOR, StrType, StrOpen, "门扇外板-1"));
            DanKaiMenShanWaiBan2.Value = ToInt(xml.Search(DOOR, StrType, StrOpen, "门扇外板-2"));
            DanKaiMenShanNeiBan1.Value = ToInt(xml.Search(DOOR, StrType, StrOpen, "门扇内板-1"));
            DanKaiMenShanNeiBan2.Value = ToInt(xml.Search(DOOR, StrType, StrOpen, "门扇内板-2"));

            GboxSanQi.Visible  = false;
            GboxDuiKai.Visible = false;
            GboxDanKai.Visible = true;
            GboxDanKai.Text    = StrType + "->" + StrOpen;
        }
示例#2
0
        private void Cbox_MouseDown(object sender, MouseEventArgs e)
        {
            CurrentCbox = (ComboBox)sender;

            if (CurrentCbox.Tag == null)
            {
                return;
            }
            if (CurrentCbox.Text == "")
            {
                ToolMenuAdd.Enabled = false;
                ToolMenuDel.Enabled = false;
            }
            else
            if (xml.Search(CBoxType.Text + "//" + CurrentCbox.Tag.ToString(), CurrentCbox.Text) != null)
            {
                ToolMenuAdd.Enabled = false;
                ToolMenuDel.Enabled = true;
            }
            else
            {
                ToolMenuAdd.Enabled = true;
                ToolMenuDel.Enabled = false;
            }
        }