Esempio n. 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);
            }
        }
Esempio n. 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));
            }
        }
Esempio n. 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));
            }
        }
Esempio n. 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);
        }