当前位置: 首页>>代码示例>>C#>>正文


C# QueuedTextWrite类代码示例

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


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

示例1: WriteError

		public void WriteError (string text)
		{
			var w = new QueuedTextWrite (text, errorTag);
			addQueuedUpdate (w);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:5,代码来源:LogView.cs

示例2: WriteConsoleLogText

		public void WriteConsoleLogText (string text)
		{
			lock (updates) {
				if (lastTextWrite != null && lastTextWrite.Tag == consoleLogTag) {
					lastTextWrite.Write (text);
					return;
				}
			}

			var w = new QueuedTextWrite (text, consoleLogTag);
			addQueuedUpdate (w);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:12,代码来源:LogView.cs

示例3: WriteText

		public void WriteText (string text)
		{
			//raw text has an extra optimisation here, as we can append it to existing updates
			lock (updates) {
				if (lastTextWrite != null) {
					if (lastTextWrite.Tag == null) {
						lastTextWrite.Write (text);
						return;
					}
				}
			}

			var qtw = new QueuedTextWrite (text, null);
			addQueuedUpdate (qtw);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:15,代码来源:LogView.cs

示例4: addQueuedUpdate

		void addQueuedUpdate (QueuedUpdate update)
		{
			lock (updates) {
				updates.Enqueue (update);
				if (!outputDispatcherRunning) {
					GLib.Timeout.Add (50, outputDispatcher);
					outputDispatcherRunning = true;
				}
				lastTextWrite = update as QueuedTextWrite;
			}
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:11,代码来源:LogView.cs

示例5: WriteTask_II

 public void WriteTask_II(object task, string name, string status, List<TaskMessage> error, bool clearOutput)
 {
     if (clearOutput)
         Clear();
     TaskResult tr = new TaskResult(name, status, error);
     //raw text has an extra optimisation here, as we can append it to existing updates
                 /*lock (updates) {
         if (lastTextWrite != null) {
             if (lastTextWrite.Tag == null) {
                 lastTextWrite.Write(tr);
                 return;
             }
         }
     }*/
     QueuedTextWrite qtw = new QueuedTextWrite(tr);
     AddQueuedUpdate(qtw);
 }
开发者ID:moscrif,项目名称:ide,代码行数:17,代码来源:ProcessOutput.cs

示例6: WriteTask

        public void WriteTask(object task, string name, string status, List<TaskMessage> error, bool clearOutput)
        {
            if (clearOutput)
                Clear();

            QueuedTextWrite qtw = new QueuedTextWrite(error);
            AddQueuedUpdate(qtw);
        }
开发者ID:moscrif,项目名称:ide,代码行数:8,代码来源:FindOutput.cs

示例7: Clear

 public void Clear()
 {
     lock (updates) {
         updates.Clear();
         lastTextWrite = null;
         outputDispatcherRunning = false;
     }
     outputModel.Clear();
 }
开发者ID:moscrif,项目名称:ide,代码行数:9,代码来源:ProcessOutput.cs

示例8: OnDestroyed

		protected override void OnDestroyed ()
		{
			base.OnDestroyed ();
			
			lock (updates) {
				updates.Clear ();
				lastTextWrite = null;
			}
			IdeApp.Preferences.CustomOutputPadFont.Changed -= HandleCustomFontChanged;
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:10,代码来源:LogView.cs

示例9: outputDispatchHandler

		//mechanism to to batch copy text when large amounts are being dumped
		bool outputDispatchHandler ()
		{
			lock (updates) {
				lastTextWrite = null;
				if (updates.Count == 0) {
					outputDispatcherRunning = false;
					return false;
				}

				if (!outputDispatcherRunning) {
					updates.Clear ();
					return false;
				}

				while (updates.Count > 0) {
					var up = updates.Dequeue ();
					up.Execute (this);
				}
			}
			return true;
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:22,代码来源:LogView.cs

示例10: OnDestroyed

        protected override void OnDestroyed()
        {
            base.OnDestroyed();

            lock (updates) {
                updates.Clear();
                lastTextWrite = null;
            }
            //IdeApp.Preferences.CustomOutputPadFontChanged -= HandleCustomFontChanged;
            if (customFont != null) {
                customFont.Dispose();
                customFont = null;
            }
        }
开发者ID:moscrif,项目名称:ide,代码行数:14,代码来源:OutputConsole.cs


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