예제 #1
0
파일: ACm.cs 프로젝트: burstas/rmps
 public ACm(APro apro, Cm cm)
 {
     _APro = apro;
     _Cm = cm;
 }
예제 #2
0
파일: APro.cs 프로젝트: burstas/rmps
        public void InitOnce(UserModel userModel)
        {
            _UserModel = userModel;

            //
            // UcDo
            //
            _UcDo = new Me.Amon.Sec.V.Pro.Uc.Do(this);
            _UcDo.Init();
            _UcDo.Location = new System.Drawing.Point(246, 134);
            _UcDo.Name = "UcDo";
            _UcDo.Size = new System.Drawing.Size(240, 102);
            _UcDo.TabIndex = 6;
            Controls.Add(_UcDo);

            //
            // UcDi
            //
            _UcDi = new Me.Amon.Sec.V.Pro.Uc.Di(this);
            _UcDi.Init();
            _UcDi.Location = new System.Drawing.Point(0, 134);
            _UcDi.Name = "UcDi";
            _UcDi.Size = new System.Drawing.Size(240, 102);
            _UcDi.TabIndex = 5;
            Controls.Add(_UcDi);

            //
            // UcUk
            //
            _UcUk = new Me.Amon.Sec.V.Pro.Uc.Uk(this);
            _UcUk.Init();
            _UcUk.Location = new System.Drawing.Point(246, 26);
            _UcUk.Name = "UcUk";
            _UcUk.Size = new System.Drawing.Size(240, 102);
            _UcUk.TabIndex = 4;
            Controls.Add(_UcUk);

            //
            // UcCm
            //
            _UcCm = new Me.Amon.Sec.V.Pro.Uc.Cm(this);
            _UcCm.Init();
            _UcCm.Location = new System.Drawing.Point(0, 26);
            _UcCm.Name = "UcCm";
            _UcCm.Size = new System.Drawing.Size(240, 102);
            _UcCm.TabIndex = 3;
            Controls.Add(_UcCm);

            //
            // CbKey
            //
            CbKey.Items.Add(new Items { K = "0", V = "请选择" });
            CbKey.Items.Add(new Items { K = ESec.DIR_ENCRYPT, V = "加密" });
            CbKey.Items.Add(new Items { K = ESec.DIR_DECRYPT, V = "解密" });
            CbKey.SelectedIndex = 0;
            CbKey.Visible = false;

            //
            // CbOpt
            //
            CbOpt.Items.Add(new Items { K = "0", V = "请选择" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_DIGEST, V = "散列算法" });
            //CbOpt.Items.Add(new Item { K = IData.OPT_RANDKEY, V = "随机口令" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_WRAPPER, V = "掩码算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_SCRYPTO, V = "块对称算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_SSTREAM, V = "流对称算法" });
            //CbOpt.Items.Add(new Item { K = IData.OPT_ACRYPTO, V = "非对称算法" });
            //CbOpt.Items.Add(new Item { K = IData.OPT_TXT2IMG, V = "图文转换" });
            CbOpt.SelectedIndex = 0;
        }