/[RomCheater]/trunk/RomCheater.Core/Docking/FloatingMemoryView.cs
ViewVC logotype

Annotation of /trunk/RomCheater.Core/Docking/FloatingMemoryView.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 892 - (hide annotations) (download)
Wed Sep 17 05:56:41 2014 UTC (7 years ago) by william
File size: 2305 byte(s)
+ alot of dang work to force an icon to be shown on the docked panels
  ** when it was as simple as setting: DockPanel.ShowDocumentIcon to true

1 william 885 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Linq;
7     using System.Text;
8     using System.Windows.Forms;
9     using WeifenLuo.WinFormsUI.Docking;
10    
11     using System.Diagnostics;
12     using Sojaner.MemoryScanner;
13    
14 william 889
15     using RomCheater.Interfaces;
16    
17     namespace RomCheater.Core.Docking
18 william 885 {
19     public partial class FloatingMemoryView : DockContent,
20     IAcceptsPlugin<IConfigPlugin>,
21     IAcceptsProcess<Process>,
22     IAcceptsProcessAndConfig,
23     IBrowseMemoryRegion,
24     IAcceptsMemoryRange,
25     IAcceptPEData
26     {
27     public FloatingMemoryView() {
28     InitializeComponent();
29     this.AcceptedPlugin = null;
30     this.AcceptedProcess = null;
31     //this.MemoryStart = uint.MinValue;
32     //this.MemorySize = uint.MaxValue;
33     }
34     public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
35     public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
36     #region IAcceptsProcess<Process> Members
37     public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
38     #endregion
39     #region IAcceptsPlugin<IConfigPlugin> Members
40     public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
41     #endregion
42     #region IAcceptsMemoryRange members
43     public ulong MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
44     public ulong MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
45     #endregion
46    
47     #region IBrowseMemoryRegion
48     public bool BrowseMemoryRegion(ulong MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
49     #endregion
50    
51     #region IAcceptPEData members
52     public void SetPEViewerData(IPEDData peData) { MemView.SetPEViewerData(peData); }
53     #endregion
54     }
55     }

  ViewVC Help
Powered by ViewVC 1.1.22