public addSpectacle(List <Hall> halls, List <Spectacle> spectacles) { InitializeComponent(); // Устанавливаем иконку формы Icon = icons.addRecord; // /*dateTimePicker_perfomanceDate.Format = DateTimePickerFormat.Custom; * dateTimePicker_perfomanceDate.CustomFormat = "MM/dd/yyyy hh:mm:ss";*/ // Устанавливаем данные this.halls = halls; this.spectacles = spectacles; // Заполняем combBox fillComboBox(); // По умолчанию пользователь не ввел данные ifNotLeft = false; newSpectacle = new Spectacle(); }
private void ShowSpectacle() { Spectacle fSpectacle = new Spectacle(); fSpectacle.MdiParent = this; fSpectacle.Show(); }