Exemplo n.º 1
0
 private void lstSite_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (lstSite.SelectedItem != null)
     {
         var newSiteWizard = new FrmNewSite(setting, lstSite.SelectedItem.ToString());
         newSiteWizard.ShowDialog();
         newSiteWizard.Dispose();
     }
 }
Exemplo n.º 2
0
        private void btnAddSite_Click(object sender, EventArgs e)
        {
            var newSiteWizard = new FrmNewSite(setting, string.Empty);
            newSiteWizard.ShowDialog();
            newSiteWizard.Dispose();
            LoadSites();

            if (lstSite.Items.Count > 0)
                lstSite.SelectedIndex = lstSite.Items.Count - 1;
        }
Exemplo n.º 3
0
        private void btnAddSite_Click(object sender, EventArgs e)
        {
            var newSiteWizard = new FrmNewSite(setting, string.Empty);

            newSiteWizard.ShowDialog();
            newSiteWizard.Dispose();
            LoadSites();

            if (lstSite.Items.Count > 0)
            {
                lstSite.SelectedIndex = lstSite.Items.Count - 1;
            }
        }
Exemplo n.º 4
0
 private void lstSite_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (lstSite.SelectedItem != null)
     {
         var newSiteWizard = new FrmNewSite(setting, lstSite.SelectedItem.ToString());
         newSiteWizard.ShowDialog();
         newSiteWizard.Dispose();
     }
 }