Example #1
0
        public ViewModels(ModelsEx models)
        {
            this.models = models;

            // view models
            Display    = new DisplayViewModel(models);
            Progress   = new ProgressViewModel(models);
            Images     = new ImagesViewModel(models);
            Equations  = new EquationsViewModel(models);
            Filter     = new FiltersViewModel(models);
            Statistics = new StatisticsViewModel(models);

            // commands
            OpenCommand   = new OpenCommand(models);
            ImportCommand = new ImportCommand(models);
            ImportEquationImageCommand = new ImportEquationImageCommand(models);
            ExportCommand = new ExportCommand(models);

            ShowPixelDisplayCommand = new ShowPixelDisplayCommand(models);
            ShowPixelColorCommand   = new ShowPixelColorCommand(models);
            ShowScaleCommand        = new ShowScaleCommand(models);
            GenerateMipmapsCommand  = new GenerateMipmapsCommand(models);
            DeleteMipmapsCommand    = new DeleteMipmapsCommand(models);
            HelpCommand             = new HelpDialogCommand(models);
            GifExportCommand        = new GifExportCommand(models);
            ImportArrayCommand      = new ImportArrayCommand(models);
            LatLongToCubemapCommand = new LatLongToCubemapCommand(models);
            CubemapToLatLongCommand = new CubemapToLatLongCommand(models);

            ResizeCommand   = new ResizeWindowCommand(models);
            SetThemeCommand = new SetThemeCommand(models);

            AddFilterCommand = new AddFilterCommand(models, Filter);

            // key input
            models.Window.Window.KeyUp += WindowOnKeyUp;
        }
Example #2
0
 public FilterItem(FiltersViewModel parent, FilterModel model, ImagesModel images)
 {
     Model      = model;
     Parameters = new FilterParametersViewModel(model, images);
     ListView   = new FilterListBoxItem(parent, model, Parameters);
 }