public static void Show(uint initial, FreqChangedEvent evt) { FrequencyInputDialog d = new FrequencyInputDialog(); d.nmbrCtrl.Value = (int)initial; d.Event += evt; d.ShowDialog(); }
private void btnSetQuartzFreq_Click(object sender, RoutedEventArgs e) { if (controller != null) { FrequencyInputDialog.Show(controller.EmulatedFrequency, (p) => { if (controller != null) { controller.EmulatedFrequency = (uint)p; } }); } }