private void Form1_Load(object sender, EventArgs e) { Text = "50PSAM"; ga = new GetApps(); listBoxApps.Items.AddRange(ga.GetAppsArray()); ga.ApplicationChanges += Ga_ApplicationChanges; timer1.Interval = settings.RefreshTimerInterval; timer2.Interval = settings.RefreshTimer2Interval * 1000; timer1.Enabled = true; timer2.Enabled = settings.AutoRefresh; tlSpustit.Enabled = false; tlUninstall.Enabled = false; tlUninstallAll.Enabled = (ga.appsCount == 0) ? false : true; hideOnClose = settings.HideOnClosing; tlRefresh.Enabled = !settings.AutoRefresh; for (int index = 0; index < ga.appsCount; index++) { ToolStripItem item = new ToolStripMenuItem(); item.Name = $"item{ga.Apps(index)}"; item.Text = $"Spustit {ga.Apps(index)}"; item.Click += Item_Click; contextMenuStrip1.Items.Add(item); } }
public void RequestTest() { var app = new GetApps(); Dictionary <string, string> parameters = new Dictionary <string, string>(); var data = app.GetData(parameters); Console.WriteLine(data); }