private void StartTimer(string cmd) { try { Match match = Regex.Match(cmd, @"#stimer\s(?<time>\d+)\s{?(?<cmd>[^}]+)}?", RegexOptions.Compiled); string time = match.Groups["time"].Value; GlobalParams.Timer = int.Parse(time); AliasProcessor.GetInstance().AddAlias("timer", match.Groups["cmd"].Value); } catch (Exception) { } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { AliasProcessor.GetInstance().SaveAlias(); CustomVariable.SaveVariable(); }
private void muiLoadAlias_Click(object sender, RoutedEventArgs e) { AliasProcessor.GetInstance().ReloadAlias(); }