public RealtiesAdd(Realties owner) { InitializeComponent(); _realties = owner; FormClosing += RealtiesAdd_FormClosing; _realtiesApiClient = new RealtiesApiClient(); List <RealtyTypeEntity> realtyTypeEntities = _realtiesApiClient.GetTypes(); type_id.DataSource = realtyTypeEntities; type_id.DisplayMember = "Name"; type_id.ValueMember = "Id"; }
private void недвижимостьToolStripMenuItem_Click(object sender, EventArgs e) { Realties f1 = new Realties(); f1.Show(); }