private void BtnClearCount_Click(object sender, System.EventArgs e) { var instrumentRepository = new InstrumentRepository(); var instruments = instrumentRepository.Get(); foreach (var instrument in instruments) { instrumentRepository.Delete(instrument); } instrumentRepository.AddDefaultInstrument(); }