Пример #1
0
        virtual public void SaveState()
        {
            timer.Stop();

            cache = new GraphsCache();

            cache.bitmaps = bitmaps;

            Main.self.cache[name] = cache;
        }
Пример #2
0
        protected bool restoreState()
        {
            if (Main.self.cache.ContainsKey(name))
            {
                cache = Main.self.cache[name] as GraphsCache;

                bitmaps = cache.bitmaps;
                updateView();

                return(true);
            }
            return(false);
        }