コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: CatfishStudio/theater
 private void ShowSpectacle()
 {
     Spectacle fSpectacle = new Spectacle();
     fSpectacle.MdiParent = this;
     fSpectacle.Show();
 }