Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="T:FwMultilingualPropView"/> class.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public FwMultilingualPropView(IFwMultilingualPropViewDataSource datasource) : base()
        {
            AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            AutoSizeRowsMode    = DataGridViewAutoSizeRowsMode.AllCells;
            RowHeadersVisible   = false;
            AllowUserToAddRows  = false;
            EditMode            = DataGridViewEditMode.EditOnEnter;
            CausesValidation    = false;

            if (datasource == null)
            {
                datasource = new FwMultilingualPropViewDataSource();
            }

            PropertyDataSource      = datasource;
            PropertyDataSource.Grid = this;

            // Can't check for DesignMode here because Site property isn't set yet, so
            // DesignMode always returns false.
        }
Exemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:FwMultilingualPropView"/> class.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public FwMultilingualPropView(IFwMultilingualPropViewDataSource datasource) : base()
		{
			AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
			AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
			RowHeadersVisible = false;
			AllowUserToAddRows = false;
			EditMode = DataGridViewEditMode.EditOnEnter;
			CausesValidation = false;

			if (datasource == null)
				datasource = new FwMultilingualPropViewDataSource();

			PropertyDataSource = datasource;
			PropertyDataSource.Grid = this;

			// Can't check for DesignMode here because Site property isn't set yet, so
			// DesignMode always returns false.
		}