Exemple #1
0
 private void dyadicFile_Click(object sender, EventArgs e) // add multiple dyadic files
 {
     dyadic_file = true;
     openFileDialog.ShowDialog();
     files[0]          = new FileForCliqueAnalysis();
     files[0].fileName = new string(openFileDialog.FileName.ToCharArray());
     currentlySelected = 0;
     //update dyadic checkbox
     checkBox1.Checked = dyadic_file;
 }
Exemple #2
0
        public void updatefiles(string[] file)
        {
            string[] fileNames = file;
            files = new FileForCliqueAnalysis[file.Length];

            //recording all of the filenames that I just got back
            for (int i = 0; i < fileNames.Length; i++)
            {
                comboBox1.Items.Add(file[i]);
                if (files[i] == null)
                {
                    files[i] = new FileForCliqueAnalysis();
                }
                //A bit ineffient, but it should be unimportant
                files[i].fileName = new string(file[i].ToCharArray());
            }
        }
 // add multiple dyadic files
 private void dyadicFile_Click(object sender, EventArgs e)
 {
     dyadic_file = true;
     openFileDialog.ShowDialog();
     files[0] = new FileForCliqueAnalysis();
     files[0].fileName = new string(openFileDialog.FileName.ToCharArray());
     currentlySelected = 0;
     //update dyadic checkbox
     checkBox1.Checked = dyadic_file;
 }
        public void updatefiles(string[] file)
        {
            string[] fileNames = file;
            files = new FileForCliqueAnalysis[file.Length];

            //recording all of the filenames that I just got back
            for (int i = 0; i < fileNames.Length; i++)
            {
                comboBox1.Items.Add(file[i]);
                if(files[i]==null)
                    files[i]=new FileForCliqueAnalysis();
                //A bit ineffient, but it should be unimportant
                files[i].fileName = new string(file[i].ToCharArray());
            }
        }