virtual public void SaveState() { timer.Stop(); cache = new GraphsCache(); cache.bitmaps = bitmaps; Main.self.cache[name] = cache; }
protected bool restoreState() { if (Main.self.cache.ContainsKey(name)) { cache = Main.self.cache[name] as GraphsCache; bitmaps = cache.bitmaps; updateView(); return(true); } return(false); }