public void SaveAllDataForComment(ref UserControlHashTagsComment obj_UserControlHashTagsComment)
        {
            try
            {
                if (ClGlobul.HashComment.Count == 0 && ClGlobul.HashCommentMessage.Count==0)
                {
                    ModernDialog.ShowMessage("Upload Username", "Upload Username", MessageBoxButton.OK);
                    GlobusLogHelper.log.Info("Please Enter Username");
                    return;
                }
                if (obj_UserControlHashTagsComment.rdoBtn_HashTags_Comment_SingleUser.IsChecked == true)
                {
                    hash_managerlibry.Hash_comment = true;
                    hash_managerlibry.Hash_comment_Usernamesingle = obj_UserControlHashTagsComment.txt_HashTags_Comment_UserName.Text;
                    hash_managerlibry.Hash_comment_Messagesingle = obj_UserControlHashTagsComment.txt_HashTags_Comment_Message.Text;
                    hash_managerlibry.Number_Hash_photocomment = Convert.ToInt32(obj_UserControlHashTagsComment.txtMessage_commenthashtag_NoOfphoto.Text);
                    try
                    {
                        hash_managerlibry.Hash_comment_Usernamepath = string.Empty;
                        hash_managerlibry.Hash_comment_Messagepath = string.Empty;
                    }
                    catch { }

                }
                if (obj_UserControlHashTagsComment.rdoBtn_HashTags_Comment_MultipleUser.IsChecked == true)
                {
                    hash_managerlibry.Hash_comment = true;
                    hash_managerlibry.Hash_comment_Usernamepath = obj_UserControlHashTagsComment.txt_HashTags_Comment_UserName.Text;
                    hash_managerlibry.Hash_comment_Messagepath = obj_UserControlHashTagsComment.txt_HashTags_Comment_UserName.Text;
                    hash_managerlibry.Number_Hash_photocomment = Convert.ToInt32(obj_UserControlHashTagsComment.txtMessage_commenthashtag_NoOfphoto.Text);
                    try
                    {
                        hash_managerlibry.Hash_comment_Usernamesingle = string.Empty;
                        hash_managerlibry.Hash_comment_Messagesingle = string.Empty;
                    }
                    catch { }
                }
                // PhotoManager.IsDownLoadImageUsingHashTag = true;
                this.Dispatcher.Invoke(new Action(delegate
                {
                    No_Hashloaded_hashtag.Content = ClGlobul.HashComment.Count;
                    no_hashmessageloaded_hashtag.Content = ClGlobul.HashCommentMessage.Count;

                }));
                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_hashComment_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         txtblock_Hashopration.Text = "Only Comment Report :";
         message_loaded_hashtag.Visibility = Visibility.Visible;
         no_hashmessageloaded_hashtag.Visibility = Visibility.Visible;
         UserControlHashTagsComment obj_UserControlHashTagsComment = new UserControlHashTagsComment();
         var window = new ModernDialog
         {
             Content = obj_UserControlHashTagsComment
         };
         window.MinHeight = 300;
         window.MinWidth = 700;
         Button customButton = new Button() { Content = "SAVE" };
         Button customButton1 = new Button() { Content = "Close" };
         customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
         customButton.Click += (ss, ee) => { SaveAllDataForComment(ref obj_UserControlHashTagsComment); window.Close(); };
         window.Buttons = new Button[] { customButton, customButton1 };
         window.ShowDialog();
         string s1 = string.Empty;
         
     }
     catch(Exception ex)
     {
         GlobusLogHelper.log.Error("Error:" + ex.StackTrace);
     }
 }