Пример #1
0
        internal void MediaUploadCloud()
        {
            if (!Conf.Subscribed)
            {
                var ns = new NotSubscribed();
                ns.ShowDialog(this);
                return;
            }

            string msg = "";

            lock (ThreadLock)
            {
                for (int i = 0; i < flowPreview.Controls.Count; i++)
                {
                    var pb = flowPreview.Controls[i] as PreviewBox;
                    if (pb != null && pb.Selected)
                    {
                        msg = CloudGateway.Upload(pb.Otid, pb.Oid, pb.FileName);
                    }
                }
            }
            if (msg != "")
            {
                MessageBox.Show(this, msg);
            }
        }
Пример #2
0
        internal void MediaUploadYouTube()
        {
            if (!Conf.Subscribed)
            {
                var ns = new NotSubscribed();
                ns.ShowDialog(this);
                return;
            }

            string msg = "";

            lock (ThreadLock)
            {
                for (int i = 0; i < flowPreview.Controls.Count; i++)
                {
                    if (flowPreview.Controls[i] is PreviewBox pb && pb.Selected)
                    {
                        msg = YouTubeUploader.Upload(pb.Oid, pb.FileName, out bool b);
                    }
                }
            }
            if (msg != "")
            {
                MessageBox.Show(this, LocRm.GetString(msg));
            }
        }
Пример #3
0
        internal void MediaUploadYouTube()
        {
            if (!Conf.Subscribed)
            {
                var ns = new NotSubscribed();
                ns.ShowDialog(this);
                return;
            }

            string msg = "";

            lock (ThreadLock)
            {
            }
            if (msg != "")
            {
                MessageBox.Show(this, LocRm.GetString(msg));
            }
        }
Пример #4
0
        internal void MediaUploadCloud()
        {
            if (!Conf.Subscribed)
            {
                var ns = new NotSubscribed();
                ns.ShowDialog(this);
                return;
            }

            string msg = "";
            lock (ThreadLock)
            {
                for (int i = 0; i < flowPreview.Controls.Count; i++)
                {
                    var pb = flowPreview.Controls[i] as PreviewBox;
                    if (pb != null && pb.Selected)
                    {
                        msg = CloudGateway.Upload(pb.Otid, pb.Oid, pb.FileName);
                    }
                }
            }
            if (msg != "")
                MessageBox.Show(this, msg);
        }