static FastCopyOptList LoadFastCopy(string p) { FastCopyOptList ret = new FastCopyOptList(); ret.Load(p); return(ret); }
private void button5_Click(object sender, EventArgs e) { FastCopyOptList fcl2 = new FastCopyOptList(); fcl2.Load("Test.json"); if (fcl2.Items.Count >= 2) { tbSrc.Text = fcl2.Items[1].src; tbDst.Text = fcl2.Items[1].dst; tbOpt.Text = fcl2.Items[1].args; } }
public bool Import(string p) { bool ret = false; listBox1.Items.Clear(); m_FCOL.Items.Clear(); ret = m_FCOL.Load(p); if (ret) { if (m_FCOL.Items.Count > 0) { foreach (FastCopyOpt a in m_FCOL.Items) { listBox1.Items.Add(a.caption); } ret = true; } tbExePath.Text = m_FCOL.ExePath; } return(ret); }