static void Main(string[] args) { var connectionString = args.Length > 0 ? args[0] : System.Environment.GetEnvironmentVariable("REACTIVE_MACHINE_TELEMETRY"); var containerName = args.Length > 1 ? args[1] : "reactive-machine-results"; var folderName = args.Length > 2 ? args[2] : "folderName"; if (args.Length > 2) { TaskGroup.ReadFromFile(connectionString, containerName, folderName, null); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Stats(connectionString, containerName, folderName)); }
private void button1_Click_1(object sender, EventArgs e) { string container = comboBoxAccount.Text; string folder = comboBoxFolder.Text; string pattern = txtDeployment.Text; bool success = TaskGroup.ReadFromFile(connectionString, container, folder, pattern); if (success) { int index = comboBoxFolder.FindString(folder); if (index == -1) { comboBoxFolder.Items.Add(folder); } } RefreshData(); foreach (TaskGroup m in TaskGroup.TaskGroups.Values) { m.Intervals.Clear(); } }