public SettingsForm(ScpProxy proxy) { _proxy = proxy; InitializeComponent(); ttSSP.SetToolTip(cbSSP, @"Requires Service Restart"); }
protected void Form_Load(object sender, EventArgs e) { if (components == null) { components = new System.ComponentModel.Container(); } scpProxy = new ScpProxy(components); scpProxy.NativeFeedReceived += new EventHandler<ScpHidReport>(Parse); Icon = Properties.Resources.Scp_All; //if DefaultConfig.txt exits in working directory, use that if (System.IO.File.Exists("Default_vjConfig.txt")) { string[] configfile = System.IO.File.ReadAllLines("Default_vjConfig.txt"); config = new PadSettings(configfile); } else {//No Default config, use our own config = new PadSettings(Properties.Resources.W3C.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None)); } //cbPad.SelectedIndex = (Int32) m_Pad; dxLocker = new X360_InputLocker(this); if (!FormLoadScp()) { MessageBox.Show(this, "Native Feed is not available", Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); Close(); } }
protected void StandardScpStop() { scpProxy.Stop(); this.components.Remove(scpProxy); scpProxy.Dispose(); scpProxy = new ScpProxy(this.components); this.scpProxy.NativeFeedReceived += new System.EventHandler<DsPacket>(this.Parse); }
public SettingsForm(ScpProxy proxy) { _proxy = proxy; InitializeComponent(); }