internal static void ShowDialog(PublishedFileStreamer target, ListBox refreshList = null) { var t = DialogHost.Show(new PublishedEditFormDialog(target), "PublishedFormHost"); if (refreshList != null) { t.ContinueWith((t) => { refreshList.Items.Refresh(); }, TaskScheduler.FromCurrentSynchronizationContext()); } }
internal PublishedProtocolDataViewModel(PublishedFileStreamer target) { this.target = target; this.URL = target.URL; this.Label = target.Name; }
internal PublishedEditFormDialog(PublishedFileStreamer target) { viewModel = new PublishedProtocolDataViewModel(target); DataContext = viewModel; InitializeComponent(); }