private void materials_button_Click(object sender, EventArgs e) { int[][] x = new int[Params.MATERIALS_NUMBER][]; List<int> days = new List<int>(); for (int i = 0; i < imitator.getMaterialsPerDayStatistic()[0].Length; i++) { days.Add(i+1); } for (int i=0;i<Params.MATERIALS_NUMBER;i++) { x[i] = days.ToArray(); } string[] lines = new string[12] { "Материал 1","Материал 2","Материал 3","Материал 4", "Материал 5","Материал 6","Материал 7","Материал 8", "Материал 9","Материал 10","Материал 11","Материал 12" }; Graph gr = new Graph(imitator.getMaterialsPerDayStatistic(),x,lines,"Дни","Количество","Изменение количества материалов на складе"); gr.ShowDialog(); }
private void finish_button_Click(object sender, EventArgs e) { int[][] x = new int[1][]; Dictionary<int, double[]> y = new Dictionary<int, double[]>(); List<int> days = new List<int>(); double[] finishedDemandsPerDayStatistic = imitator.getFinishedDemandsPerDayStatistic(); for (int i = 0; i < finishedDemandsPerDayStatistic.Length; i++) { days.Add(i + 1); } x[0] = days.ToArray(); y[0] = finishedDemandsPerDayStatistic; string[] lines = new string[1] { "Доля выполненных заказов" }; Graph gr = new Graph(y, x, lines, "Дни", "Доля", "Изменение доли выполненных заказов"); gr.ShowDialog(); }
private void idle_button_Click(object sender, EventArgs e) { int[][] x = new int[1][]; Dictionary<int, double[]> y = new Dictionary<int, double[]>(); List<int> days = new List<int>(); for (int i = 0; i < imitator.getIdlePerDayStatistic().Length; i++) { days.Add(i + 1); } x[0] = days.ToArray(); y[0] = imitator.getIdlePerDayStatistic(); string[] lines = new string[1] {"Доля времени простоя"}; Graph gr = new Graph(y, x, lines, "Дни", "Доля", "Изменение доли времени простоя от времени производства"); gr.ShowDialog(); }
private void averageDelay_button_Click(object sender, EventArgs e) { int[][] x = new int[1][]; Dictionary<int, double[]> y = new Dictionary<int, double[]>(); List<int> days = new List<int>(); for (int i = 0; i < imitator.getDemandAverageDelayPerDayStatistic().Length; i++) { days.Add(i + 1); } x[0] = days.ToArray(); y[0] = imitator.getDemandAverageDelayPerDayStatistic(); string[] lines = new string[1] { "Среднее время задержки заказов ('-1' - нет выполненных заказов)" }; Graph gr = new Graph(y, x, lines, "Дни", "Среднее время (дни)", "Изменение среднего времени задержки заказов"); gr.ShowDialog(); }