/[RomCheater]/trunk/RomCheater/Docking/PIDSelector.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/PIDSelector.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/RomCheater/PIDSelector.cs revision 109 by william, Thu May 10 12:12:26 2012 UTC trunk/RomCheater/Docking/PIDSelector.cs revision 150 by william, Sun May 27 23:59:22 2012 UTC
# Line 10  using RomCheater.PluginFramework.Interfa Line 10  using RomCheater.PluginFramework.Interfa
10  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
11  using System.IO;  using System.IO;
12  using RomCheater.Logging;  using RomCheater.Logging;
13    using WeifenLuo.WinFormsUI.Docking;
14    
15  namespace RomCheater  namespace RomCheater.Docking
16  {  {
17      public partial class PIDSelector : Form      public partial class PIDSelector : DockContent
18      {      {
19          private IConfigPlugin plugin = null;          private IConfigPlugin plugin = null;
20          //bool isInError = false;          //bool isInError = false;
# Line 30  namespace RomCheater Line 31  namespace RomCheater
31    
32    
33          public new void Show() { this.Show(null); }          public new void Show() { this.Show(null); }
34          public new void Show(IWin32Window owner) { this.PreInitShow(owner); }          //public new void Show(IWin32Window owner) { this.PreInitShow(owner); }
35          public new DialogResult ShowDialog() { return this.ShowDialog(null); }          public new void Show(DockPanel panel) { this.PreInitShow(panel); }
36          public new DialogResult ShowDialog(IWin32Window owner) { return this.PreInitDialog(owner); }          //public new DialogResult ShowDialog() { return this.ShowDialog(null); }
37          private void PreInitShow(IWin32Window owner)          //public new DialogResult ShowDialog(IWin32Window owner) { return this.PreInitDialog(owner); }
38          {          //private void PreInitShow(IWin32Window owner)
39              if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.",plugin.ToString())); }          //{
40              else { if (owner == null) { base.Show(); } else { base.Show(owner); } }          //    if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.",plugin.ToString())); }
41          }          //    else { if (owner == null) { base.Show(); } else { base.Show(owner); } }
42          private DialogResult PreInitDialog(IWin32Window owner)          //}
43          {          private void PreInitShow(DockPanel panel)
44              if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); return DialogResult.Cancel; }          {
45              else { if (owner == null) { return base.ShowDialog(); } else { return base.ShowDialog(owner); } }              //if (panel == null) return;
46                if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); }
47                else { if (panel == null) { base.Show(); } else { base.Show(panel); } }
48          }          }
49            //private DialogResult PreInitDialog(IWin32Window owner)
50            //{
51            //    if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); return DialogResult.Cancel; }
52            //    else { if (owner == null) { return base.ShowDialog(); } else { return base.ShowDialog(owner); } }
53            //}
54          private void btnLargeIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.LargeIcon; }          private void btnLargeIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.LargeIcon; }
55          private void btnDetails_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Details; }          private void btnDetails_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Details; }
56          private void btnSmallIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.SmallIcon; }          private void btnSmallIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.SmallIcon; }
# Line 81  namespace RomCheater Line 89  namespace RomCheater
89              ImageList small_image_list = new ImageList();              ImageList small_image_list = new ImageList();
90              ImageList large_image_list = new ImageList();              ImageList large_image_list = new ImageList();
91    
92              int small_width = 16;              int small_width = 32;
93              int large_width = 32;              int large_width = 48;
94    
95              small_image_list.ImageSize = new Size(small_width, small_width);              small_image_list.ImageSize = new Size(small_width, small_width);
96              large_image_list.ImageSize = new Size(large_width, large_width);              large_image_list.ImageSize = new Size(large_width, large_width);

Legend:
Removed from v.109  
changed lines
  Added in v.150

  ViewVC Help
Powered by ViewVC 1.1.22