• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# FilterState类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FilterState的典型用法代码示例。如果您正苦于以下问题:C# FilterState类的具体用法?C# FilterState怎么用?C# FilterState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FilterState类属于命名空间,在下文中一共展示了FilterState类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: FilterContext

 public FilterContext(ObjectCache cache, CompositionContainer container, IAssetResolver assetResolver, FilterState state)
 {
     this.Container = container;
     this.Cache = cache;
     this.AssetResolver = assetResolver;
     this.State = state;
 }
开发者ID:ppittle,项目名称:LBi.LostDoc,代码行数:7,代码来源:FilterContext.cs


示例2: RestoreFilterState

    /// <summary>
    /// Restores filter state from the specified object.
    /// </summary>
    /// <param name="state">The object that holds the filter state.</param>
    public override void RestoreFilterState(FilterState state)
    {
        EnsureChildControls();

        base.RestoreFilterState(state);
        drpOptions.SelectedIndex = state.GetInt32("RuleCategory");
    }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:11,代码来源:CategoryFilter.ascx.cs


示例3: FilterContext

 public FilterContext(ObjectCache cache, CompositionContainer container, FilterState state, params IAssetFilter[] filters)
 {
     this.Container = container;
     this.Cache = cache;
     this.State = state;
     this._filters = filters;
 }
开发者ID:LBiNetherlands,项目名称:LBi.LostDoc,代码行数:7,代码来源:FilterContext.cs


示例4: RestoreFilterState

    /// <summary>
    /// Restores filter state from the specified object.
    /// </summary>
    /// <param name="state">The object that holds the filter state.</param>
    public override void RestoreFilterState(FilterState state)
    {
        base.RestoreFilterState(state);
        isAdvancedMode = state.GetBoolean("AdvancedMode");
        ViewState["IsAdvancedMode"] = isAdvancedMode;
        ShowFilterElements(isAdvancedMode);

        fltTimeBetween.ValueFromTime = state.GetDateTime("TimeBetweenFrom");
        fltTimeBetween.ValueToTime = state.GetDateTime("TimeBetweenTo");
    }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:14,代码来源:EventFilter.ascx.cs


示例5: GlobalFilters

 public GlobalFilters(Guid OrgId, int DeptID, int UserID)
 {
     DataRow _row = SelectState(OrgId, DeptID, UserID);
     if (_row == null) return;
     if ((bool)_row["btGlobalFilterEnabled"]) m_State = FilterState.EnabledGlobalFilters;
     else if ((bool)_row["btLimitToAssignedTkts"]) m_State = FilterState.LimitToAssignedTickets;
     else if ((bool)_row["btDisabledReports"]) m_State = FilterState.DisabledReports;
     DataTable _dt = SelectFilterByType(OrgId, DeptID, UserID, FilterType.GlobalFilterTypes);
     foreach (DataRow _r in _dt.Rows)
         if ((bool)_r["State"]) m_Type[(int)_r["Filter"]] = true;
 }
开发者ID:evgeniynet,项目名称:APIBeta,代码行数:11,代码来源:GlobalFilters.cs


示例6: MainDlg

        public MainDlg()
        {
            InitializeComponent();

            try
            {
                m_pPlayer = new ClipPlayer(this.Handle, MSG_ENDOFSEGMENT, MSG_DSEVENT);
                m_bTracking = false;
                m_State = FilterState.Stopped;
            }
            catch
            {
                MessageBox.Show("Please register GMFBridge.DLL with regsvr32");
            }
        }
开发者ID:coolsula,项目名称:vidplaycorder,代码行数:15,代码来源:MainDlg.cs


示例7: MpqFileSourceFilter

        public MpqFileSourceFilter(MpqFile file)
        {
            CopyMediaTypes(detectedMediaType, defaultMediaType);
            name = "Stream Source Filter";
            filterState = FilterState.Stopped;
            var extension = Path.GetExtension(file.Name);
            try
            {
                using (var mediaTypeKey = Registry.ClassesRoot.OpenSubKey(@"Media Type"))
                {
                    if (extension != null && extension.Length > 1)
                        try
                        {
                            using (var extensionsKey = mediaTypeKey.OpenSubKey(@"Extensions"))
                            using (var extensionKey = extensionsKey.OpenSubKey(extension))
                            {
                                var mediaType = new Guid(extensionKey.GetValue("Media Type", MediaType.Stream.ToString()) as string);
                                var subType = new Guid(extensionKey.GetValue("SubType", MediaSubType.None.ToString()) as string);

                                if (mediaType == MediaType.Stream && subType != MediaSubType.None && subType != MediaSubType.Null)
                                {
                                    detectedMediaType.majorType = mediaType;
                                    detectedMediaType.subType = subType;

                                    return;
                                }
                            }
                        }
                        catch (Exception) { }
                    using (var streamMediaKey = mediaTypeKey.OpenSubKey(MediaType.Stream.ToString()))
                        foreach (var subTypeKeyName in streamMediaKey.GetSubKeyNames())
                            try
                            {
                                using (var subTypeKey = streamMediaKey.OpenSubKey(subTypeKeyName))
                                    ;
                            }
                            catch (Exception) { }
                }
            }
            catch (Exception) { }
            finally { outputPin = new StreamOutputPin(this); }
        }
开发者ID:sgraf812,项目名称:crystalmpq,代码行数:42,代码来源:MpqFileSourceFilter.cs


示例8: IncrementToken

            public override bool IncrementToken()
            {
                if (currentState == FilterState.Init)
                {
                    if (!input.IncrementToken())
                        return false;
                }

                currentState = (FilterState) ((int) currentState + 1);

                switch (currentState)
                {
                    case FilterState.WholePath:
                        return true;
                    case FilterState.File:
                        return SetTermToFileName();
                    case FilterState.FileWithoutExtension:
                        return RemoveExtension();
                    default:
                        return NextFileNamePart();
                }
                    
                return false;
            }
开发者ID:jjchiw,项目名称:NuGet.Lucene,代码行数:24,代码来源:PathAnalyzer.cs


示例9: Filter

		/// <summary>
		/// Filter the specified input.
		/// </summary>
		/// <remarks>Filters the specified input buffer starting at the given index,
		/// spanning across the specified number of bytes.</remarks>
		/// <returns>The filtered output.</returns>
		/// <param name="input">The input buffer.</param>
		/// <param name="startIndex">The starting index of the input buffer.</param>
		/// <param name="length">Length.</param>
		/// <param name="outputIndex">Output index.</param>
		/// <param name="outputLength">Output length.</param>
		/// <param name="flush">If set to <c>true</c> flush.</param>
		protected override byte[] Filter (byte[] input, int startIndex, int length, out int outputIndex, out int outputLength, bool flush)
		{
			int endIndex = startIndex + length;
			int index = startIndex;

			// read the compressed size if we haven't already...
			if (state == FilterState.CompressedSize) {
				if (!TryReadInt32 (input, ref index, endIndex, out compressedSize)) {
					outputLength = 0;
					outputIndex = 0;
					return input;
				}

				state = FilterState.UncompressedSize;
				compressedSize -= 12;
			}

			// read the uncompressed size if we haven't already...
			if (state == FilterState.UncompressedSize) {
				if (!TryReadInt32 (input, ref index, endIndex, out uncompressedSize)) {
					outputLength = 0;
					outputIndex = 0;
					return input;
				}

				state = FilterState.Magic;
			}

			// read the compression mode magic if we haven't already...
			if (state == FilterState.Magic) {
				int magic;

				if (!TryReadInt32 (input, ref index, endIndex, out magic)) {
					outputLength = 0;
					outputIndex = 0;
					return input;
				}

				CompressionMode = (RtfCompressionMode) magic;
				state = FilterState.Crc32;
			}

			// read the crc32 checksum if we haven't already...
			if (state == FilterState.Crc32) {
				if (!TryReadInt32 (input, ref index, endIndex, out checksum)) {
					outputLength = 0;
					outputIndex = 0;
					return input;
				}

				state = FilterState.BeginControlRun;
			}

			if (CompressionMode != RtfCompressionMode.Compressed) {
				// the data is not compressed, just keep track of the CRC32 checksum
				crc32.Update (input, index, endIndex - index);

				outputLength = Math.Max (Math.Min (endIndex - index, compressedSize - size), 0);
				size += outputLength;
				outputIndex = index;

				return input;
			}

			int extra = Math.Abs (uncompressedSize - compressedSize);
			int estimatedSize = (endIndex - index) + extra;

			EnsureOutputSize (Math.Max (estimatedSize, 4096), false);
			outputLength = 0;
			outputIndex = 0;

			while (index < endIndex) {
				byte value = input[index++];

				crc32.Update (value);
				size++;

				switch (state) {
				case FilterState.BeginControlRun:
					flags = value;
					flagCount = 1;

					if ((flags & 0x1) != 0)
						state = FilterState.ReadControlOffset;
					else
						state = FilterState.ReadLiteral;
					break;
				case FilterState.ReadLiteral:
//.........这里部分代码省略.........
开发者ID:ALange,项目名称:OutlookPrivacyPlugin,代码行数:101,代码来源:RtfCompressedToRtf.cs


示例10: StoreFilterState

 /// <summary>
 /// Stores filter state to the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void StoreFilterState(FilterState state)
 {
     state.AddValue("type", filter.SelectedValue);
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:8,代码来源:TemplateFilter.ascx.cs


示例11: RestoreFilterState

 /// <summary>
 /// Restores filter state from the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void RestoreFilterState(FilterState state)
 {
     filter.SelectedValue = state.GetString("type");
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:8,代码来源:TemplateFilter.ascx.cs


示例12: btnStop_Click

        private void btnStop_Click(object sender, EventArgs e)
        {
            if (state == FilterState.Stopped) return;

            if (_mediaCtrl != null)
            {
                int hr = _mediaCtrl.Stop();
                DsError.ThrowExceptionForHR(hr);
                state = FilterState.Stopped;
            }
                        // Seek back to the start.
            if (_mediaPos != null)
            {
                _offsetseek = 0;
                seekbar.Value = 0;
                _mediaPos.put_CurrentPosition(0);
            }
        }
开发者ID:andrewjswan,项目名称:mvcentral,代码行数:18,代码来源:Grabber.cs


示例13: RestoreFilterState

 /// <summary>
 /// Restores filter state from the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void RestoreFilterState(FilterState state)
 {
     base.RestoreFilterState(state);
     Value = state.GetString("Value");
 }
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:9,代码来源:UserControlTypeSelector.ascx.cs


示例14: GetState

 public int GetState(int dwMilliSecsTimeout, out FilterState filtState)
 {
     filtState = filterState;
     return S_OK;
 }
开发者ID:sgraf812,项目名称:crystalmpq,代码行数:5,代码来源:MpqFileSourceFilter.cs


示例15: StoreFilterState

 /// <summary>
 /// Stores filter state to the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void StoreFilterState(FilterState state)
 {
     state.AddValue("condition", filter.SelectedValue);
     state.AddValue("email", txtEmail.Text);
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:9,代码来源:SubscriberFilter.ascx.cs


示例16: RestoreFilterState

 /// <summary>
 /// Restores filter state from the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void RestoreFilterState(FilterState state)
 {
     filter.SelectedValue = state.GetString("condition");
     txtName.Text = state.GetString("categoryName");
 }
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:9,代码来源:OptionCategoryNameFilter.ascx.cs


示例17: StoreFilterState

 /// <summary>
 /// Stores filter state to the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void StoreFilterState(FilterState state)
 {
     base.StoreFilterState(state);
     state.AddValue("AdvancedMode", isAdvancedMode);
     state.AddValue("TimeBetweenFrom", fltTimeBetween.ValueFromTime);
     state.AddValue("TimeBetweenTo", fltTimeBetween.ValueToTime);
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:11,代码来源:EventFilter.ascx.cs


示例18: RestoreFilterState

 /// <summary>
 /// Restores filter state from the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void RestoreFilterState(FilterState state)
 {
     base.RestoreFilterState(state);
     dtFromTo.ValueFromTime = state.GetDateTime("FromTime");
     dtFromTo.ValueToTime = state.GetDateTime("ToTime");
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:10,代码来源:Filter.ascx.cs


示例19: StoreFilterState

 /// <summary>
 /// Stores filter state to the specified object.
 /// </summary>
 /// <param name="state">The object that holds the filter state.</param>
 public override void StoreFilterState(FilterState state)
 {
     base.StoreFilterState(state);
     state.AddValue("RecycleBinUser", SelectedUser);
 }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:9,代码来源:RecycleBinFilter.ascx.cs


示例20: RestoreFilterState

    /// <summary>
    /// Restores filter state from the specified object.
    /// </summary>
    /// <param name="state">The object that holds the filter state.</param>
    public override void RestoreFilterState(FilterState state)
    {
        // Before retrieving selected value from saved state is necessary to ensure items in DropDownList (delete before)
        EnsureDropDownListFilterItems();

        base.RestoreFilterState(state);

        SelectedUser = state.GetInt32("RecycleBinUser");
    }
开发者ID:kbuck21991,项目名称:kentico-blank-project,代码行数:13,代码来源:RecycleBinFilter.ascx.cs



注:本文中的FilterState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# FilterType类代码示例发布时间:2022-05-24
下一篇:
C# FilterSettings类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap