Ejemplo n.º 1
0
        private async Task SetSessionCodePage()
        {
            var cp = _settings.RCodePage;

            foreach (var s in RSessions.GetSessions())
            {
                try {
                    await s.SetCodePageAsync(cp);
                } catch (OperationCanceledException) { }
            }
        }
Ejemplo n.º 2
0
        private async Task SetMirrorToSession()
        {
            string mirrorName = _settings.CranMirror;
            string mirrorUrl  = CranMirrorList.UrlFromName(mirrorName);

            foreach (var s in RSessions.GetSessions())
            {
                try {
                    await s.SetVsCranSelectionAsync(mirrorUrl);
                } catch (RException) { } catch (OperationCanceledException) { }
            }
        }