Exemplo n.º 1
0
    /// <summary>
    /// CryptoSec2TitleWidget class constructor.
    /// </summary>
    public WinCryptoSec2Config(CryptoSecModuleType mode)
    {
        m_CryptoSecModule = mode;
        this.Build();

        switch(m_CryptoSecModule)
        {
            case CryptoSecModuleType.Database:
                {
                    this.btnDatabase.GrabFocus();
                    break;
                }
            case CryptoSecModuleType.FTP:
                {
                    this.btnFtp.GrabFocus();
                    break;
                }
            case CryptoSecModuleType.String:
                {
                    this.btnString.GrabFocus();
                    break;
                }
            case CryptoSecModuleType.XML:
                {
                    this.btnXml.GrabFocus();
                    break;
                }
        }
    }
Exemplo n.º 2
0
 /// <summary>
 /// Button CryptoSecMode on click event handler.
 /// </summary>
 protected void btnCryptoSecMode_OnClick(object sender, EventArgs e)
 {
     WinCryptoSec2Config frmCryptoSecConfig = new WinCryptoSec2Config(CryptoSecModule);
     frmCryptoSecConfig.Run();
     CryptoSecModule = frmCryptoSecConfig.CryptoSecModule;
     frmCryptoSecConfig.Destroy();
     ChangeCryptoSecApplicationModule();
 }
Exemplo n.º 3
0
 /// <summary>
 /// CryptoSec2TitleWidget class constructor.
 /// </summary>
 public WinCryptoSec2Config()
 {
     m_CryptoSecModule = CryptoSecModuleType.None;
     this.Build();
 }
Exemplo n.º 4
0
 protected void btnXml_OnClick(object sender, EventArgs e)
 {
     m_CryptoSecModule = CryptoSecModuleType.XML;
     this.Destroy();
 }
Exemplo n.º 5
0
 protected void btnString_OnClick(object sender, EventArgs e)
 {
     m_CryptoSecModule = CryptoSecModuleType.String;
     this.Destroy();
 }
Exemplo n.º 6
0
 protected void btnDatabase_OnClick(object sender, EventArgs e)
 {
     m_CryptoSecModule = CryptoSecModuleType.Database;
     this.Destroy();
 }
Exemplo n.º 7
0
 private void InitForm()
 {
     m_CryptoSecModule = CryptoSecModuleType.Database;
     m_CryptoSecModule = cryptosec2titlewidget1.CryptoSecModule;
 }