ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 103 by william, Wed May 9 23:23:38 2012 UTC vs.
Revision 104 by william, Thu May 10 10:10:55 2012 UTC

# Line 18 | Line 18 | namespace RomCheater
18   {
19      public partial class Main : Form
20      {
21 +        private bool log_window_expanded = false;
22 +        private double log_window_splitter_default_position = 1.4045;
23          PluginLoader loader = null;
24          IConfigPlugin ConfigPlugin = null;
25          IInputPlugin InputPlugin = null;
# Line 99 | Line 101 | namespace RomCheater
101              PIDSelector selector = new PIDSelector(ConfigPlugin);
102              selector.ShowDialog();
103          }
104 +
105 +        private void btnExapandCollapseLogWindow_Click(object sender, EventArgs e)
106 +        {
107 +            if (log_window_expanded)
108 +            {
109 +                // collapse                
110 +                main_split.SplitterDistance = (int)((double)this.Height/ log_window_splitter_default_position);
111 +                log_window_expanded = false;
112 +                btnExapandCollapseLogWindow.Text = "expand";
113 +            }
114 +            else
115 +            {
116 +                // expand
117 +                main_split.SplitterDistance = 0;
118 +                btnExapandCollapseLogWindow.Text = "collapse";
119 +                log_window_expanded = true;
120 +            }
121 +        }
122      }
123   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines