예제 #1
0
        private void lnkShili_Click(object sender, EventArgs e)
        {
            string      templateFolder = System.IO.Path.Combine(Application.StartupPath, "config");
            string      filename       = System.IO.Path.Combine(templateFolder, "源坐标示例.txt");
            string      txt            = System.IO.File.ReadAllText(filename);
            FormExample frm            = new FormExample();

            frm.SetTxt(txt);
            frm.Show();
        }
예제 #2
0
        private void hyperlinkLabelControl1_Click(object sender, EventArgs e)
        {
            string      templateFolder = System.IO.Path.Combine(Application.StartupPath, "config");
            string      filename       = System.IO.Path.Combine(templateFolder, "对应参数示例.txt");
            string      txt            = System.IO.File.ReadAllText(filename, Encoding.Default);
            FormExample frm            = new FormExample();

            frm.SetTxt(txt);
            frm.Show();
        }