private void button5_Click(object sender, RoutedEventArgs e) { String res = InputDialogEx.ShowDialog("Input", "Please enter a string:", "MyString", MessageIcons.None, activeBundle); if (res == null) { MessageDialogEx.ShowDialog("Cancel!", "Info", MessageButtons.OK, MessageIcons.Info, activeBundle); } else { MessageDialogEx.ShowDialog("String: " + res, "Info", MessageButtons.OK, MessageIcons.Info, activeBundle); } }
private void Application_Startup(object sender, StartupEventArgs e) { Arguments = new ArgumentReader(false, SwitchArgument.CreateHelpArgument(SwitchCharacter.Slash), new PureArgument <String>("File Name", true, true, ""), new SwitchArgument(SwitchCharacter.Slash, "nosplash", "")); Arguments.AllowUnknownArgs = true; if (!Arguments.EvaluateArguments(false, e.Args)) { MessageDialogEx.ShowDialog("The arguments are invalid!", "Error", MessageButtons.OK, MessageIcons.Error); return; } if (Arguments.ArgumentList[NOSPLASHSWITCH].IsSet) { new MainWindow().Show(); } else { new Splash().Show(); } }
private void button2_Click(object sender, RoutedEventArgs e) { MessageDialogEx.ShowDialog( "Hello!", "Info", MessageButtons.OK, MessageIcons.Info, activeBundle); }