Exemplo n.º 1
0
        private void tsEditPublish_Click_1(object sender, EventArgs e)
        {
            if (ctxPublishes.Tag == null)
            {
                return;
            }
            int rownum = (int)ctxPublishes.Tag;

            string[] m;
            if (!GetMachineNameAndSelectedPub(rownum, out m))
            {
                return;
            }

            Publish pold = Publish.Load(m[1], pubRoot);

            frmNewPublish newpub = new frmNewPublish(pubRoot);

            newpub.PopulateWithExistingPublish(pold);
            newpub.ShowDialog();
            if (newpub.DialogResult == DialogResult.OK)
            {
                Publish p = newpub.newPublish;
                p.Save(pubRoot);
                UpdateLocalPublishes();
            }
        }
Exemplo n.º 2
0
        private void btnCreateNewPublish_Click(object sender, EventArgs e)
        {
            frmNewPublish newpub = new frmNewPublish(pubRoot);

            newpub.ShowDialog();
            if (newpub.DialogResult == DialogResult.OK)
            {
                Publish p = newpub.newPublish;
                p.Save(pubRoot);
                UpdateLocalPublishes();
                cmbPublishes.SelectedItem = p;
            }
        }
Exemplo n.º 3
0
        private void btnEditPublish_Click(object sender, EventArgs e)
        {
            if (cmbPublishes.SelectedItem == null)
            {
                return;
            }
            Publish pold = Publish.Load((string)cmbPublishes.SelectedItem, pubRoot);

            frmNewPublish newpub = new frmNewPublish(pubRoot);

            newpub.PopulateWithExistingPublish(pold);
            newpub.ShowDialog();
            if (newpub.DialogResult == DialogResult.OK)
            {
                Publish p = newpub.newPublish;
                p.Save(pubRoot);
                UpdateLocalPublishes();
                cmbPublishes.SelectedItem = p;
            }
        }