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