public bool Execute()
 {
     GenMovieWindow window = new GenMovieWindow();
     window.DataContext = new GenMovieViewModel(window);
     window.ShowDialog();
     return true;
 }
示例#2
0
        public bool Execute()
        {
            GenMovieWindow window = new GenMovieWindow();

            window.DataContext = new GenMovieViewModel(window);
            window.ShowDialog();
            return(true);
        }
        private void CreateMovie()
        {
            GenMovieWindow window    = new GenMovieWindow();
            var            viewmodel = new GenMovieViewModel(window);

            viewmodel.Fps      = Fps;
            viewmodel.MinValue = MinValue;
            viewmodel.MaxValue = MaxValue;
            window.DataContext = viewmodel;
            window.ShowDialog();
        }
 private void CreateMovie()
 {
     GenMovieWindow window = new GenMovieWindow();
     var viewmodel = new GenMovieViewModel(window);
     viewmodel.Fps = Fps;
     viewmodel.MinValue = MinValue;
     viewmodel.MaxValue = MaxValue;
     window.DataContext = viewmodel;
     window.ShowDialog();   
 }