private void studioShieldButton1_EscalationSuccessful(StudioControls.Controls.EscalationGoal escalationGoal, object sender, EventArgs e) { }
private void studioShieldButton1_EscalationStarting(StudioControls.Controls.EscalationGoal escalationGoal, object sender, EventArgs e) { // Save the contents of the listView to a temporary file this.PreviouseWindowState = WindowState; string filename = Path.Combine(Path.GetTempPath(), "monkeyfiles.tmp"); if (File.Exists(filename)) { File.Delete(filename); } FileStream stream = new FileStream(filename, FileMode.Create, FileAccess.Write); StreamWriter writer = new StreamWriter(stream); writer.WriteLine(listView1.Items.Count.ToString()); writer.WriteLine(comboBox1.SelectedIndex.ToString()); //writer.WriteLine(listBox1.SelectedIndex.ToString()); //MessageBox.Show(treeView1.SelectedNode.Tag.ToString()); writer.WriteLine(treeView1.SelectedNode.Tag.ToString()); for (int i = 0; i < listView1.Items.Count; i++) { writer.WriteLine(listView1.Items[i].SubItems[1].Text); } writer.Close(); stream.Close(); }