示例#1
0
 private void LoadTemplateTypes()
 {
     var client = new TemplateManagerClient();
     cmbTemplateTypes.DataSource = null;
     cmbTemplateTypes.DataSource = client.GetTemplateTypes();
     cmbTemplateTypes.DisplayMember = "TemplateObject";
     cmbTemplateTypes.ValueMember = "TemplateTypeId";
     client.Close();
 }
示例#2
0
 private void GetTemplates(int templetTypeId)
 {
     var client = new TemplateManagerClient();
     LstTemplates.DataSource = null;
     LstTemplates.DataSource = client.GetTemplates(templetTypeId);
     LstTemplates.DisplayMember = "Name";
     LstTemplates.ValueMember = "TemplateId";
     client.Close();
 }
示例#3
0
        private void GetTemplates(int templetTypeId)
        {
            var client = new TemplateManagerClient();

            LstTemplates.DataSource    = null;
            LstTemplates.DataSource    = client.GetTemplates(templetTypeId);
            LstTemplates.DisplayMember = "Name";
            LstTemplates.ValueMember   = "TemplateId";
            client.Close();
        }
示例#4
0
        private void LoadTemplateTypes()
        {
            var client = new TemplateManagerClient();

            cmbTemplateTypes.DataSource    = null;
            cmbTemplateTypes.DataSource    = client.GetTemplateTypes();
            cmbTemplateTypes.DisplayMember = "TemplateObject";
            cmbTemplateTypes.ValueMember   = "TemplateTypeId";
            client.Close();
        }
示例#5
0
        private void ShowFields(int templateId)
        {
            var client = new TemplateManagerClient();

            LstFields.DataSource = null;
            LstFields.Items.Clear();
            LstFields.DataSource    = client.GetFieldsByTemplateId(templateId);
            LstFields.DisplayMember = "Field";
            LstFields.ValueMember   = "TemplateId";
            client.Close();
        }
示例#6
0
        private void ShowFields(int templateId)
        {
            var client = new TemplateManagerClient();

            LstFields.DataSource = null;
            LstFields.Items.Clear();
            LstFields.DataSource = client.GetFieldsByTemplateId(templateId);
            LstFields.DisplayMember = "Field";
            LstFields.ValueMember = "TemplateId";
            client.Close();
        }