public static MorseCodeGenerator getMorseCodeGenerator()
 {
     if (instance == null)
     {
         instance = new MorseCodeGenerator(1000, 100); // по умолчанию частота = 1000, длительность точки = 100мс
     }
     return(instance);
 }
Exemplo n.º 2
0
 public Settings()
 {
     InitializeComponent();
     morsecodegenerator       = MorseCodeGenerator.getMorseCodeGenerator();
     curFrequency             = morsecodegenerator.getFrequency();
     curDotDuration           = morsecodegenerator.DotDuration;
     frequency_trackBar.Value = (curFrequency - 1000) / 100;
     label2.Text = curFrequency.ToString();
     dotDuration_trackBar.Value = (curDotDuration - 100) / 50;
     label3.Text = curDotDuration.ToString();
 }
Exemplo n.º 3
0
 public ReceptionForm()
 {
     InitializeComponent();
     morsecodegenerator = MorseCodeGenerator.getMorseCodeGenerator();
 }
Exemplo n.º 4
0
 public Learning1()
 {
     InitializeComponent();
     morsecodegenerator = MorseCodeGenerator.getMorseCodeGenerator();
 }
Exemplo n.º 5
0
 public TransmissionForm()
 {
     InitializeComponent();
     morsecodegenerator = MorseCodeGenerator.getMorseCodeGenerator();
     checker            = new Checker(label3);
 }