public DirectoryDirectionsView(IDirectoryDirectionsPresenter presenter, IBaseModel <Direction> model, Direction direction)
            : this()
        {
            _presenter = presenter;
            _model     = model;

            _presenter.Init(this, _model);

            SetValues(direction);

            _isEdit = true;
        }
        /// <summary>
        /// Создание представления "Справочник направлений".
        /// </summary>
        /// <param name="presenter">Представитель.</param>
        /// <param name="model">Модель.</param>
        /// <param name="isStandard">Режим отображения представления.</param>
        public DirectoryDirectionsView(IDirectoryDirectionsPresenter presenter, IBaseModel <Direction> model, int businessTripId)
            : this()
        {
            _presenter = presenter;
            _model     = model;
            _presenter.Init(this, _model);

            if (Settings.Default.WindowStateMaximizedViewDirections)
            {
                this.WindowState = FormWindowState.Maximized;
            }
            else
            {
                this.WindowState = FormWindowState.Normal;
                this.Size        = new Size(Settings.Default.WindowWidthViewDirections, Settings.Default.WindowHeightViewDirections);
            }

            CurrentDirection = new Direction();

            _businessTripId = businessTripId;
            _isEdit         = false;
        }