示例#1
0
        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);
            }
        }
示例#2
0
 internal void OnFileClosed(IntPtr id)
 {
     npc.RemoveFileFromCache(id);
 }