private void CreateCalculationProxy(SumMode mode) { UpdateStatus("DBUpdate", "Proxy", "Creating and searching proxy in mode {0}", mode); var criteria = CriteriaOperator.Parse("SumMode == ?", mode); var proxy = ObjectSpace.FindObject <XPViewCalculationProxy>(criteria); if (proxy == null) { proxy = ObjectSpace.CreateObject <XPViewCalculationProxy>(); proxy.SumMode = mode; ObjectSpace.CommitChanges(); } }
protected void ComputeSums(PointD p, SumMode mode) { if (mode == SumMode.Add) { XSum += p.X; YSum += p.Y; XSquaredSum += Math.Pow(p.X, 2.0); XYProductSum += (p.X * p.Y); } else if (mode == SumMode.Subtract) { XSum -= p.X; YSum -= p.Y; XSquaredSum -= Math.Pow(p.X, 2.0); XYProductSum -= (p.X * p.Y); } }
public override void DrawNodePropertyEditor() { base.DrawNodePropertyEditor(); m_Value1.SliderLabel(this, "Seed"); //, -10000.0f, 10000.0f) ;//,new GUIContent("Red", "Float"), m_R); // m_Value2.SliderLabel(this,"Scale Out");//, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R); m_Value3.SliderLabelInt(this, "Count"); //, 0, 100);//,new GUIContent("Red", "Float"), m_R); m_BrightnessMin.SliderLabel(this, "Bright Min"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R); m_BrightnessMax.SliderLabel(this, "Bright Max"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R); m_ScaleMin.SliderLabel(this, "Scale Min"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R); m_ScaleMax.SliderLabel(this, "Scale Max"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R); m_Value2.m_Value = m_ScaleMin.m_Value; m_SumMode = (SumMode)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Sum Type", "blending the overlays"), m_SumMode, GUILayout.MaxWidth(200)); // m_OffsetX.SliderLabel(this,"OffsetX", m_OffsetX, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R); // m_OffsetY.SliderLabel(this,"OffsetY", m_OffsetY, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R); }
private void everyTransactionToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.All; LBLSumMode.Text = "Sum Mode: All"; }
private void anualyAcademicYearToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.AAnualy; LBLSumMode.Text = "Sum Mode: Year (Academic)"; }
private void anualyCalendarYearToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.CAnualy; LBLSumMode.Text = "Sum Mode: Year (Calendar)"; }
private void quarterlyToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.Quarterly; LBLSumMode.Text = "Sum Mode: Quarter"; }
private void termlyToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.Semester; LBLSumMode.Text = "Sum Mode: Semester"; }
private void monthlyToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.Monthly; LBLSumMode.Text = "Sum Mode: Month"; }
private void weeklyToolStripMenuItem_Click(object sender, EventArgs e) { SummingMode = SumMode.Weekly; LBLSumMode.Text = "Sum Mode: Week"; }