public void OpenLoading(string title, string message) { if (commandQueue.Count > 0) { commandQueue.First.Value.UnExecute(); } PopupLoadingCommand loadingCommand = new PopupLoadingCommand(PopupLoadingInstance, message, title); commandQueue.AddFirst(loadingCommand); loadingCommand.Execute(); }
public void CloseLoading() { PopupLoadingCommand loadingCommand = (PopupLoadingCommand)(commandQueue.First.Value); if (loadingCommand == null) { return; } commandQueue.RemoveFirst(); loadingCommand.UnExecute(); // Execute next command, if there is. ExecuteNextCommand(); }