Пример #1
0
 private void UpdateTextBoxes()
 {
     if (firstEqSelected)
     {
         this.textBoxAmpValue.Text   = XAmp.ToString();
         this.textBoxFreqValue.Text  = XFreq.ToString();
         this.textBoxPhaseValue.Text = XPhase.ToString();
     }
     else
     {
         this.textBoxAmpValue.Text   = YAmp.ToString();
         this.textBoxFreqValue.Text  = YFreq.ToString();
         this.textBoxPhaseValue.Text = YPhase.ToString();
     }
 }
Пример #2
0
 private void UpdateEquationPreview()
 {
     this.labelEq1Preview.Text = "y\x2081 = " + XAmp.ToString() + " sin(" + XFreq.ToString() + "t)";
     this.labelEq2Preview.Text = "y\x2082 = " + YAmp.ToString() + " sin(" + YFreq.ToString() + "t + " + YPhase.ToString() + "°)";
 }