private void Window_Loaded(object sender, RoutedEventArgs e) { FontFamily fontFamily = null; if (machineStartPage.GetUIKind() == UIKind.UIMachine) { fontFamily = new FontFamily(new Uri("pack://application:,,,/machine_font.ttf"), "./#CallOne-Regular"); } else if (machineStartPage.GetUIKind() == UIKind.UISamaritan) { fontFamily = new FontFamily(new Uri("pack://application:,,,/samaritan_font.otf"), "./#MagdaCleanMono"); } textBox.FontFamily = fontFamily; label.FontFamily = fontFamily; }
public CommandLinePrompt(MachineStartPage msp) { InitializeComponent(); textBox.Focus(); machineStartPage = msp; uikind = msp.GetUIKind(); }
public CommandLinePrompt(MachineStartPage msp) { InitializeComponent(); textBox.Focus(); machineStartPage = msp; uikind = msp.GetUIKind(); }