private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _renPolicyInfo = XMLOperations.ReadXML <ObservableCollection <PolicyDetailsProperties> >("RenewedPolicies.xml");

            if (_renPolicyInfo == null)
            {
                _renPolicyInfo = new ObservableCollection <PolicyDetailsProperties>();
            }
            RenewedPolicyGrid.ItemsSource = _renPolicyInfo;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            lbl_Month.Content = System.DateTime.Now.ToString("MMMMM");

            _expPolicyInfo = XMLOperations.ReadXML <ObservableCollection <PolicyDetailsProperties> >("ExpiredPolicies.xml");
            if (_expPolicyInfo == null)
            {
                _expPolicyInfo = new ObservableCollection <PolicyDetailsProperties>();
            }

            btn_Renew.Visibility     = Visibility.Hidden;
            btn_CreatePDF.Visibility = Visibility.Hidden;
        }
        private void ReadRenewedPolicies()
        {
            _renPolicyInfo = XMLOperations.ReadXML <ObservableCollection <PolicyDetailsProperties> >("RenewedPolicies.xml");
            if (_renPolicyInfo == null)
            {
                _renPolicyInfo = new ObservableCollection <PolicyDetailsProperties>();
            }

            var renPolicies = _renPolicyInfo.ToArray();

            foreach (var policy in renPolicies)
            {
                if ((policy.policyNo == tbx_PolicyNo.Text) || ((policy.firstName) == tbx_FirstName.Text) || ((policy.lastName) == tbx_LastName.Text))
                {
                    MessageBox.Show("The policy is already renewed");
                    btn_Renew.Visibility     = Visibility.Hidden;
                    btn_CreatePDF.Visibility = Visibility.Hidden;
                }
            }
        }