public PlayVideo() { InitializeComponent(); // DataContext = new VM_DefaultPage(); DataContext = new VM_CVPlayVideo(); // this.DataContext = new WindowViewModel(this); backend = new TextureCombine_Type1_Backend(); }
public VM_CombineTexture() { FileData = new Dictionary <String, String>(); ImageCollection = new ObservableCollection <ImageObject>(); UpdateImageList = new RelayCommand(o => { ListImagePaths(); }, o => true); backend = new TextureCombine_Type1_Backend(); }
//public delegate void MyDel(); //public delegate void ManagedCallbackHandler(int _In); public CombineTextures_Type1() { InitializeComponent(); // this.DataContext = new // DataContext = new VM_CombineTexture_Type1(this); DataContext = new VM_CombineTexture(); backend = new TextureCombine_Type1_Backend(); //backend._consoleText = Console.Text; // Bind the console... backend._consoleref = Console; // backend._dispatcherref = Dispatcher; }
public VM_CVPlayVideo() { SaveVideo = new RelayCommand(o => { Validate_Impl(); }, o => true); InvertRescaleControls = new RelayCommand(o => { InverseRescale(); }, o => true); CollapseImage = new RelayCommand(o => { FlipBoolean(); }, o => true); RunOpenCV = new RelayCommand(o => { RunOpenCV_Impl(); }, o => true); AspectRatios = new ObservableCollection <string>(); this.AspectRatios.Add("1280 x 720"); this.AspectRatios.Add("1920 x 1080"); // Fill application level default keys VideoPath = Properties.Settings.Default.OpenCV_DefaultVideo; // Initialize the backend program.. backend = new TextureCombine_Type1_Backend(); }