예제 #1
0
 public void HunterMeetings()
 {
     var meetings = Mondays()
         .Select(i => new Meeting(i, 13, 15, 20, 2))
         .Concat(new[] {new Meeting(4*7 - 3, 13, 0, 60, 5), new Meeting(8*7 - 3, 13, 0, 60, 5)});
     var chart = new MeetingsChart(meetings, 5);
     Console.WriteLine("Total Man Hours:{0}".FormatWith(chart.GetTotalManHours()));
     Console.WriteLine("Percent Of Week:{0}".FormatWith(chart.GetPercentOfWeek()));
     WinFormsApprovals.Verify(chart);
 }
예제 #2
0
        public void HunterMeetings()
        {
            var meetings = Mondays()
                           .Select(i => new Meeting(i, 13, 15, 20, 2))
                           .Concat(new[] { new Meeting(4 * 7 - 3, 13, 0, 60, 5), new Meeting(8 * 7 - 3, 13, 0, 60, 5) });
            var chart = new MeetingsChart(meetings, 5);

            Console.WriteLine("Total Man Hours:{0}".FormatWith(chart.GetTotalManHours()));
            Console.WriteLine("Percent Of Week:{0}".FormatWith(chart.GetPercentOfWeek()));
            WinFormsApprovals.Verify(chart);
        }
예제 #3
0
 private void DrawCircle(Graphics g, int x, int y, int radius)
 {
     g.FillEllipse(MeetingsChart.GetSemiTransparentBlack(), x - radius, y - radius, radius * 2, radius * 2);
 }