示例#1
0
 public BaseEncodeControl(EncodersForm encodersForm, EncoderType type)
 {
     InitializeComponent();
     _type          = type;
     nameLabel.Text = EncodingTypes.GetName(type);
     _encodersForm  = encodersForm;
     LoadEncoding();
 }
示例#2
0
        public TestingResultControl(int correct, int count, EncodersForm form)
        {
            InitializeComponent();
            var mark = new Mark(correct, count);

            panel1.Controls.Add(new FinishControl(mark));
            _parrent = form;
        }
        public HistoryCoddingControl(string name, IHistoryPresentation historyPresentation, EncodersForm encodersForm)
        {
            InitializeComponent();

            _name                = name;
            _encodersForm        = encodersForm;
            _historyPresentation = historyPresentation;

            Init();
        }
示例#4
0
        public SHA1Control(EncodersForm encodersForm)
        {
            InitializeComponent();
            _guid = Guid.NewGuid();
            _historyPresentation  = new HistoryPresentation();
            _questionCount        = 0;
            _correctQuestionCount = 0;

            _mainPresentation = new MainPresentation();
            _encodersForm     = encodersForm;
            Init();
        }
        //  private static Random _random = new Random();

        public DiffiHelmanControl(EncodersForm encodersForm)
        {
            InitializeComponent();
            _historyPresentation = new HistoryPresentation();
            _guid                 = Guid.NewGuid();
            _countQuestion        = 0;
            _countCorrectQuestion = 0;
            //  _codingType = codingType;
            _mainPresentation = new MainPresentation();
            _encodersForm     = encodersForm;

            Init();
        }