private void InitializeSoft() { GitStash gitStash = Stashes.SelectedItem as GitStash; Stashed.GroupByRevision = false; Stashed.ClearDiffs(); Loading.Visible = true; Loading.IsAnimating = true; Stashes.Enabled = false; refreshToolStripButton.Enabled = false; toolStripButton_customMessage.Enabled = false; if (gitStash == _currentWorkingDirStashItem) { toolStripButton_customMessage.Enabled = true; _asyncLoader.LoadAsync(() => Module.GetAllChangedFiles(), LoadGitItemStatuses); Clear.Enabled = false; // disallow Drop (of current working directory) Apply.Enabled = false; // disallow Apply (of current working directory) } else if (gitStash != null) { _asyncLoader.LoadAsync(() => Module.GetStashDiffFiles(gitStash.Name), LoadGitItemStatuses); Clear.Enabled = true; // allow Drop Apply.Enabled = true; // allow Apply } }