Exemplo n.º 1
0
        private void m_BtnStart_Click(object sender, EventArgs e)
        {
            m_strUserName = m_TxtUserName.Text;

            if (m_ComboFeeder.Text == "UK")
            {
                m_region = "LD";
                m_strIP  = "185.95.16.126";
            }
            else if (m_ComboFeeder.Text == "US")
            {
                m_region = "NY";
                m_strIP  = "185.95.19.32";
            }

            if (string.IsNullOrEmpty(m_strIP) || string.IsNullOrEmpty(m_strUserName))
            {
                Console.WriteLine("*** Please input feeder and username correctly. ***");
                return;
            }

            Feeder.Instance().m_strIP       = m_strIP;
            Feeder.Instance().m_region      = m_region;
            Feeder.Instance().m_strUserName = m_strUserName;
            Feeder.Instance().ScrapStart();
        }
Exemplo n.º 2
0
 private void MainWnd_FormClosing(object sender, FormClosingEventArgs e)
 {
     Feeder.Instance().ScrapFinish();
 }