private void OptionsForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            SecOptions o = SecOptions.getInstance();

            o.m_clientId  = tbClientId.Text;
            o.m_secretKey = tbSecretKey.Text;
            o.writeKey();
        }
        public OptionsForm(MainForm form)
        {
            InitializeComponent();

            m_mf = form;
            cbTopMost.Checked    = m_mf.TopMost;
            trackBarOpaque.Value = (int)(m_mf.Opacity * 100);

            SecOptions o = SecOptions.getInstance();

            o.readKey();
            tbClientId.Text  = o.m_clientId;
            tbSecretKey.Text = o.m_secretKey;
        }
Beispiel #3
0
        public EsiData(MainForm mainform)
        {
            SecOptions o = SecOptions.getInstance();

            o.readKey();

            IOptions <EsiConfig> config = Options.Create(new EsiConfig()
            {
                EsiUrl      = "https://esi.tech.ccp.is/",
                DataSource  = DataSource.Tranquility,
                ClientId    = o.m_clientId,
                SecretKey   = o.m_secretKey,
                CallbackUrl = "eveauth-eveclip://callback/",
                UserAgent   = "Name: Che Silas"
            });

            m_client       = new EsiClient(config);
            m_authCharData = null;
            m_mainForm     = mainform;
            InitAuth();
        }