Example #1
0
        private void CreateButton_Click(object sender, EventArgs e)
        {
            SiteDetailForm newSiteForm = new SiteDetailForm(true);
            if (DialogResult.Cancel == newSiteForm.ShowDialog())
                return;

            Site site = newSiteForm.Site;
            Sites sites = new Sites();
            sites.Add(site);

            HTTPAgent.instance().addSites(this, sites);
        }
Example #2
0
        private void ViewButton_Click(object sender, EventArgs e)
        {
            Site site = (Site)SiteList.SelectedItem;

            SiteDetailForm siteForm = new SiteDetailForm(false);
            siteForm.Site = site;
            if (mAvailableSites != null)
                siteForm.AllowUpdate = false;
            siteForm.ShowDialog();
        }
Example #3
0
 private void SiteDetailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode siteNode = WorkspaceTreeView.SelectedNode;
     Site site = ((SiteModel)siteNode.Tag).Site;
     SiteDetailForm siteDetailForm = new SiteDetailForm(false);
     siteDetailForm.Site = site;
     siteDetailForm.AllowUpdate = false;
     siteDetailForm.ShowDialog();
 }