コード例 #1
0
ファイル: AnimatableTimer.cs プロジェクト: wurunduk/SI
 public AnimatableTimer()
 {
     TimeDescriptor.AddValueChanged(this, (sender, r) =>
     {
         TimeChanged?.Invoke(this);
     });
 }
コード例 #2
0
 public QuantityDimension(float mass, float length, float time, float temperature)
 {
     Mass        = new MassDescriptor(mass);
     Length      = new LengthDescriptor(length, 0);
     Time        = new TimeDescriptor(time);
     Temperature = new TemperatureDescriptor(temperature);
 }
コード例 #3
0
        public QuantityDimension(float mass, float length, float time, float temperature, float electricalCurrent, float amountOfSubstance, float luminousIntensity)
        {
            Mass        = new MassDescriptor(mass);
            Length      = new LengthDescriptor(length, 0);
            Time        = new TimeDescriptor(time);
            Temperature = new TemperatureDescriptor(temperature);

            ElectricCurrent   = new ElectricCurrentDescriptor(electricalCurrent);
            AmountOfSubstance = new AmountOfSubstanceDescriptor(amountOfSubstance);
            LuminousIntensity = new LuminousIntensityDescriptor(luminousIntensity);
        }