Ejemplo n.º 1
0
 public static void Detach(WeakTimer t)
 {
     for (int i = _listeners.Count - 1; i >= 0; i--)
     {
         WeakReference wr = (WeakReference)_listeners[i];
         try
         {
             if (wr.Target == t)
             {
                 _listeners.RemoveAt(i);
             }
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 2
0
        public static void Attach(WeakTimer t)
        {
            WeakReference wr = new WeakReference(t);

            _listeners.Add(wr);
        }
Ejemplo n.º 3
0
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		protected void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            this.picImage = new System.Windows.Forms.PictureBox();
            this.tmrFeedback = new AIMS.Libraries.CodeEditor.Core.Timers.WeakTimer(this.components);
            this.regionHandler1 = new AIMS.Libraries.CodeEditor.WinForms.IntelliMouse.RegionHandler(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.picImage)).BeginInit();
            this.SuspendLayout();
            // 
            // picImage
            // 
            this.picImage.Location = new System.Drawing.Point(17, 17);
            this.picImage.Name = "picImage";
            this.picImage.Size = new System.Drawing.Size(100, 50);
            this.picImage.TabIndex = 0;
            this.picImage.TabStop = false;
            // 
            // tmrFeedback
            // 
            this.tmrFeedback.Enabled = true;
            this.tmrFeedback.Interval = 10;
            this.tmrFeedback.Tick += new System.EventHandler(this.tmrFeedback_Tick);
            // 
            // regionHandler1
            // 
            this.regionHandler1.Control = null;
            this.regionHandler1.MaskImage = null;
            this.regionHandler1.TransparencyKey = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
            // 
            // IntelliMouseControl
            // 
            this.ParentChanged += new System.EventHandler(this.IntelliMouseControl_ParentChanged);
            ((System.ComponentModel.ISupportInitialize)(this.picImage)).EndInit();
            this.ResumeLayout(false);

		}
		/// <summary>
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new Container();
			ResourceManager resources = new ResourceManager(typeof (EditViewControl));
			this.Filler = new PictureBox();
			this.CaretTimer = new WeakTimer(this.components);
			this.tooltip = new ToolTip(this.components);

			this.SuspendLayout();
            bool IntelliDisabled = true;
            //if (_CodeEditor != null)
            //    IntelliDisabled = _CodeEditor.DisableIntelliMouse;
			//if (!IntelliDisabled)
			//{
				this.IntelliMouse = new IntelliMouseControl();
				// 
				// IntelliMouse
				// 
				//this.IntelliMouse.BackgroundImage = ((Bitmap) (resources.GetObject("IntelliMouse.BackgroundImage")));
				this.IntelliMouse.Image = ((Bitmap) (resources.GetObject("IntelliMouse.Image")));
				this.IntelliMouse.Location = new Point(197, 157);
				this.IntelliMouse.Name = "IntelliMouse";
				this.IntelliMouse.Size = new Size(28, 28);
				this.IntelliMouse.TabIndex = 4;
				this.IntelliMouse.TransparencyKey = Color.FromArgb(((Byte) (255)), ((Byte) (0)), ((Byte) (255)));
				this.IntelliMouse.Visible = false;
				this.IntelliMouse.EndScroll += new EventHandler(this.IntelliMouse_EndScroll);
				this.IntelliMouse.BeginScroll += new EventHandler(this.IntelliMouse_BeginScroll);
				this.IntelliMouse.Scroll += new ScrollEventHandler(this.IntelliMouse_Scroll);

			//}


			// 
			// hScroll
			// 
			this.hScroll.Cursor = System.Windows.Forms.Cursors.Default;
			this.hScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScroll_Scroll);
            this.vScroll.Visible = false;
			// 
			// vScroll
			// 
			this.vScroll.Cursor = System.Windows.Forms.Cursors.Default;
			this.vScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.vScroll_Scroll);
            this.vScroll.Visible = false;
			// 
			// CaretTimer
			// 
			this.CaretTimer.Enabled = true;
			this.CaretTimer.Interval = 500;
			this.CaretTimer.Tick += new EventHandler(this.CaretTimer_Tick);
			// 
			// tooltip
			// 
			this.tooltip.AutoPopDelay = 50000;
			this.tooltip.InitialDelay = 0;
			this.tooltip.ReshowDelay = 1000;
			this.tooltip.ShowAlways = true;
			// 
			// TopThumb
			// 
			this.TopThumb.BackColor = SystemColors.Control;
			this.TopThumb.Cursor = System.Windows.Forms.Cursors.HSplit;
			this.TopThumb.Location = new Point(101, 17);
			this.TopThumb.Name = "TopThumb";
			this.TopThumb.Size = new Size(16, 8);
			this.TopThumb.TabIndex = 3;
			this.TopThumb.Visible = false;
			// 
			// LeftThumb
			// 
			this.LeftThumb.BackColor = SystemColors.Control;
			this.LeftThumb.Cursor = System.Windows.Forms.Cursors.VSplit;
			this.LeftThumb.Location = new Point(423, 17);
			this.LeftThumb.Name = "LeftThumb";
			this.LeftThumb.Size = new Size(8, 16);
			this.LeftThumb.TabIndex = 3;
			this.LeftThumb.Visible = false;
			// 
			// EditViewControl
			// 
			this.AllowDrop = true;
			this.Controls.AddRange(new Control[]
				{
					this.IntelliMouse
				});
			this.Size = new Size(240, 216);
			this.LostFocus += new EventHandler(this.EditViewControl_Leave);
			this.GotFocus += new EventHandler(this.EditViewControl_Enter);
			this.ResumeLayout(false);


		}
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CodeEditorControl));
            this._GutterIcons = new System.Windows.Forms.ImageList(this.components);
            this._AutoListIcons = new System.Windows.Forms.ImageList(this.components);
            this.ParseTimer = new AIMS.Libraries.CodeEditor.Core.Timers.WeakTimer(this.components);
            this.SuspendLayout();
            // 
            // _GutterIcons
            // 
            this._GutterIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_GutterIcons.ImageStream")));
            this._GutterIcons.TransparentColor = System.Drawing.Color.Fuchsia;
            this._GutterIcons.Images.SetKeyName(0, "break_point.png");
            this._GutterIcons.Images.SetKeyName(1, "BookMarkForGuttor.bmp");
            this._GutterIcons.Images.SetKeyName(2, "");
            this._GutterIcons.Images.SetKeyName(3, "");
            this._GutterIcons.Images.SetKeyName(4, "");
            this._GutterIcons.Images.SetKeyName(5, "");
            this._GutterIcons.Images.SetKeyName(6, "");
            this._GutterIcons.Images.SetKeyName(7, "");
            this._GutterIcons.Images.SetKeyName(8, "");
            this._GutterIcons.Images.SetKeyName(9, "");
            this._GutterIcons.Images.SetKeyName(10, "");
            this._GutterIcons.Images.SetKeyName(11, "");
            this._GutterIcons.Images.SetKeyName(12, "");
            // 
            // _AutoListIcons
            // 
            this._AutoListIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_AutoListIcons.ImageStream")));
            this._AutoListIcons.TransparentColor = System.Drawing.Color.Magenta;
            this._AutoListIcons.Images.SetKeyName(0, "VSObject_Class.bmp");
            this._AutoListIcons.Images.SetKeyName(1, "VSObject_Class_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(2, "VSObject_Class_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(3, "VSObject_Class_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(4, "VSObject_Class_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(5, "VSObject_Class_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(6, "VSObject_Constant.bmp");
            this._AutoListIcons.Images.SetKeyName(7, "VSObject_Constant_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(8, "VSObject_Constant_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(9, "VSObject_Constant_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(10, "VSObject_Constant_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(11, "VSObject_Constant_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(12, "VSObject_Delegate.bmp");
            this._AutoListIcons.Images.SetKeyName(13, "VSObject_Delegate_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(14, "VSObject_Delegate_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(15, "VSObject_Delegate_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(16, "VSObject_Delegate_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(17, "VSObject_Delegate_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(18, "VSObject_Enum.bmp");
            this._AutoListIcons.Images.SetKeyName(19, "VSObject_Enum_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(20, "VSObject_Enum_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(21, "VSObject_Enum_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(22, "VSObject_Enum_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(23, "VSObject_Enum_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(24, "VSObject_EnumItem.bmp");
            this._AutoListIcons.Images.SetKeyName(25, "VSObject_EnumItem_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(26, "VSObject_EnumItem_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(27, "VSObject_EnumItem_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(28, "VSObject_EnumItem_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(29, "VSObject_EnumItem_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(30, "VSObject_Event.bmp");
            this._AutoListIcons.Images.SetKeyName(31, "VSObject_Event_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(32, "VSObject_Event_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(33, "VSObject_Event_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(34, "VSObject_Event_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(35, "VSObject_Event_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(36, "VSObject_Exception.bmp");
            this._AutoListIcons.Images.SetKeyName(37, "VSObject_Exception_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(38, "VSObject_Exception_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(39, "VSObject_Exception_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(40, "VSObject_Exception_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(41, "VSObject_Exception_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(42, "VSObject_Field.bmp");
            this._AutoListIcons.Images.SetKeyName(43, "VSObject_Field_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(44, "VSObject_Field_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(45, "VSObject_Field_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(46, "VSObject_Field_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(47, "VSObject_Field_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(48, "VSObject_Interface.bmp");
            this._AutoListIcons.Images.SetKeyName(49, "VSObject_Interface_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(50, "VSObject_Interface_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(51, "VSObject_Interface_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(52, "VSObject_Interface_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(53, "VSObject_Interface_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(54, "VSObject_Macro.bmp");
            this._AutoListIcons.Images.SetKeyName(55, "VSObject_Macro_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(56, "VSObject_Macro_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(57, "VSObject_Macro_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(58, "VSObject_Macro_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(59, "VSObject_Macro_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(60, "VSObject_Map.bmp");
            this._AutoListIcons.Images.SetKeyName(61, "VSObject_Map_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(62, "VSObject_Map_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(63, "VSObject_Map_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(64, "VSObject_Map_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(65, "VSObject_Map_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(66, "VSObject_MapItem.bmp");
            this._AutoListIcons.Images.SetKeyName(67, "VSObject_MapItem_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(68, "VSObject_MapItem_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(69, "VSObject_MapItem_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(70, "VSObject_MapItem_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(71, "VSObject_MapItem_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(72, "VSObject_Method.bmp");
            this._AutoListIcons.Images.SetKeyName(73, "VSObject_Method_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(74, "VSObject_Method_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(75, "VSObject_Method_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(76, "VSObject_Method_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(77, "VSObject_Method_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(78, "VSObject_MethodOverload.bmp");
            this._AutoListIcons.Images.SetKeyName(79, "VSObject_MethodOverload_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(80, "VSObject_MethodOverload_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(81, "VSObject_MethodOverload_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(82, "VSObject_MethodOverload_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(83, "VSObject_MethodOverload_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(84, "VSObject_Module.bmp");
            this._AutoListIcons.Images.SetKeyName(85, "VSObject_Module_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(86, "VSObject_Module_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(87, "VSObject_Module_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(88, "VSObject_Module_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(89, "VSObject_Module_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(90, "VSObject_Namespace.bmp");
            this._AutoListIcons.Images.SetKeyName(91, "VSObject_Namespace_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(92, "VSObject_Namespace_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(93, "VSObject_Namespace_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(94, "VSObject_Namespace_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(95, "VSObject_Namespace_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(96, "VSObject_Object.bmp");
            this._AutoListIcons.Images.SetKeyName(97, "VSObject_Object_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(98, "VSObject_Object_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(99, "VSObject_Object_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(100, "VSObject_Object_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(101, "VSObject_Object_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(102, "VSObject_Operator.bmp");
            this._AutoListIcons.Images.SetKeyName(103, "VSObject_Operator_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(104, "VSObject_Operator_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(105, "VSObject_Operator_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(106, "VSObject_Operator_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(107, "VSObject_Operator_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(108, "VSObject_Properties.bmp");
            this._AutoListIcons.Images.SetKeyName(109, "VSObject_Properties_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(110, "VSObject_Properties_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(111, "VSObject_Properties_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(112, "VSObject_Properties_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(113, "VSObject_Properties_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(114, "VSObject_Structure.bmp");
            this._AutoListIcons.Images.SetKeyName(115, "VSObject_Structure_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(116, "VSObject_Structure_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(117, "VSObject_Structure_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(118, "VSObject_Structure_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(119, "VSObject_Structure_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(120, "VSObject_Template.bmp");
            this._AutoListIcons.Images.SetKeyName(121, "VSObject_Template_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(122, "VSObject_Template_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(123, "VSObject_Template_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(124, "VSObject_Template_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(125, "VSObject_Template_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(126, "VSObject_Type.bmp");
            this._AutoListIcons.Images.SetKeyName(127, "VSObject_Type_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(128, "VSObject_Type_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(129, "VSObject_Type_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(130, "VSObject_Type_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(131, "VSObject_Type_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(132, "VSObject_TypeDef.bmp");
            this._AutoListIcons.Images.SetKeyName(133, "VSObject_TypeDef_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(134, "VSObject_TypeDef_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(135, "VSObject_TypeDef_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(136, "VSObject_TypeDef_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(137, "VSObject_TypeDef_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(138, "VSObject_Union.bmp");
            this._AutoListIcons.Images.SetKeyName(139, "VSObject_Union_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(140, "VSObject_Union_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(141, "VSObject_Union_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(142, "VSObject_Union_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(143, "VSObject_Union_Shortcut.bmp");
            this._AutoListIcons.Images.SetKeyName(144, "VSObject_ValueType.bmp");
            this._AutoListIcons.Images.SetKeyName(145, "VSObject_ValueType_Friend.bmp");
            this._AutoListIcons.Images.SetKeyName(146, "VSObject_ValueType_Private.bmp");
            this._AutoListIcons.Images.SetKeyName(147, "VSObject_ValueType_Protected.bmp");
            this._AutoListIcons.Images.SetKeyName(148, "VSObject_ValueType_Sealed.bmp");
            this._AutoListIcons.Images.SetKeyName(149, "VSObject_ValueType_Shortcut.bmp");
            // 
            // ParseTimer
            // 
            this.ParseTimer.Enabled = true;
            this.ParseTimer.Interval = 1;
            this.ParseTimer.Tick += new System.EventHandler(this.ParseTimer_Tick);
            this.ResumeLayout(false);

		}
Ejemplo n.º 6
0
		public static void Detach(WeakTimer t)
		{
			for (int i = _listeners.Count - 1; i >= 0; i--)
			{
				WeakReference wr = (WeakReference) _listeners[i];
				try
				{
					if (wr.Target == t)
						_listeners.RemoveAt(i);
				}
				catch
				{
				}
			}
		}
Ejemplo n.º 7
0
		public static void Attach(WeakTimer t)
		{
			WeakReference wr = new WeakReference(t);

			_listeners.Add(wr);
		}