private void ExportBtn_OnExportStarted()
        {
            if (SecurityPicker.FilteredSecurities.Count == 0)
            {
                Progress.DoesntExist();
                return;
            }

            var path = ExportBtn.GetPath(null, typeof(Security), null, null, null, null);

            if (path == null)
            {
                return;
            }

            Progress.Start(null, typeof(Security), null, SecurityPicker.FilteredSecurities.ToEx(), path);
        }
Exemplo n.º 2
0
		private void ExportBtn_OnExportStarted()
		{
			var securities = SecurityPicker.FilteredSecurities;

			if (securities.Count == 0)
			{
				Progress.DoesntExist();
				return;
			}

			var path = ExportBtn.GetPath(null, typeof(SecurityMessage), null, null, null, null);

			if (path == null)
				return;

			Progress.Start(null, typeof(SecurityMessage), null, securities.Select(s => s.ToMessage()).ToEx(securities.Count), path);
		}
Exemplo n.º 3
0
        private void ExportBtn_OnExportStarted()
        {
            var news = GetNews();

            if (news.Count == 0)
            {
                Progress.DoesntExist();
                return;
            }

            var path = ExportBtn.GetPath(null, typeof(News), null, From, To, null);

            if (path == null)
            {
                return;
            }

            Progress.Start(null, typeof(News), null, news, path);
        }