Пример #1
0
 private void buttonAggiungiProgramma_Click(object sender, EventArgs e)
 {
     formAggiungiProg = new AggiungiProgramma();
     formAggiungiProg.Location = new Point(this.Location.X + (this.Width / 2) - formAggiungiProg.Width / 2, this.Location.Y + (this.Height / 2) - formAggiungiProg.Height / 2);
     formAggiungiProg.ShowDialog();
     ProgrammaAggiunto();
 }
Пример #2
0
 private void buttonModificaProgramma_Click(object sender, EventArgs e)
 {
     if (listBoxElencoAvvio.SelectedIndex != -1)
     {
         formAggiungiProg = new AggiungiProgramma(listaProgrammi[listBoxElencoAvvio.SelectedIndex]);
         formAggiungiProg.Location = new Point(this.Location.X + (this.Width / 2) - formAggiungiProg.Width / 2, this.Location.Y + (this.Height / 2) - formAggiungiProg.Height / 2);
         formAggiungiProg.ShowDialog();
         ProgrammaModificato();
     }
 }