Ejemplo n.º 1
0
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <string> lines = new List <string>();

            foreach (var item in answers)
            {
                lines.Add(item.source);
                lines.Add(item.name);
                lines.Add(item.preview);
            }

            File.WriteAllLines(Application.StartupPath + "/DATA/sc.save", lines.ToArray());
            WFUtil.SingleProgress("Saving", "Saving screenshots to file", 100);
        }
Ejemplo n.º 2
0
        private void Utility_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!exit)
            {
                List <string> lines = new List <string>();
                foreach (var item in answers)
                {
                    lines.Add(item.source);
                    lines.Add(item.name);
                    lines.Add(item.preview);
                }

                File.WriteAllLines(Application.StartupPath + "/DATA/sc.save", lines.ToArray());
                WFUtil.SingleProgress("Saving", "Saving screenshots to file", 100); exit = true;
            }
            Application.Exit();
        }
Ejemplo n.º 3
0
 private void scriptToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MessageBox.Show(DoScript(WFUtil.SingleInput("Script", "Enter Script to Execute", "")), "Script Results");
 }
Ejemplo n.º 4
0
 private void renameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     answers[listBox1.SelectedIndex] = new Answer(answers[listBox1.SelectedIndex].source, WFUtil.SingleInput("Rename", "Enter a new name for screenshot", answers[listBox1.SelectedIndex].name), answers[listBox1.SelectedIndex].preview);
     RefreshScreenshots();
 }