Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 private void ModifTrajetMenuItem_Click(object sender, EventArgs e)
 {
     if (trajetTV.SelectedNode.Tag is Trajet)
     {
         CreateTrajetWindow ctw = new CreateTrajetWindow(trajetTV.SelectedNode.Tag as Trajet);
         ctw.ShowDialog();
         MAJTreeView();
         MAJgmap();
     }
 }