public Controller(string id, Admin_Controller mainform)
 {
     //GetIssuePerson();
     //BtnSave.Enabled = false;
     this._id       = id;
     this._mainForm = mainform;
     InitializeComponent();
     GetDataFromMainForm(_id);
 }//get all from the grid
        }//fill the places with grid details

        public Controller(Admin_Controller mainform)
        {
            this._mainForm = mainform;
            InitializeComponent();

            GetIssuePerson();
            GetVehicle();
            GetSecqurityPerson();

            CmbIssuePerson.SelectedItem = null;

            CmbVehicleNumber.SelectedItem = null;
            TxtPriviousMillage.Clear();
            CmbSecqurityPerson.SelectedItem = null;

            GetStartMeter();
            FillLastIndex();
        }//pass the credential