private void KeysForm_Load(object sender, EventArgs e)
        {
            MiscFunctions.CheckFile("apikeys.txt");

            StreamReader sr = File.OpenText("apikeys.txt");

            while (sr.Peek() >= 0)
            {
                string   line  = sr.ReadLine();
                string[] words = line.Split(';');
                dataGridView1.Rows.Add(dataGridView1.RowCount, words[1], words[2]);
            }
            sr.Close();
        }
Example #2
0
        public LangForm()
        {
            InitializeComponent();

            MiscFunctions.CheckFile("langs.txt");
            StreamReader sr = File.OpenText("langs.txt");

            while (sr.Peek() >= 0)
            {
                string line = sr.ReadLine();
                comboBox1.Items.Add(line);
            }
            sr.Close();
        }