private void loggingAuthenticationToolStripMenuItem_Click(object sender, EventArgs e) { Uri endPointUri; if (!Uri.TryCreate(txtLoggingApp.Text, UriKind.Absolute, out endPointUri)) { MessageBox.Show("Url of logging application is not valid"); } else { _syncInfo.Logging.UrlString = txtLoggingApp.Text; AuthenticationForm authform = new AuthenticationForm(_syncInfo.Logging); authform.ShowDialog(); } }
private void targetAuthenticationToolStripMenuItem_Click(object sender, EventArgs e) { Uri endPointUri; if (!Uri.TryCreate(txtApp2.Text, UriKind.Absolute, out endPointUri)) { MessageBox.Show("Url of target application is not valid"); } else { _syncInfo.Target.UrlString = txtApp2.Text; AuthenticationForm authform = new AuthenticationForm(_syncInfo.Target); authform.ShowDialog(); } }