private void RefreshDataGrid(IAsyncResult ar)
        {
            EmptyMethodCaller emptyMethodCaller = (EmptyMethodCaller)ar.AsyncState;

            emptyMethodCaller.EndInvoke(ar);
            SafeRefreshDataGrid();
        }
        private void FillDataGrid()
        {
            EmptyMethodCaller asyncMethod = FillDataGridAsync;

            asyncMethod.BeginInvoke(RefreshDataGrid, asyncMethod);
        }
        /// <summary>
        /// Clear all comments in all tracks in datagridview
        /// </summary>
        public void ClearComments()
        {
            EmptyMethodCaller asyncMethod = new EmptyMethodCaller(ClearCommentsAsync);

            asyncMethod.BeginInvoke(new AsyncCallback(RefreshDataGrid), asyncMethod);
        }
 /// <summary>
 /// Clear all comments in all tracks in datagridview
 /// </summary>
 public void ClearComments()
 {
     EmptyMethodCaller asyncMethod = new EmptyMethodCaller(ClearCommentsAsync);
     asyncMethod.BeginInvoke(new AsyncCallback(RefreshDataGrid), asyncMethod);
 }