Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();
            userActivity.KeyDown += UserActivity_KeyDown;
            userActivity.KeyUp   += UserActivity_KeyUp;

            TextCorrecter.GetSource();
            using (var reader = new XmlTextReader("LML_Data\\Highlight.xshd"))
                CommandBox.SyntaxHighlighting = HighlightingLoader.Load(reader, HighlightingManager.Instance);

            if (Settings.Default.IsFirstLaunch)
            {
                Settings.Default.IsFirstLaunch = false;
                Sourcer.CommandSourceUpdate();
            }

            IntelWords = IntelReader.GetArray("ShortCuts>Inputs").ToList();
            for (int i = 0; i < IntelWords.Count; i++)
            {
                IntelWords[i] = IntelWords[i].Replace("/", "");

                if (Regex.IsMatch(IntelWords[i], "[|]"))
                {
                    var words = IntelWords[i].Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
                    IntelWords[i] = words[0];

                    for (int j = 1; j < words.Length; j++)
                    {
                        IntelWords.Add(words[j]);
                    }
                }
            }

            Files = FileSearcher.GetFilesFast(@"C:\ProgramData\Microsoft\Windows\Start Menu\Programs", "*.*");

            CommandBox.TextArea.TextEntering += IntellisenseTextEntering;
            CommandBox.TextArea.TextEntered  += IntellisenseTextEntered;
        }
Esempio n. 2
0
 public void Execute(string[] args) =>
 Sourcer.CommandSourceUpdate();