public void InitializeCrashReport()
        {
            RandomDataGenerator random = new RandomDataGenerator();
            UnitGenerator       unit   = new UnitGenerator();

            string[] types = { "Device Incompatibility", "Force Close by User", "Fatal Bug", "Connectivity Exception", "Exception Handling" };
            crashesData.CrashTypes = types;
            // init crashes by type and by time
            crashesData.CrashesByType = random.GetRandomDatapoint(5, 0, 30);
            crashesData.CrashesByTime = random.GetRandomDatapoint(9, 0, 30);

            // 6 types of devices
            crashesData.NumbersOfDevices = random.GetRandomDatapoint(6, 3, 30);
            crashesData.DeviceTypes      = unit.GetDevices(6);

            int[] unsortedCrashes = random.GetRandomDatapoint(8, 1, 15);
            Array.Sort(unsortedCrashes);
            Array.Reverse(unsortedCrashes);
            crashesData.CrashesByID = unsortedCrashes;

            crashesData.DeviceIDs = random.GetIDs(8);

            crashesData.TimeOption = 0;

            crashesData.Timeframe    = new string[3][];
            crashesData.Timeframe[0] = unit.GetMonths(9);
            crashesData.Timeframe[1] = unit.GetWeeks(9);
            crashesData.Timeframe[2] = unit.GetYears(9);

            CreateTimeframeSelectList();
        }
        public void InitializeHome()
        {
            RandomDataGenerator random = new RandomDataGenerator();
            UnitGenerator       unit   = new UnitGenerator();

            homeData.Clinics         = unit.GetClinics(5);
            homeData.BilirubinLevels = new int[] { 5, 10, 15, 20, 25 };

            int[][] data = new int[homeData.BilirubinLevels.Length][];
            for (int i = 0; i < 5; i++)
            {
                data[i] = random.GetRandomDatapoint(5, 50, 200);
            }

            homeData.BilirubinData = data;

            homeData.TimeOption = 0;

            homeData.Timeframe    = new string[3][];
            homeData.Timeframe[0] = unit.GetMonths(5);
            homeData.Timeframe[1] = unit.GetWeeks(5);
            homeData.Timeframe[2] = unit.GetYears(5);

            homeData.ClinicOption = 0;

            CreateTimeframeSelectList();
            CreateClinicSelectList();
        }