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(); }
public NoteService(NoteRepo nr, UserRepo ur) { _nRepo = nr; _uRepo = ur; }
public void TestInMemoryRepositoryCycle() { NoteRepo inMemoryNoteRepo = new NoteRepo(); testSpecificRepo(inMemoryNoteRepo); }