Example #1
0
        public PropertyDescriptorCollection GetProperties()
        {
            PropertyDescriptorCollection NewProps = new PropertyDescriptorCollection(null);

            if (Value.Type == EWmeValue.Native)
            {
                string[] Attrs = DebugClient.GetClassProperties(Value.GetNative().NativeClass);
                if (Attrs != null)
                {
                    foreach (string Attr in Attrs)
                    {
                        NativePropertyDescriptor Prop = GetNativeProp(Attr);
                        if (Prop != null)
                        {
                            NewProps.Add(Prop);
                        }
                    }
                }
            }

            if (Value.Properties.Count > 0)
            {
                foreach (IWmeValue Val in Value.Properties)
                {
                    VariablePropertyDescriptor pd = new VariablePropertyDescriptor(new Variable(Val, this.Line));
                    NewProps.Add(pd);
                }
            }
            return(NewProps);
        }
        //////////////////////////////////////////////////////////////////////////
        public void LoadScript(DebugClient Client, Script Script)
        {
            _Client = Client;
            _Script = Script;

            this.BeginUpdate();
            this.Items.Clear();

            SourceValid = false;

            if (_Client != null && _Script != null)
            {
                string FullPath = _Client.Server.ResolveFilename(_Script.Filename);
                ReadLines(FullPath);
                SelectLine(Script.Line, true);
            }

            foreach (ColumnHeader Col in this.Columns)
            {
                Col.Width = -1;
            }
            this.EndUpdate();

            RefreshBreakpoints();
        }
        //////////////////////////////////////////////////////////////////////////
        public void LoadScript(DebugClient Client, Script Script)
        {
            _Client = Client;
            _Script = Script;


            this.BeginUpdate();
            this.Items.Clear();

            SourceValid = false;

            if (_Client != null && _Script != null)
            {
                string FullPath = _Client.Server.ResolveFilename(_Script.Filename);
                ReadLines(FullPath);
                SelectLine(Script.Line, true);
            }


            foreach (ColumnHeader Col in this.Columns)
            {
                Col.Width = -1;
            }
            this.EndUpdate();

            RefreshBreakpoints();
        }
Example #4
0
 //////////////////////////////////////////////////////////////////////////
 public DebugWindow(DebugClient Client) : this()
 {
     this._Client = Client;
 }