Esempio 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();
     }
 }
Esempio 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;
        }
Esempio 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;
            }
        }
Esempio 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();
     }
 }