public SipekResources(MainForm mf) { _form = mf; // initialize sip struct at startup SipConfigStruct.Instance.stunServer = this.Configurator.StunServerAddress; SipConfigStruct.Instance.publishEnabled = this.Configurator.PublishEnabled; SipConfigStruct.Instance.expires = this.Configurator.Expires; SipConfigStruct.Instance.VADEnabled = this.Configurator.VADEnabled; SipConfigStruct.Instance.ECTail = this.Configurator.ECTail; SipConfigStruct.Instance.nameServer = this.Configurator.NameServer; // initialize modules _callManager.StackProxy = _stackProxy; _callManager.Config = _config; _callManager.Factory = this; _callManager.MediaProxy = _mediaProxy; _stackProxy.Config = _config; _registrar.Config = _config; _messenger.Config = _config; // do not save account state for (int i = 0; i < 5; i++) { Properties.Settings.Default.cfgSipAccountState[i] = "0"; Properties.Settings.Default.cfgSipAccountIndex[i] = "0"; } }
public GUITimer(MainForm mf) { _form = mf; _guiTimer = new Timer(); if (this.Interval > 0) _guiTimer.Interval = this.Interval; _guiTimer.Interval = 100; _guiTimer.Enabled = true; _guiTimer.Elapsed += new ElapsedEventHandler(_guiTimer_Tick); }
public KeyboardForm(MainForm form) { _main = form; InitializeComponent(); }