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); } }
private void ModifSiteMenuItem_Click(object sender, EventArgs e) { CreateSiteWindow csw = new CreateSiteWindow(siteLB.SelectedItem as Site); csw.ShowDialog(); MAJTreeView(); MAJgmap(); }
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(); }