Ejemplo n.º 1
0
        public static void Show(uint initial, FreqChangedEvent evt)
        {
            FrequencyInputDialog d = new FrequencyInputDialog();

            d.nmbrCtrl.Value = (int)initial;

            d.Event += evt;

            d.ShowDialog();
        }
Ejemplo n.º 2
0
 private void btnSetQuartzFreq_Click(object sender, RoutedEventArgs e)
 {
     if (controller != null)
     {
         FrequencyInputDialog.Show(controller.EmulatedFrequency, (p) =>
         {
             if (controller != null)
             {
                 controller.EmulatedFrequency = (uint)p;
             }
         });
     }
 }