public ValueTable(StAnalyzeResult stAnalyzeResult) { this.valueTableCaller = ValueTableCaller.StatisticAnalyzer; this.currentResult = stAnalyzeResult; this.currentOption = this.currentResult.result.Keys.First<AnalyseOptions>(); InitializeComponent(); }
public ExtendedGraphic(StAnalyzeResult stAnalyzeResult, Color color, bool pointView, ExtendedGraphicCondition graphicCondition) { InitializeComponent(); this.resultsList = new List<StAnalyzeResult>(); this.resultsList.Add(stAnalyzeResult); this.currentColor = color; this.currentPointView = pointView; this.parent = graphicCondition; avgsGraphic = new ZedGraphControl(); avgsGraphic.Dock = DockStyle.Fill; this.resultsTab.TabPages[0].Controls.Add(avgsGraphic); avgsGraphic.GraphPane.Title.Text = "Avgs"; avgsGraphic.GraphPane.XAxis.Title.Text = "Mu"; avgsGraphic.GraphPane.YAxis.Title.Text = "Avgs"; sigmasGraphic = new ZedGraphControl(); sigmasGraphic.Dock = DockStyle.Fill; this.resultsTab.TabPages[1].Controls.Add(sigmasGraphic); sigmasGraphic.GraphPane.Title.Text = "Sigmas"; sigmasGraphic.GraphPane.XAxis.Title.Text = "Mu"; sigmasGraphic.GraphPane.YAxis.Title.Text = "Sigmas"; }
public void Add(StAnalyzeResult stAnalyzeResult, Color color, bool pointView) { this.resultsList.Add(stAnalyzeResult); this.currentColor = color; this.currentPointView = pointView; this.MaximizeBox = true; this.WindowState = FormWindowState.Maximized; this.MaximizeBox = false; DrawGraphics(); }
// Constructor and Load event handler public Graphic(StAnalyzeResult stAnalyzeResult, Color color, bool pointView, GraphicCondition graphicCondition) { this.resultsList = new List<StAnalyzeResult>(); this.resultsList.Add(stAnalyzeResult); this.currentColor = color; this.currentPointView = pointView; this.parent = graphicCondition; this.graphs = new Dictionary<AnalyseOptions, ZedGraphControl>(); this.pages = new Dictionary<AnalyseOptions, TabPage>(); InitializeComponent(); }
// Конструктор, который получает список сборок для анализа. public AbstractStAnalyzer(List<ResultAssembly> assembly) { if (assembly.Count != 0) { assemblyToAnalyze = assembly; analyzeOptions = new Dictionary<AnalyseOptions, StAnalyzeOptions>(); result = new StAnalyzeResult(); result.modelName = assemblyToAnalyze[0].ModelType.Name; result.networkSize = assemblyToAnalyze[0].Results[0].Size; result.parameterLine = GetParameterLine(); result.realizationsCount = GetRealizationsCount(); } else throw new SystemException("There are no assemblies."); }
private void ValueTable_Load(object sender, EventArgs e) { this.optionNames = new Dictionary<string, AnalyseOptions>(); if (this.valueTableCaller == ValueTableCaller.Graphic) { foreach (StAnalyzeResult res in parent.resultsList) { generationCmbBox.Items.Add(res.parameterLine); if (res.result.ContainsKey(this.currentOption)) { this.currentResult = res; this.generationCmbBox.Text = res.parameterLine; // The last command calls generationCmbBox_SelectedIndexChanged event handler, // wich calls SetValues, AddOptions. etc.. } } } else { this.generationCmbBox.Items.Add(this.currentResult.parameterLine); this.generationCmbBox.Text = generationCmbBox.Items[0].ToString(); } if (this.currentResult.type != StAnalyzeType.Local) { DisableApproximation(); } else { EnableApproximation(); this.approximationTxt.Text = currentResult.approximationType.ToString(); } this.realizationCountTxt.Text = currentResult.realizationsCount.ToString(); }
private void generationCmbBox_SelectedIndexChanged(object sender, EventArgs e) { if (this.valueTableCaller == ValueTableCaller.Graphic) { this.currentResult = this.parent.resultsList[this.generationCmbBox.SelectedIndex]; if (this.isFirst == false) { this.currentOption = this.currentResult.result.Keys.First<AnalyseOptions>(); } isFirst = false; } AddOptions(); }
public Averages(StAnalyzeResult r) { result = r; InitializeComponent(); }