private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (status2 == "Confirmation")
                {
                    wpfClientInfo frm1 = new wpfClientInfo();
                    frm1.status = "View";
                    frm1.status2 = status2;
                    frm1.UserID = UserID;
                    frm1.cId = Convert.ToInt32(getRow(dgClient, 0));
                    System.Windows.MessageBox.Show("Please enter other information like addres to confirm the client", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
                    frm1.ShowDialog();
                    return;
                }

                wpfClientInfo frm = new wpfClientInfo();
                frm.status = "Add";
                frm.UserID = UserID;
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }
        }
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfClientInfo frm = new wpfClientInfo();
         frm.UserID = UserID;
         frm.status = "Add";
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
 private void btnView_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfClientInfo frm = new wpfClientInfo();
         frm.status = "View";
         frm.UserID = UserID;
         frm.cId = Convert.ToInt32(getRow(dgClient, 0));
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         //System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }