internal static void DetectMenu() { IntPtr id = npc.GetActiveBuffer(); npc.RemoveFileFromCache(id); npc.GuessIndentation(id, true); if (FileCache.ContainsKey(id)) { MessageBox.Show(string.Format("Set indentation settings to: {0}", (FileCache[id].UseTabs == 1) ? "Tabs" : "Spaces"), "Info"); } else { MessageBox.Show("Unable to determine indentation settings.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
internal void OnFileClosed(IntPtr id) { npc.RemoveFileFromCache(id); }