示例#1
0
        public frmFrequent()
        {
            InitializeComponent();

            db         = new PhishModel();
            Repository = new EFRepository(db);

            LoadGrid(PhishDataType.Undefined);
        }
示例#2
0
        public frmStats()
        {
            InitializeComponent();

            db         = new PhishModel();
            Repository = new EFRepository(db);

            Stats();
        }
示例#3
0
        public frmIgnore()
        {
            InitializeComponent();

            db         = new PhishModel();
            Repository = new EFRepository(db);

            LoadGrid();
        }
示例#4
0
        public Form1()
        {
            InitializeComponent();

            db             = new PhishModel();
            Repository     = new EFRepository(db);
            AlgorithmClass = new Algorithms();

            txtUrl.Text = "www.google.com";

            CombinedStats = Repository.Find <UrlStatistic>(s => s.Type == StatisticType.Overall).FirstOrDefault();
        }
示例#5
0
 public EFRepository(PhishModel context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }