Пример #1
0
        public void MemberSelected(MemberRecord mr)
        {
            Part part = null;

            if (mr != null)
            {
                if (symbolFile != null && mr.MemberInfo.GetType().IsSubclassOf(typeof(MethodBase)))
                {
                    MethodEntry me = symbolFile.GetMethod((MethodBase)mr.MemberInfo);
                    Console.WriteLine("Lookup {0}", mr.MemberInfo);
                    if (me != null)
                    {
                        Console.WriteLine("Found");
                        //part = new Part ();
                    }
                }
                part = indexer.db.LookupMember(mr.MemberInfo.DeclaringType.Namespace, Alias [mr.MemberInfo.DeclaringType], mr.SourceKey);
            }
            if (part != null)
            {
                ShowSource(mr.Label, part);
                return;
            }
            if (text != null)
            {
                Content.RemovePage(1);
                text = null;
            }
        }
Пример #2
0
        private void Append(ListStore store, MemberRecord mr, Type type)
        {
            TreeIter iter;

            store.Append(out iter);

            store.SetValue(iter, 0, new GLib.Value(mr.Label));
            store.SetValue(iter, 1, new GLib.Value(type.FullName));
            store.SetValue(iter, 2, new GLib.Value(mr.Icon));
            store.SetValue(iter, 3, new GLib.Value(mr.GetType() == typeof(TypeRecord)));
        }
Пример #3
0
		private void Append (ListStore store, MemberRecord mr, Type type)
		{
			TreeIter iter;
			store.Append (out iter);

			store.SetValue (iter, 0, new GLib.Value (mr.Label));
			store.SetValue (iter, 1, new GLib.Value (type.FullName));
			store.SetValue (iter, 2, new GLib.Value (mr.Icon));
			store.SetValue (iter, 3, new GLib.Value (mr.GetType () == typeof (TypeRecord)));
		}
Пример #4
0
		public void MemberSelected (MemberRecord mr)
		{
			Part part = null;
			if (mr != null) {
				if (symbolFile != null && mr.MemberInfo.GetType ().IsSubclassOf (typeof (MethodBase))) {
					MethodEntry me = symbolFile.GetMethod ((MethodBase) mr.MemberInfo);
					Console.WriteLine ("Lookup {0}", mr.MemberInfo);
					if (me != null) {
						Console.WriteLine ("Found");
						//part = new Part ();
					}
				}
				part = indexer.db.LookupMember (mr.MemberInfo.DeclaringType.Namespace, Alias [mr.MemberInfo.DeclaringType], mr.SourceKey);
			}
			if (part != null) {
				ShowSource (mr.Label, part);
				return;
			}
			if (text != null) {
				Content.RemovePage (1);
				text = null;
			}
		}