Ejemplo n.º 1
0
 public WebGadgetItem()
 {
     InitializeComponent();
     dgvGadgets.AutoGenerateColumns = false;
     Group           = "Web2 Gadget";
     PackagesData    = new XElement("Response");
     SelectedPackage = null;
 }
Ejemplo n.º 2
0
        private void PuplateTabData(SuperTabItem superTabItem)
        {
            dgvGadgets.DataSource = null;
            SelectedPackage       = superTabItem.Tag as GadgetPackageRecord;

            if (SelectedPackage != null)
            {
                List <GadgetGridRow> rows = new List <GadgetGridRow>();
                foreach (XElement gadget in SelectedPackage.EachGadget())
                {
                    rows.Add(new GadgetGridRow(gadget.AttributeText("deployPath")));
                }

                dgvGadgets.DataSource = new BindingList <GadgetGridRow>(rows);
            }
        }
Ejemplo n.º 3
0
        private void SaveGadget(GadgetPackageRecord record)
        {
            try
            {
                ConnectionHelper ch = ConnectionHelper.GetConnection(PrimaryKey);

                XElement req = new XElement("Request",
                                            new XElement("Package",
                                                         new XElement("Field", record.Definition),
                                                         new XElement("Condition",
                                                                      new XElement("Uid", record.UID))));

                ch.CallService("UpdateWebPackage", new Envelope(new XStringHolder(req)));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 4
0
        private void SaveGadget(GadgetPackageRecord record)
        {
            try
            {
                ConnectionHelper ch = ConnectionHelper.GetConnection(PrimaryKey);

                XElement req = new XElement("Request",
                    new XElement("Package",
                        new XElement("Field", record.Definition),
                        new XElement("Condition",
                            new XElement("Uid", record.UID))));

                ch.CallService("UpdateWebPackage", new Envelope(new XStringHolder(req)));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 5
0
        private void PuplateTabData(SuperTabItem superTabItem)
        {
            dgvGadgets.DataSource = null;
            SelectedPackage = superTabItem.Tag as GadgetPackageRecord;

            if (SelectedPackage != null)
            {
                List<GadgetGridRow> rows = new List<GadgetGridRow>();
                foreach (XElement gadget in SelectedPackage.EachGadget())
                    rows.Add(new GadgetGridRow(gadget.AttributeText("deployPath")));

                dgvGadgets.DataSource = new BindingList<GadgetGridRow>(rows);
            }
        }