public virtual void isNewNumber(Object sender, IsNewNumberEventArgs e) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); if (e.Device == Name) { INumberVector v = GetNumberVector(e.Vector.Name); if (v == null) { AddNumberVector(e.Vector); } } }
public override void isNewNumber(Object sender, IsNewNumberEventArgs e) { base.isNewNumber(sender, e); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); try { if (e.Vector.Device == Name) { IsNewNumber?.Invoke(this, new INDIFocuserNumberEventArgs(e.Vector, e.Device)); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }