Exemplo n.º 1
0
        private void NoteList_Load(object sender, EventArgs e)
        {
            nRepo = new NoteRepo(ApiEndpoint);

            IntPtr pIcon = Resources.notes.GetHicon();

            Icon = Icon.FromHandle(pIcon);

            textTimer          = new Timer();
            textTimer.Interval = 1000;
            textTimer.Tick    += new EventHandler(textTimer_Tick);

            RefreshNotesList();
        }
Exemplo n.º 2
0
 public NoteService(NoteRepo nr, UserRepo ur)
 {
     _nRepo = nr;
     _uRepo = ur;
 }
Exemplo n.º 3
0
 public void TestInMemoryRepositoryCycle()
 {
     NoteRepo inMemoryNoteRepo = new NoteRepo();
     testSpecificRepo(inMemoryNoteRepo);
 }