예제 #1
0
        /// <summary>
        /// Binds the defined type dropdown.
        /// </summary>
        /// <param name="ListControl">The list control.</param>
        /// <param name="definedTypeGuid">The defined type GUID.</param>
        /// <param name="userPreferenceKey">The user preference key.</param>
        private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
        {
            listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
            listControl.Items.Insert( 0, new ListItem( string.Empty, string.Empty ) );

            if ( !string.IsNullOrWhiteSpace( gfTransactions.GetUserPreference( userPreferenceKey ) ) )
            {
                listControl.SelectedValue = gfTransactions.GetUserPreference( userPreferenceKey );
            }
        }
예제 #2
0
 /// <summary>
 /// Binds the type of the list to defined.
 /// </summary>
 /// <param name="listControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="insertBlankOption">if set to <c>true</c> [insert blank option].</param>
 protected void BindListToDefinedType( ListControl listControl, string definedTypeGuid, bool insertBlankOption = false )
 {
     var definedType = DefinedTypeCache.Read( new Guid( definedTypeGuid ) );
     listControl.BindToDefinedType( definedType, insertBlankOption );
 }
예제 #3
0
 /// <summary>
 /// Binds the defined type dropdown.
 /// </summary>
 /// <param name="ListControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="userPreferenceKey">The user preference key.</param>
 private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
 {
     listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
     listControl.SelectedValue = !string.IsNullOrWhiteSpace( gfBatchFilter.GetUserPreference( userPreferenceKey ) ) ?
         listControl.SelectedValue = gfBatchFilter.GetUserPreference( userPreferenceKey ) : null;
 }
예제 #4
0
        /// <summary>
        /// Binds the defined type dropdown.
        /// </summary>
        /// <param name="ListControl">The list control.</param>
        /// <param name="definedTypeGuid">The defined type GUID.</param>
        /// <param name="userPreferenceKey">The user preference key.</param>
        private void BindDefinedTypeDropdown( ListControl ListControl, Guid definedTypeGuid, string userPreferenceKey )
        {
            ListControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
            //ListControl.Items.Insert( 0, new ListItem( All.Text, All.Id.ToString() ) );

            ListControl.SelectedValue = !string.IsNullOrWhiteSpace( rFBFilter.GetUserPreference( userPreferenceKey ) ) ?
                ListControl.SelectedValue = rFBFilter.GetUserPreference( userPreferenceKey ) : null;
        }
 /// <summary>
 /// Binds the defined type dropdown.
 /// </summary>
 /// <param name="ListControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="userPreferenceKey">The user preference key.</param>
 private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
 {
     listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
 }