//private void SaveToDatabase(SolutionBuildData b)
        //{
        //    try
        //    {
        //        var conn = new SqlConnection("Server=kl-sql-005;DataBase=RESSoftware;Integrated Security=SSPI");
        //        conn.Open();
        //        SqlCommand cmd = new SqlCommand("dbo.AddBuildTime", conn);
        //        cmd.Parameters.AddWithValue("IsRebuildAll", b.SolutionBuild.IsRebuildAll ? 1 : 0);
        //        cmd.Parameters.AddWithValue("SolutionName", b.SolutionName);
        //        cmd.Parameters.AddWithValue("BuildDateTime", DateTime.Now);
        //        cmd.Parameters.AddWithValue("TimeInMilliseconds", b.SolutionBuildTime);
        //        cmd.Parameters.AddWithValue("NT4Name", WindowsIdentity.GetCurrent().Name);
        //        cmd.CommandType = CommandType.StoredProcedure;
        //        cmd.ExecuteNonQuery();
        //        if (conn != null) conn.Close();
        //    }
        //    catch // ignore exceptions, its not a big problem if we can't log the build time
        //    { }
        //}

        private void Solution_Opened()
        {
            solution = new BuildMonitor.Domain.Solution {
                Name = GetSolutionName()
            };
            output.WriteLine("\nSolution loaded:  \t{0}", solution.Name);
            output.WriteLine(new string('-', 60));
        }
 private void Solution_Opened()
 {
     solution = new BuildMonitor.Domain.Solution {
         Name = GetSolutionName()
     };
     PrintLine("\nSolution loaded:  \t{0}", solution.Name);
     PrintLine("{0}", 60.Times("-"));
 }
 private void Solution_Opened()
 {
     solution = new BuildMonitor.Domain.Solution { Name = GetSolutionName() };
     PrintLine("\nSolution loaded:  \t{0}", solution.Name);
     PrintLine("{0}", 60.Times("-"));
 }