clientcertdialog.cs
来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 71 行
CS
71 行
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision: 915 $</version>
// </file>
using System;
using System.Reflection;
using System.Drawing;
using System.Text;
using System.Threading;
using System.IO;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui;
using NSvn.Common;
using NSvn.Core;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace ICSharpCode.Svn.Gui
{
/// <summary>
/// Description of LoginDialog.
/// </summary>
public class ClientCertDialog : BaseSharpDevelopForm
{
public string Realm {
get {
return ControlDictionary["realmLabel"].Text;
}
set {
ControlDictionary["realmLabel"].Text = value;
}
}
public string FileName {
get {
return ControlDictionary["pathTextBox"].Text;
}
set {
ControlDictionary["pathTextBox"].Text = value;
}
}
public bool MaySave {
get {
return ((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked;
}
set {
((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked = value;
}
}
public SslClientCertificateCredential Credential {
get {
SslClientCertificateCredential cred = new SslClientCertificateCredential();
cred.CertificateFile = FileName;
cred.MaySave = MaySave;
return cred;
}
}
public ClientCertDialog(string realm, bool maySave)
{
SetupFromXmlStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ICSharpCode.Svn.Resources.ClientCertDialog.xfrm"));
this.Realm = realm;
this.MaySave = maySave;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?