Esempio n. 1
0
        public MainWindowViewModel()
        {
            // TODO: inject dependencies
            _quicksaveFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), _quicksaveFolderName);

            InnerFileList = new InnerNpkFileList();
            InnerFileList.CurrentChanged += SelectedInnerFileChanged;

            FrameList = new FrameList();
            // Note that SelectedItems may not be up to date yet in the CurrentChanged event handler
            FrameList.CurrentChanged += SelectedFrameChanged;
            FrameList.SelectedItems.CollectionChanged += (sender, e) => RefreshCanQuickSaveAsPng();

            CanOpen = GetCanOpen();
            CanQuickSaveAsPng = GetCanQuickSaveAsPng();
        }
Esempio n. 2
0
        public MainWindowViewModel()
        {
            // TODO: inject dependencies
            _quicksaveFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), _quicksaveFolderName);

            InnerFileList = new InnerNpkFileList();
            InnerFileList.CurrentChanged += SelectedInnerFileChanged;

            FrameList = new FrameList();
            // Note that SelectedItems may not be up to date yet in the CurrentChanged event handler
            FrameList.CurrentChanged += SelectedFrameChanged;
            FrameList.CurrentChanged += (sender, e) => RefreshCanEditFrame();
            FrameList.SelectedItems.CollectionChanged += (sender, e) => RefreshCanQuickSaveAsPng();

            CanOpen           = GetCanOpen();
            CanQuickSaveAsPng = GetCanQuickSaveAsPng();
        }
        public DesignerMainWindowViewModel()
        {
            InnerFileList = new InnerNpkFileList()
            {
                new InnerNpkFile("foo.img", "images/foo.img"),
                new InnerNpkFile("bar.img", "images/bar.img"),
                new InnerNpkFile("baz.img", "Images/baz.img")
            };

            FrameList = new FrameList()
            {
                new FrameMetadata(0, 85, 196, 200, 7, null),
                new FrameMetadata(1, 100, 185, 205, 15, null),
                new FrameMetadata(2, 100, 185, 205, 7, 0)
            };

            CurrentFrameImage = null;
            Status = "I'm the status";
            CanOpen = true;
            CanQuickSaveAsPng = true;
        }
        public DesignerMainWindowViewModel()
        {
            InnerFileList = new InnerNpkFileList()
            {
                new InnerNpkFile("blahblahblah_0.img", "sprite/character/fighter/blahblahblah_0.img"),
                new InnerNpkFile("blahblahblah_1.img", "sprite/character/fighter/blahblahblah_1.img"),
                new InnerNpkFile("blahblahblah_2.img", "sprite/character/fighter/blahblahblah_2.img")
            };

            InnerFileList.MoveCurrentToFirst();

            FrameList = new FrameList()
            {
                new FrameMetadata(0, 85, 196, 200, 7, null),
                new FrameMetadata(1, 100, 185, 205, 15, null),
                new FrameMetadata(2, 100, 185, 205, 7, 0)
            };

            CurrentFrameImage = null;
            Status = "I'm the status";
            OpenNPKPath = @"C:\Neople\DFO\ImagePacks2\blah.NPK";
            CanOpen = true;
            CanQuickSaveAsPng = true;
        }
        public DesignerMainWindowViewModel()
        {
            InnerFileList = new InnerNpkFileList()
            {
                new InnerNpkFile("blahblahblah_0.img", "sprite/character/fighter/blahblahblah_0.img"),
                new InnerNpkFile("blahblahblah_1.img", "sprite/character/fighter/blahblahblah_1.img"),
                new InnerNpkFile("blahblahblah_2.img", "sprite/character/fighter/blahblahblah_2.img")
            };

            InnerFileList.MoveCurrentToFirst();

            FrameList = new FrameList()
            {
                new FrameMetadata(0, 85, 196, 200, 7, null),
                new FrameMetadata(1, 100, 185, 205, 15, null),
                new FrameMetadata(2, 100, 185, 205, 7, 0)
            };

            CurrentFrameImage = null;
            Status            = "I'm the status";
            OpenNPKPath       = @"C:\Neople\DFO\ImagePacks2\blah.NPK";
            CanOpen           = true;
            CanQuickSaveAsPng = true;
        }