Exemple #1
0
 public static AliasProcessor GetInstance()
 {
     if (Instance == null)
     {
         Instance = new AliasProcessor();
     }
     return(Instance);
 }
Exemple #2
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)
     {
     }
 }
Exemple #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     AliasProcessor.GetInstance().SaveAlias();
     CustomVariable.SaveVariable();
 }
Exemple #4
0
 private void muiLoadAlias_Click(object sender, RoutedEventArgs e)
 {
     AliasProcessor.GetInstance().ReloadAlias();
 }