Пример #1
0
        // Form Controls

        private async void FormPutioManager_Load(object sender, EventArgs e)
        {
            treeViewPutioFiles.SelectedNode = rootnode;
            //this.Icon.Size = new Size(32, 32);
            try
            {
                notifyIcon1.Visible = true;


                UpdateTreeView(await filemgr.List("0"), rootnode);
                var response = await filemgr.AccountInfo();

                UpdateStatusText(string.Format("Connected Account: " + response["username"].ToString()));
                TimeWorker.RunWorkerAsync();
                GetTransfers();
            }
            catch
            {
                MessageBox.Show("the token provided did not work");
            }
        }