示例#1
0
 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)
     {
     }
 }
示例#2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     AliasProcessor.GetInstance().SaveAlias();
     CustomVariable.SaveVariable();
 }
示例#3
0
 private void muiLoadAlias_Click(object sender, RoutedEventArgs e)
 {
     AliasProcessor.GetInstance().ReloadAlias();
 }