public static void InitialChartSettings(ChannelGUI Main) { Main.attackChart.ChartAreas["ChartArea1"].AxisY.Title = ""; Main.attackChart.ChartAreas["ChartArea1"].AxisX.LabelStyle.Format = "hh:mm:ss"; Main.attackChart.ChartAreas["ChartArea1"].AxisX.IntervalType = DateTimeIntervalType.Seconds; Main.attackChart.ChartAreas["ChartArea1"].AxisX.Interval = 5; Main.attackChart.ChartAreas[0].InnerPlotPosition = new ElementPosition(10, 0, 90, 85); Main.packetChart.ChartAreas["ChartArea1"].AxisY.Title = ""; Main.packetChart.ChartAreas["ChartArea1"].AxisX.LabelStyle.Format = "hh:mm:ss"; Main.packetChart.ChartAreas["ChartArea1"].AxisX.IntervalType = DateTimeIntervalType.Seconds; Main.packetChart.ChartAreas["ChartArea1"].AxisX.Interval = 5; Main.packetChart.ChartAreas[0].InnerPlotPosition = new ElementPosition(10, 0, 90, 85); }
public static void ManageNumericalUpdowns(ChannelGUI Main) { Main.tbTimeSeries.Visible = false; Main.btnClearCustomAttack.Visible = false; Main.labelTimeSeries.Visible = false; if (Main.rbBias.Checked == true) { Main.nudAmplitude.Enabled = true; Main.nudTimeConst.Enabled = false; Main.nudFrequency.Enabled = false; } else if (Main.rbTransientIncrease.Checked == true) { Main.nudAmplitude.Enabled = true; Main.nudTimeConst.Enabled = true; Main.nudFrequency.Enabled = false; } else if (Main.rbTransientDecrease.Checked == true) { Main.nudAmplitude.Enabled = true; Main.nudTimeConst.Enabled = true; Main.nudFrequency.Enabled = false; } else if (Main.rbSinusoid.Checked == true) { Main.nudAmplitude.Enabled = true; Main.nudTimeConst.Enabled = false; Main.nudFrequency.Enabled = true; } else if (Main.rbManual.Checked == true) { Main.nudDuration.Enabled = true; Main.nudAmplitude.Enabled = false; Main.nudTimeConst.Enabled = false; Main.nudFrequency.Enabled = false; Main.tbTimeSeries.Visible = true; Main.btnClearCustomAttack.Visible = true; Main.labelTimeSeries.Visible = true; } }