private void editTransactionUri_button_Click(object sender, RoutedEventArgs e) { var edit = new TransactionEditor(transactionUri); using (_lock = new FocusLock(this)) if ((App.ActiveWindow = edit).ShowDialog() == true) { transactionUri = edit.SetUrl; } }
public TransactionWindow(string ip, int port, string token, string uri) : this() { this.ip = ip; this.port = port; this.token = token; requestUri = uri; // Enable/disable date panel accordingly datePanel.IsEnabled = TransactionEditor.ContainsDate(uri); }