public GraphicDatabase()
        {
            InitializeComponent();

            tv = new TilesetViewer(picTilesetViewer.Handle, picTilesetViewer.Width, picTilesetViewer.Height);
            vs = new ViewSprite(picSprite.Handle);
            vf = new ViewFace(picFace.Handle);
            vas = new ViewAnimateSprite(picSpriteAnimation.Handle);
            vs.SetView(picSprite.Width, picSprite.Height);

            //tv.LoadTileset(new Texture("0.png"));
            tv.yOffSet = vTilesetScroll.Value;
            tv.UpdateView();

            lstTileset.DataSource = Editor.Instance.curGame.TM.myTileset;
            lstTileset.DisplayMember = "Name";

            lstSprite.DataSource = Editor.Instance.curGame.AM.MySprite;
            lstSprite.DisplayMember = "Name";

            lstFace.DataSource = Editor.Instance.curGame.AM.MyFace;

            cmts = (CurrencyManager)BindingContext[Editor.Instance.curGame.TM.myTileset];
            cms = (CurrencyManager)BindingContext[Editor.Instance.curGame.AM.MySprite];
            cmf = (CurrencyManager)BindingContext[Editor.Instance.curGame.AM.MyFace];

            RefreshTilesetDatabase();
            RefreshSpriteDatabase();
            RefreshFaceDatabase();

            tmrRefresher.Start();
        }
        public ActorManagerForm()
        {
            InitializeComponent();

            vas = new ViewAnimateSprite(picAnimation.Handle);
            vf = new ViewFace(picFace.Handle);
            vs = new ViewSprite(picSprite.Handle);

            lstActor.DataSource = Editor.Instance.curGame.AM.MyActor;
            lstActor.DisplayMember = "Name";

            cm = (CurrencyManager)BindingContext[Editor.Instance.curGame.AM.MyActor];

            UpdateDatabase();

            tmrAnimationRefresh.Interval = 180;
            tmrAnimationRefresh.Start();
        }