private void EditArchitectures()
 {
     ArchitectureList list = new ArchitectureList();
     for (int i = 0; i < this.dgvArchitectures.SelectedRows.Count; i++)
     {
         list.Add(this.Architectures[this.dgvArchitectures.SelectedRows[i].Index]);
     }
     frmEditArchitecture architecture = new frmEditArchitecture();
     architecture.MainForm = this.MainForm;
     architecture.Architectures = list;
     architecture.ShowDialog();
     this.dgvArchitectures.Invalidate();
 }
Esempio n. 2
0
 private void cmenuArchitectureProperty_Click(object sender, EventArgs e)
 {
     if (this.CurrentArchitecture != null)
     {
         frmEditArchitecture architecture = new frmEditArchitecture();
         architecture.MainForm = this;
         architecture.editingArchitecture = this.CurrentArchitecture;
         if (architecture.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.pnlMap.Invalidate();
         }
     }
 }
 private void btnEditArchitecture_Click(object sender, EventArgs e)
 {
     if (this.clbArchitectures.SelectedItem != null)
     {
         frmEditArchitecture architecture = new frmEditArchitecture();
         architecture.editingArchitecture = this.clbArchitectures.SelectedItem as Architecture;
         architecture.ShowDialog();
     }
 }