コード例 #1
0
        private void FinirButton_Click(object sender, EventArgs e)
        {
            try
            {
                switch (mode)
                {
                case AJOUTTRAJET:
                    CreateTrajetWindow newTrajetWin = new CreateTrajetWindow();
                    newTrajetWin.ShowDialog();
                    break;

                case AJOUTSITE:
                    CreateSiteWindow newSiteWin = new CreateSiteWindow();
                    newSiteWin.ShowDialog();
                    break;
                }
                mode = MODENORMAL;
                FinirButton.Visible = false;
                SiteSave();
                MAJgmap();
                MAJTreeView();
            }
            catch (Exception ex)
            {
                formPrincipale.writeDebug("finirButton : " + ex.Message);
            }
        }
コード例 #2
0
        private void ModifSiteMenuItem_Click(object sender, EventArgs e)
        {
            CreateSiteWindow csw = new CreateSiteWindow(siteLB.SelectedItem as Site);

            csw.ShowDialog();
            MAJTreeView();
            MAJgmap();
        }
コード例 #3
0
 private void siteLB_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (siteLB.SelectedItem != null && siteLB.SelectedItem is Site)
     {
         CreateSiteWindow csw = new CreateSiteWindow(siteLB.SelectedItem as Site);
         csw.ShowDialog();
     }
     MAJgmap();
     MAJTreeView();
 }