private void button1_Click(object sender, EventArgs e) { double a0 = double.Parse(textBoxA0.Text); double d = double.Parse(textBoxD.Text); if (comboBox1.Text == "Арифметична") { progression = new ArithmeticProgression(a0, d); } if (comboBox1.Text == "Геометрична") { progression = new GeometricProgression(a0, d); } }
private void OkButton_Clicked(object sender, EventArgs e) { this.engine.EnsureRatingsAreAssociated(); IProgression xAxisProgression = this.XAxisProgression; ActivityDescriptor yAxisDescriptor = this.YAxisActivityDescriptor; Activity yAxisActivity = null; if (yAxisDescriptor != null) { yAxisActivity = this.engine.ActivityDatabase.ResolveDescriptor(yAxisDescriptor); } if (yAxisActivity != null) { yAxisActivity.ApplyPendingData(); ActivityVisualizationView visualizationView = new ActivityVisualizationView(xAxisProgression, yAxisActivity, this.engine.RatingSummarizer, this.engine.EfficiencySummarizer, this.layoutStack); this.layoutStack.AddLayout(visualizationView, "Graph"); } }
public ActivityVisualizationView(IProgression participationXAxis, Activity yAxisActivity, ScoreSummarizer overallRating_summarizer, ScoreSummarizer overallEfficiency_summarizer, LayoutStack layoutStack) { this.layoutStack = layoutStack; this.overallRating_summarizer = overallRating_summarizer; this.overallEfficiency_summarizer = overallEfficiency_summarizer; this.xAxisProgression = participationXAxis; this.yAxisActivity = yAxisActivity; // setup the title this.SetTitle(this.YAxisLabel + " vs. " + this.XAxisLabel); GridLayout fixedGrid = GridLayout.New(new BoundProperty_List(1), BoundProperty_List.Uniform(2), LayoutScore.Zero); this.SetContent(fixedGrid); GridLayout graphGrid = GridLayout.New(BoundProperty_List.Uniform(2), new BoundProperty_List(1), LayoutScore.Zero); // setup a graph of the ratings this.ratingsView = new TitledControl("Ratings vs. Time"); graphGrid.AddLayout(this.ratingsView); // setup a graph of the participations this.participationsView = new TitledControl("Participations vs. " + this.XAxisLabel); graphGrid.AddLayout(this.participationsView); //flexibleGrid.AddLayout(graphGrid); fixedGrid.AddLayout(graphGrid); this.statsLayoutHolder = new ContainerLayout(); this.statsLayoutHolder.SubLayout = this.Make_StatsView(); fixedGrid.AddLayout(this.statsLayoutHolder); this.UpdateDrawing(); }
public ExponentiallyWeightedPredictionLink(IProgression input, IProgression output, string justification) { this.inputProgression = input; this.outputProgression = output; this.Justification = justification; }
public LazyProgressionValue(DateTime when, IProgression progression) { this.when = when; this.progression = progression; }
public ConstantWeightedPredictionLink(IProgression input, IProgression output, string justification) { this.inputProgression = input; this.outputProgression = output; this.Justification = justification; }