Example #1
0
        private async Task <Unit> OnReloadPos()
        {
            await Task.Run(() =>
            {
                if (!PosService.DeletePosFoldersDataAndNewDataIfPosIsDown())
                {
                    ShowPosApp();
                    return;
                }
                ReloadPosAction.SafeExecuteAction();
            });

            return(new Unit());
        }
Example #2
0
        private async Task <Unit> OnRestartPos()
        {
            await Task.Run(() =>
            {
                ProcessExt.ForceKillProcess(SettingsData.AlohaIber.Replace(SettingsData.Constants.EXTENSION_EXE, String.Empty));

                if (!PosService.DeletePosFoldersDataAndNewDataIfPosIsDown())
                {
                    ShowPosApp();
                    return;
                }
                ReloadPosAction.SafeExecuteAction();
            });

            return(new Unit());
        }