public void SaveAllData1(ref  UserControlUnlikePhotoByUsername obj_UserControlUnlikePhotoByUsername)
 {
     try
     {
         if (ClGlobul.Userlist.Count==0)
         {
             ModernDialog.ShowMessage("Upload UserName", "Upload UserName", MessageBoxButton.OK);
             GlobusLogHelper.log.Info("Please Enter USerName");
             return;
         }
         if (obj_UserControlUnlikePhotoByUsername.rdoBtn_UnLikeBy_PhotoUser_SingleUser.IsChecked == true)
         {
             PhotoManager.UnLikePhoto_Username_Path = string.Empty;
             PhotoManager.UnLikePhoto_UserName = obj_UserControlUnlikePhotoByUsername.txt_UnLikePhoto_Username_LoadUsersPath.Text;
         }
         if (obj_UserControlUnlikePhotoByUsername.rdoBtn_UnLikeBy_PhotoUser_MultipleUser.IsChecked == true)
         {
             PhotoManager.UnLikePhoto_UserName = string.Empty;
             PhotoManager.UnLikePhoto_Username_Path = obj_UserControlUnlikePhotoByUsername.txt_UnLikePhoto_Username_LoadUsersPath.Text;
         }
         this.Dispatcher.Invoke(new Action(delegate
         {
             Number_of_ID_Username_loaded_count.Content = ClGlobul.Userlist.Count;
         }));
         PhotoManager.no_photounlike_Username = Convert.ToInt32(obj_UserControlUnlikePhotoByUsername.txtMessage_UnLike_NoOfphotousername.Text);
         ModernDialog.ShowMessage("Notice", "Data Successfully Save", MessageBoxButton.OK);
         GlobusLogHelper.log.Info("Your Data Successfully Save");
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Info("Error:" + ex.StackTrace);
     }
 }
 private void rdo_UnlikeBy_Username_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         txt_block_Selected_likeoption.Text = "Photo Unlike By Username Report";
         Number_of_ID_Username_loaded.Content = "No. of Username Loaded :";
         ObjPhotoManager_new.Isulike_username = true;
         UserControlUnlikePhotoByUsername obj_UserControlUnlikePhotoByUsername = new UserControlUnlikePhotoByUsername();
         var window = new ModernDialog
         {
             Content = obj_UserControlUnlikePhotoByUsername
         };
         window.MinHeight = 300;
         window.MinWidth = 700;
         //  window.Topmost = true;
         Button customButton = new Button() { Content = "SAVE" };
         Button customButton1 = new Button() { Content = "Close" };
         customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
         customButton.Click += (ss, ee) => { SaveAllData1(ref obj_UserControlUnlikePhotoByUsername); window.Close(); };
         window.Buttons = new Button[] { customButton, customButton1 };
         window.ShowDialog();
         string s1 = string.Empty;
         
     }
     catch(Exception ex)
     {
         GlobusLogHelper.log.Error("Error:" + ex.StackTrace);
     }
 }