Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
    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);
    }
Exemplo n.º 4
0
 private void everyTransactionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.All;
     LBLSumMode.Text = "Sum Mode: All";
 }
Exemplo n.º 5
0
 private void anualyAcademicYearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.AAnualy;
     LBLSumMode.Text = "Sum Mode: Year (Academic)";
 }
Exemplo n.º 6
0
 private void anualyCalendarYearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.CAnualy;
     LBLSumMode.Text = "Sum Mode: Year (Calendar)";
 }
Exemplo n.º 7
0
 private void quarterlyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.Quarterly;
     LBLSumMode.Text = "Sum Mode: Quarter";
 }
Exemplo n.º 8
0
 private void termlyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.Semester;
     LBLSumMode.Text = "Sum Mode: Semester";
 }
Exemplo n.º 9
0
 private void monthlyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.Monthly;
     LBLSumMode.Text = "Sum Mode: Month";
 }
Exemplo n.º 10
0
 private void weeklyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SummingMode     = SumMode.Weekly;
     LBLSumMode.Text = "Sum Mode: Week";
 }