Example #1
0
        protected override void WireMessages()
        {
            Messenger.Default.Register <NotificationMessage>(this, m =>
            {
                if (m.Notification.Equals(Constants.Messages.VideoFileMsg))
                {
                    var file = m.Sender as StorageFile;
                    if (file == null)
                    {
                        return;
                    }

                    _channel = m.Target != null ? m.Target as ChannelItemViewModel : null;

                    //IsUploading = true;
                    EditVideo.CanEdit = IsUploading = false;
                    File  = file;
                    Image = File;
                }
            });

            Messenger.Default.Register <VideoMessage>(this, m =>
            {
                if (m.Notification.Equals(Constants.Messages.EditVideoMsg))
                {
                    EditVideo.SetVideo(m.Video.Video);
                    Image = m.Video.Video.ThumbnailUrl;
                }
            });

            base.WireMessages();
        }
Example #2
0
        private void UpdateVideo_Click(object sender, RoutedEventArgs e)
        {
            var id = int.Parse((sender as Button).Tag.ToString());

            var page    = new EditVideo();
            var context = (page.DataContext as EditVideoViewModel);

            context.LoadData(id);
            context.NotifyAll();
            NavigationService.Navigate(page);
        }
Example #3
0
        private void AnalyzeEditClicked(object sender, RoutedEventArgs e)   //start the edit window for that video
        {
            var selectedVideo = (AnalysisVideo)AnalyzedListBox.SelectedItem;

            if (selectedVideo != null)
            {
                BarInteraction();
                EditVideo window = new EditVideo(selectedVideo.Path, selectedVideo.Name, true, CurrentProject, EnvDirectory, Drive, EnvName);
                if (window.ShowDialog() == true)
                {
                    SyncUI();
                    EnableInteraction();
                }
                else
                {
                    EnableInteraction();
                }
            }
        }
Example #4
0
            private void btHex_Click(object sender, EventArgs e)
            {
                var f = new EditVideo();

                formMain.subeditorOpen(f, (ToolStripButton)sender, false);
            }
Example #5
0
 private void btHex_Click(object sender, EventArgs e)
 {
     var f = new EditVideo();
     formMain.subeditorOpen(f, (ToolStripButton)sender, false);
 }