Skip to content

Commit

Permalink
Reorder code
Browse files Browse the repository at this point in the history
  • Loading branch information
tathamoddie committed Oct 18, 2012
1 parent 45da48d commit 9b065ee
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions TeamFlash/Program.cs
Expand Up @@ -7,27 +7,6 @@ namespace TeamFlash
{
class Program
{
static string ReadConfig(string name, string previousValue)
{
string input = null;
while (string.IsNullOrEmpty(input))
{
Console.WriteLine("{0}?", name);
if (!string.IsNullOrEmpty(previousValue))
{
Console.WriteLine("(press enter for previous value: {0})", previousValue);
}
input = Console.ReadLine();
if (!string.IsNullOrEmpty(previousValue) &&
string.IsNullOrEmpty(input))
{
input = previousValue;
}
Console.WriteLine();
}
return input;
}

static void Main()
{
var teamFlashConfig = new TeamFlashConfig();
Expand Down Expand Up @@ -79,6 +58,27 @@ static void Main()

}

static string ReadConfig(string name, string previousValue)
{
string input = null;
while (string.IsNullOrEmpty(input))
{
Console.WriteLine("{0}?", name);
if (!string.IsNullOrEmpty(previousValue))
{
Console.WriteLine("(press enter for previous value: {0})", previousValue);
}
input = Console.ReadLine();
if (!string.IsNullOrEmpty(previousValue) &&
string.IsNullOrEmpty(input))
{
input = previousValue;
}
Console.WriteLine();
}
return input;
}

static void Wait()
{
var delayCount = 0;
Expand Down

0 comments on commit 9b065ee

Please sign in to comment.