public static void ShowNewSourceDialog(string streamURL = null, string streamName = null) { NewSourceDialog dlg = new NewSourceDialog(); if (!string.IsNullOrWhiteSpace(streamURL)) { dlg.tbStreamURL.Text = streamURL; } if (!string.IsNullOrWhiteSpace(streamName)) { dlg.tbSourceName.Text = streamName; } dlg.ShowDialog(); }
public static void ShowNewSourceDialog() { NewSourceDialog dlg = new NewSourceDialog(); dlg.ShowDialog(); }