Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            FastCopyOptList fcl = new FastCopyOptList();

            FastCopyOpt fc = new FastCopyOpt();

            fc.src     = tbSrc.Text;
            fc.dst     = tbDst.Text;
            fc.args    = tbOpt.Text;
            fc.caption = "001";
            fcl.Items.Add(fc);
            FastCopyOpt fc2 = new FastCopyOpt();

            fc2.src     = tbSrc.Text;
            fc2.dst     = tbDst.Text;
            fc2.args    = tbOpt.Text;
            fc2.caption = "002";
            fcl.Items.Add(fc2);

            fcl.Save("Test.json");
            tbSrc.Text = "";
            tbDst.Text = "";
            tbOpt.Text = "";
        }
Example #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_FCOL.Save("fastcopy.json");
 }