Browse Source

Initial GUI options loaded loaded from class

pull/1/head^2
David Srbecký 18 years ago
parent
commit
3aa8cc498c
  1. 2
      src/MainForm.cs
  2. 4
      src/Options.cs

2
src/MainForm.cs

@ -38,6 +38,8 @@ namespace Decompiler
x += checkBox.Width + 10; x += checkBox.Width + 10;
} }
} }
collapseCount.Value = Options.CollapseExpression;
reduceCount.Value = Options.ReduceGraph;
} }
public string SourceCode { public string SourceCode {

4
src/Options.cs

@ -4,8 +4,8 @@ namespace Decompiler
{ {
public static class Options public static class Options
{ {
public static int CollapseExpression = int.MaxValue; public static int CollapseExpression = 1000;
public static int ReduceGraph = int.MaxValue; public static int ReduceGraph = 1000;
public static bool NodeComments = false; public static bool NodeComments = false;
public static bool ReduceLoops = true; public static bool ReduceLoops = true;
public static bool ReduceConditonals = true; public static bool ReduceConditonals = true;

Loading…
Cancel
Save