private void AddNewBloxDef() { Blox blox = BloxEd.CreateNewBloxDef(); this.Target.bloxIdents.Add(blox.ident); this.targetBloxCache.Add(blox); this.Save(); BloxListWindow instance = BloxListWindow.Instance; if ((object)instance != null) { instance.Repaint(); } }
private void OnRenameBloxDef(plyTextInputWiz wiz) { string text = wiz.text; wiz.Close(); if (!string.IsNullOrEmpty(text)) { this.targetBloxCache[this.list.index].screenName = text; plyEdUtil.SetDirty(this.targetBloxCache[this.list.index]); BloxEd.SortBloxDefList(); base.Repaint(); BloxListWindow instance = BloxListWindow.Instance; if ((object)instance != null) { instance.Repaint(); } BloxEditorWindow instance2 = BloxEditorWindow.Instance; if ((object)instance2 != null) { instance2.Repaint(); } } }