private void ClearFunc(object param) { if (m_model != null) { m_model.Clear(); } }
/// <summary> /// Raises the button clear click event. /// </summary> /// <param name='sender'> /// Sender. /// </param> /// <param name='e'> /// E. /// </param> private void OnButtonClearClick(object sender, EventArgs e) { //clear view model m_logViewModel.Clear(); //in effect it will raise Reset event of collection change and clear log store }
public void Clear() { var logViewModel = new LogViewModel(eventLog); logViewModel.Clear(); Assert.AreEqual(0, logViewModel.Data.Count); Assert.AreEqual(0, eventLog.Entries.Count); }
public void Clear() { m_Vm.Clear(); }