Beispiel #1
0
        private void Initialize()
        {
            // TODO: Move this line to design.cs
            fileMain.FileOk  += new CancelEventHandler(fileMain_FileOk);
            sfdExport.FileOk += new CancelEventHandler(sfdExport_FileOk);
            sfdExport.Filter  = "Eml (*.eml)|*.eml|All File (*.*)|*.*";
            ofdImport.FileOk += new CancelEventHandler(ofdImport_FileOk);
            ofdImport.Filter  = "Eml (*.eml)|*.eml|All File (*.*)|*.*";

            ExpandRecPanel(false);

            // TODO: Change to property
            ScrollLog(true);

            // Initialize for command mode
            cmdSMTPCommunicator = new SMTPCommunicator();
            m_authLogin         = new AuthenticationLogin();
            cmdMgr = new SMTP.Commands.CommandManager();
            cmdMgr.UpdateMessage += new SMTP.Commands.CommandEvent.CommandEventHandler(OnCommandManagerUpdateMessage);
            cmdMgr.Attach(Commands.PackageCommands.Pack(this.cmdSMTPCommunicator));
            cmdMgr.Attach(new Commands.CmdHelp(cmdMgr));

            // Set accept key word command textbox
            acceptKeyHelper = new SMTP.Utility.TextboxAcceptKeyHelper(this.txtCommand);
            acceptKeyHelper.AcceptButton = this.btnCommand;

            // Initialize hex editor
            this.messageBodyBytes = new byte[0];
            textByteProvider      = new Be.Windows.Forms.DynamicByteProvider(this.messageBodyBytes);

            this.hexMessage.ByteProvider = textByteProvider;

            this.CustomizeMessageBody = false;
        }
Beispiel #2
0
        private void Initialize()
        {
            // TODO: Move this line to design.cs
            fileMain.FileOk += new CancelEventHandler(fileMain_FileOk);
            sfdExport.FileOk += new CancelEventHandler(sfdExport_FileOk);
            sfdExport.Filter = "Eml (*.eml)|*.eml|All File (*.*)|*.*";
            ofdImport.FileOk += new CancelEventHandler(ofdImport_FileOk);
            ofdImport.Filter = "Eml (*.eml)|*.eml|All File (*.*)|*.*";

            ExpandRecPanel(false);

            // TODO: Change to property
            ScrollLog(true);

            // Initialize for command mode
            cmdSMTPCommunicator = new SMTPCommunicator();
            m_authLogin = new AuthenticationLogin();
            cmdMgr = new SMTP.Commands.CommandManager();
            cmdMgr.UpdateMessage += new SMTP.Commands.CommandEvent.CommandEventHandler(OnCommandManagerUpdateMessage);
            cmdMgr.Attach(Commands.PackageCommands.Pack(this.cmdSMTPCommunicator));
            cmdMgr.Attach(new Commands.CmdHelp(cmdMgr));

            // Set accept key word command textbox
            acceptKeyHelper = new SMTP.Utility.TextboxAcceptKeyHelper(this.txtCommand);
            acceptKeyHelper.AcceptButton = this.btnCommand;

            // Initialize hex editor
            this.messageBodyBytes = new byte[0];
            textByteProvider = new Be.Windows.Forms.DynamicByteProvider(this.messageBodyBytes);

            this.hexMessage.ByteProvider = textByteProvider;

            this.CustomizeMessageBody = false;
        }