Пример #1
0
        public MainView()
        {
            InitializeComponent();

#if DEBUG
            logBox.AppendText("DEBUG MODE ON!\n");
#endif
            try
            {
                if (!File.Exists(@".\\config.xml"))
                {
                    MessageBox.Show("No config file found! Create a config.xml first.");

                    Application.Exit();
                }

                MKMHelpers.GetProductList();

                var doc2 = MKMInteract.RequestHelper.getAccount();

                MKMHelpers.sMyOwnCountry = doc2["response"]["account"]["country"].InnerText;
                MKMHelpers.sMyId         = doc2["response"]["account"]["idUser"].InnerText;

                bot = new MKMBot();
            }
            catch (Exception eError)
            {
                MessageBox.Show(eError.Message);
            }
        }
Пример #2
0
 private void getProductListButton_Click(object sender, EventArgs e)
 {
     MKMHelpers.GetProductList();
 }