Exemplo n.º 1
0
        public static void Write(SessionList data, string filename)
        {
            var writer = new StreamWriter(filename);

            writer.Write(data.ToString());
            writer.Close();
        }
Exemplo n.º 2
0
 private void toolOpen_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         var epoches = FileHelper.Read("T2", openFileDialog1.FileName);
         Data = new SessionList(epoches);
         richTextBox1.Text = "数据读取完成!";
     }
 }