private void de()
        {
            string platenumber = StatusFileReader();

            if (platenumber.Length > 10)
            {
                platenumber = platenumber.Substring(0, 10);
            }
            if (platenumber.Equals("failed"))
            {
                changeStatus("Vehicle Number not read");
            }
            else
            {
                //       MessageBox.Show(checkBox2.Checked.ToString());



                if (platenumber == "error1" || platenumber == "error2")
                {
                    changeStatus("Error Occured");
                }
                else
                {
                    if (!checkBox2.Checked)
                    {
                        int stat = DataEntry.dataentry(user, platenumber, checkBox1.Checked.ToString(), f2, comboBox1.SelectedItem.ToString());
                        if (stat == -1)
                        {
                            changeStatus("All plots are full");
                        }
                        else if (stat == 2)
                        {
                            changeStatus("Vehicle already exists inside plot");
                        }
                        else
                        {
                            changeStatus("Entered");
                        }
                    }
                    else
                    {
                        int stat = DataExit.dataexit(platenumber, f2);
                        if (stat == -1)
                        {
                            changeStatus("The number plate has no entry record");
                        }
                        else if (stat == 0)
                        {
                            changeStatus("No charge for VIP");
                        }
                        else
                        {
                            changeStatus("Total Charge ₹ " + stat);
                        }

                        //
                        //
                        //
                        //
                        //
                        //
                        //
                        //else
                    }
                }
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            changeStatus("Processing");
            label3.ForeColor = System.Drawing.Color.CornflowerBlue;
            if (GVIImage == 0)
            {
                bRet     = axVideoOCX1.Init();
                bRet     = axVideoOCX1.SetPreview(true);
                bRet     = axVideoOCX1.AVISaveFrameSetFps(25);
                bRet     = axVideoOCX1.AVISaveFrameSetSpeed(1);
                GVIImage = axVideoOCX1.GetColorImageHandle();
                //axVideoOCX1.AVISaveFrameSetCompression(GVIImage, "MPG4", 100);
                bRet = axVideoOCX1.AVISaveFrameInit("test.avi", GVIImage, false);
                bRet = axVideoOCX1.Start();
                bRet = axVideoOCX1.SetResolution(1280, 960);
            }

            if (textBox1.Text.Length <= 0)
            {
                axVideoOCX1.Capture(GVIImage);
                bRet = axVideoOCX1.SaveBMP(GVIImage, "test.bmp");
                bRet = axVideoOCX1.SaveJPEG(GVIImage, 100, "test.jpg");

                //string command = "python D:\\dhruv_tut\\NumberPlateReader\\NumberPlateReader\\bin\\Release\\main4.py";


                Shell.ShellExecute shellexe = new Shell.ShellExecute();

                shellexe.Path = "python";
                if (checkBox3.Checked.ToString().Equals("False"))
                {
                    shellexe.Parameters = " main4.py";
                }
                else
                {
                    //  MessageBox.Show("hello");
                    shellexe.Parameters = " main41.py";
                }
                shellexe.Verb          = Shell.ShellExecute.OpenFile;
                shellexe.ShowMode      = Shell.ShellExecute.ShowWindowCommands.SW_HIDE;
                shellexe.WorkingFolder = Directory.GetCurrentDirectory();
                shellexe.Execute();


                //ProcessStartInfo cmdsi = new ProcessStartInfo("cmd.exe");
                //cmdsi.Arguments = command;
                //Process cmd = Process.Start(cmdsi);
                //cmd.WaitForExit();

                // de();
            }
            else if (textBox1.Text.Length == 10 || textBox1.Text.Length == 9)
            {
                //  MessageBox.Show(checkBox2.Checked.ToString());
                if (!checkBox2.Checked)
                {
                    changeStatus("success");
                    int stat = DataEntry.dataentry(user, textBox1.Text.ToString(), checkBox1.Checked.ToString(), f2, comboBox1.SelectedItem.ToString());
                    textBox1.Text = "";
                    if (stat == -1)
                    {
                        changeStatus("All plots are full");
                    }
                    else if (stat == 2)
                    {
                        changeStatus("Vehicle already exists inside plot");
                    }
                }
                else
                {
                    int stat = DataExit.dataexit(textBox1.Text.ToString(), f2);
                    if (stat == -1)
                    {
                        changeStatus("The number plate has no entry record");
                    }
                    else if (stat == 0)
                    {
                        changeStatus("No charge for VIP");
                    }
                    else
                    {
                        changeStatus("Total Charge ₹ " + stat);
                    }


                    //
                    //
                    //
                    //else
                }

                changeStatus("Entered");
            }

            else
            {
                changeStatus("incorrectString");
            }
        }