private void textBox1_TextChanged(object sender, EventArgs e)
 {
     if (checkReady)
     {
         papaFile.setSelectedData(list_pp.SelectedIndex,
                                  ppdatay.GetData(getSeries(comboBox1.SelectedIndex),
                                                  textBox1.Text, textBox2.Text, textBox3.Text, uint.Parse(textBox4.Text)
                                                  , uint.Parse(textBox5.Text), uint.Parse(textBox6.Text), uint.Parse(textBox7.Text)
                                                  , uint.Parse(textBox8.Text), uint.Parse(textBox9.Text), uint.Parse(textBox10.Text)
                                                  , uint.Parse(textBox11.Text), uint.Parse(textBox12.Text), uint.Parse(textBox13.Text)));
         papaFile.RecreateContent();
     }
 }
Exemple #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            OpenFileDialog diag = new OpenFileDialog();

            diag.InitialDirectory = path;

            if (diag.ShowDialog() == DialogResult.OK)
            {
                path = Path.GetFullPath(diag.FileName);
                GC.Collect();

                FileStream   _FileTemp   = new FileStream(diag.FileName, FileMode.Open);
                BinaryReader _binaryread = new BinaryReader(_FileTemp);

                ppFile.setSelectedData(cb_xbb.SelectedIndex, _binaryread.ReadBytes((int)_FileTemp.Length));

                _binaryread.Close();
                _FileTemp.Close();
            }
        }