public void Init() { _Default = new Default(_APro, this); _Digest = new Digest(_APro, this); _RandKey = new RandKey(_APro, this); _Wrapper = new Wrapper(_APro, this); _Confuse = new Confuse(_APro, this); _Scrypto = new Scrypto(_APro, this); _Sstream = new Sstream(_APro, this); _Acrypto = new Acrypto(_APro, this); _Txt2Img = new Txt2Img(_APro, this); _Adi = _Default; CbMask.Items.Add(ADi._MaskDef); CbMask.SelectedIndex = 0; CbType.Items.Add(ADi._TypeDef); CbType.SelectedIndex = 0; }
public void InitOpt(string opt) { switch (opt) { case ESec.OPT_DIGEST: _Adi = _Digest; break; case ESec.OPT_RANDKEY: _Adi = _RandKey; break; case ESec.OPT_WRAPPER: _Adi = _Wrapper; break; case ESec.OPT_CONFUSE: _Adi = _Confuse; break; case ESec.OPT_SCRYPTO: _Adi = _Scrypto; break; case ESec.OPT_SSTREAM: _Adi = _Sstream; break; case ESec.OPT_ACRYPTO: _Adi = _Acrypto; break; case ESec.OPT_TXT2IMG: _Adi = _Txt2Img; break; default: _Adi = _Default; break; } _Adi.InitOpt(); }