Example #1
0
 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();
     }
 }
        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();
        }