private void SetLoading(bool loading) { if (loading) { _waitingDialog.Show(); } else { _waitingDialog.Close(); } }
public void EndWaitingDialog(WaitingDialogResult r) { WaitingDialog.Close(); if (r == WaitingDialogResult.OutOfMemory) { MessageBox.Show("The repository is too large or there is not enough space in device.", "", MessageBoxButton.OK, MessageBoxImage.Error); } else if (r == WaitingDialogResult.TooMuchCommits) { MessageBox.Show("The repository has too much commits.\nLimit is 10 000 commits.", "", MessageBoxButton.OK, MessageBoxImage.Error); } }