public override int GetHashCode() { unchecked { return(((Inputs?.GetHashCode() ?? 0) * 397) ^ (ConstructorName?.GetHashCode() ?? 0)); } }
private void ButtonAdd_Click(object sender, EventArgs e) { if (CreatedObjects.Items.Count == 0) SwitchButtons(); var audioStudio = new AudioRecordingStudio( ConstructorName.Text, ConstructorAdress.Text, (float)ConstructorMoney.Value, (float)ConstructorRecordCost.Value, (int)ConstructorRecordDuration.Value); CreatedObjects.Items.Add(audioStudio); CreatedObjects.SelectedIndex = CreatedObjects.Items.Count - 1; ConstructorName.Clear(); ConstructorAdress.Clear(); ConstructorMoney.Value = 0; ConstructorRecordCost.Value = 0; ConstructorRecordDuration.Value = 0; }