public static DialogResult SetFrequencyAmplitude() { if (me == null) { me = new frmAddFrequencyAmplitude(); } return(me.ShowDialog()); }
public static DialogResult SetFrequencyAmplitude(double frequency, double amplitude) { if (me == null) { me = new frmAddFrequencyAmplitude(); } me.numFrequency.Value = Convert.ToDecimal(frequency); me.numAmplitude.Value = Convert.ToDecimal(amplitude); return(me.ShowDialog()); }