Exemplo n.º 1
0
        private void btnParse_Click(object sender, EventArgs e)
        {
            int result = php_ini.Parse();

            if (result != PhpIni.PARSE_SUCCESS)
            {
                MessageBox.Show("解析失败", "错误");
            }
        }
Exemplo n.º 2
0
        private void btnOpenFile_Click(object sender, EventArgs e)
        {
            DialogResult dr = openFileDialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                txtFileName.Text = openFileDialog.FileName;
                php_ini          = new PhpIni(openFileDialog.FileName);
                int result = php_ini.Parse();
                if (result == 0)
                {
                    BuildContextMenuStrip();
                    btnRebuild.Enabled = true;
                    btnAlter.Enabled   = true;
                }
            }
        }