public void SaveAllData(ref UsercontrolSingleUser obj) { try { MessageBoxButton btnC = MessageBoxButton.YesNo; var result = ModernDialog.ShowMessage("Are you sure want to save ?", "Message Box", btnC); if (result == MessageBoxResult.Yes) { TextRange textRange = new TextRange(obj.txtEnterSingleMessages.Document.ContentStart, obj.txtEnterSingleMessages.Document.ContentEnd); if (!string.IsNullOrEmpty(textRange.Text)) { string enterText = textRange.Text; string[] arr = Regex.Split(enterText, "\r\n"); foreach (var arr_item in arr) { if (!string.IsNullOrEmpty(arr_item) || !arr_item.Contains("")) { ClGlobul.Userlist.Add(arr_item); } } } GlobusLogHelper.log.Info(" => [ No. User Loaded : " + ClGlobul.Userlist.Count + " ]"); GlobusLogHelper.log.Debug("No. User : "******"Error:" + ex.StackTrace); } }
private void rdo_CommentInput_SingleUser_Checked(object sender, RoutedEventArgs e) { try { ClGlobul.commentMsgList.Clear(); ClGlobul.CommentIdsForMSG.Clear(); txtMessage_Comment_LoadMessages.Clear(); txtMessage_Comment_PhotoID.Clear(); } catch { } try { btnMessage_Comment_LoadMessages.Visibility = Visibility.Hidden; btnMessage_Comment_LoadPhotoID.Visibility = Visibility.Hidden; txtMessage_Comment_PhotoID.Visibility = Visibility.Hidden; txtMessage_Comment_LoadMessages.Visibility = Visibility.Hidden; lbe_PhotoId.Visibility = Visibility.Hidden; lbe_message.Visibility = Visibility.Hidden; } catch { }; try { txtMessage_Comment_LoadMessages.IsReadOnly = false; txtMessage_Comment_PhotoID.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Image ID/Url Here "; // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllPhotoIdData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdoBtn_HashTagsComment_SingleUser_Checked(object sender, RoutedEventArgs e) { try { ClGlobul.HashComment.Clear(); ClGlobul.HashCommentMessage.Clear(); } catch { } try { btn_HashTags_Comment_BrowseUsers.Visibility = Visibility.Hidden; btn_HashTags_Comment_messagebrwer.Visibility = Visibility.Hidden; txt_HashTags_Comment_Message.Visibility = Visibility.Hidden; txt_HashTags_Comment_UserName.Visibility = Visibility.Hidden; Username_Copy.Visibility = Visibility.Hidden; Message.Visibility = Visibility.Hidden; } catch { }; try { txt_HashTags_Comment_Message.IsReadOnly = false; txt_HashTags_Comment_UserName.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Hash Key Here "; // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllDataHashkey(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdo_Hashlikecomment_single_Checked(object sender, RoutedEventArgs e) { try { ClGlobul.HashCommentwithlike.Clear(); ClGlobul.HashCommentMessagewithlike.Clear(); } catch { } try { btu_Browse_hashkey.Visibility = Visibility.Hidden; btu_Browse_Message.Visibility = Visibility.Hidden; txt_Message_loades.Visibility = Visibility.Hidden; txt_hashkey_loades.Visibility = Visibility.Hidden; Enter_HashKey.Visibility = Visibility.Hidden; Enter_Message.Visibility = Visibility.Hidden; } catch { }; try { txt_Message_loades.IsReadOnly = false; txt_hashkey_loades.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Hash Key Here "; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllDataHashkey(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdoBtn_LikeBy_Username_SingleUser_Checked(object sender, RoutedEventArgs e) { try { ClGlobul.PhotoList.Clear(); } catch { } try { btn_LikePhoto_Username_BrowseUsers.Visibility = Visibility.Hidden; txt_LikePhoto_Username_LoadUsersPath.Visibility = Visibility.Hidden; Likeby_Username.Visibility = Visibility.Hidden; } catch { }; try { txt_LikePhoto_Username_LoadUsersPath.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Username Here : "; // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllData2(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdoBtn_commentMessage_SingleId_Checked(object sender, RoutedEventArgs e) { try { ClGlobul.lst_ScrapeCommentMessagePhotoId.Clear(); txt_PhotoId_Commentmessage.Text = string.Empty; } catch { } try { btn_PhotoId_Commentmessage.Visibility = Visibility.Hidden; txt_PhotoId_Commentmessage.Visibility = Visibility.Hidden; Photo_ID.Visibility = Visibility.Hidden; } catch { }; try { txt_PhotoId_Commentmessage.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Photo ID here to Scrape there Comment Message : "; // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "Save" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (sa, pa) => { SaveAllData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void chkBox_Scraper_ScrapeUserFollowing_SingleUsername_Checked(object sender, RoutedEventArgs e) { GlobalDeclration.objScrapeUser.listOfFollowing.Clear(); try { btn_ScrapeUserFollowing_Browse.Visibility = Visibility.Hidden; lblLoadUsername.Visibility = Visibility.Hidden; Txt_ScrapeFollowing.Visibility = Visibility.Hidden; } catch(Exception ex) { } try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Username Here "; // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdo_SingleUser_Unfollower(object sender, RoutedEventArgs e) { txt_UnfollowerUser.Clear(); ClGlobul.lstUnfollowerList.Clear(); try { ClGlobul.lstUnfollowerList.Clear(); } catch { } try { Unfollower_browser.Visibility = Visibility.Hidden; txt_UnfollowerUser.Visibility = Visibility.Hidden; lbe_Userunfollow.Visibility = Visibility.Hidden; } catch { }; try { txt_UnfollowerUser.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Unsername To Unfollow Here "; //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
public void LoadComment_message() { try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Message Here "; //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllMessageData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
public void SaveAllPhotoIdData(ref UsercontrolSingleUser obj) { try { MessageBoxButton btnC = MessageBoxButton.YesNo; var result = ModernDialog.ShowMessage("Are you sure want to save ?", "Message Box", btnC); if (result == MessageBoxResult.Yes) { TextRange textRange = new TextRange(obj.txtEnterSingleMessages.Document.ContentStart, obj.txtEnterSingleMessages.Document.ContentEnd); if (!string.IsNullOrEmpty(textRange.Text)) { string enterText = textRange.Text; string[] arr = Regex.Split(enterText, "\r\n"); foreach (var arr_item in arr) { if (!string.IsNullOrEmpty(arr_item) || !arr_item.Contains("")) { ClGlobul.CommentIdsForMSG.Add(arr_item); } } } GlobusLogHelper.log.Info(" => [ No.Image Id Loaded : " + ClGlobul.CommentIdsForMSG.Count + " ]"); GlobusLogHelper.log.Debug("No.Image Id : " + ClGlobul.CommentIdsForMSG.Count); } Dispatcher.Invoke(new Action(delegate { Acc_reportcommnet_Totalphotouploaded.Content = ClGlobul.CommentIdsForMSG.Count; })); LoadComment_message(); } catch(Exception ex) { GlobusLogHelper.log.Error("Error:" + ex.StackTrace); } }
private void rdo_DownloadSingle_ByHashtag_Checked(object sender, RoutedEventArgs e) { try { btu_Downloadphoto_loadByuserhash.Visibility = Visibility.Hidden; txt_downloadphoto_Hashtag.Visibility = Visibility.Hidden; lbe_hashtag_user.Visibility = Visibility.Hidden; } catch { }; try { txt_downloadphoto_Hashtag.IsReadOnly = false; } catch { }; try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Hashtag User Here "; //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
private void rdo_SingleUser_Follow_like(object sender, RoutedEventArgs e) { Txt_Photo_ID.Text = string.Empty; ClGlobul.lstphotoId_Followwithlike.Clear(); try { Btu_Follow_With_like_browser.Visibility = Visibility.Hidden; Txt_Photo_ID.Visibility = Visibility.Hidden; lblLoadPhotoId.Visibility = Visibility.Hidden; } catch (Exception ex) { GlobusLogHelper.log.Error("Error : " + ex.StackTrace); } try { UsercontrolSingleUser obj = new UsercontrolSingleUser(); obj.UserControlHeader.Text = "Enter Photo Id/Url Here "; //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl"; var window = new ModernDialog { Content = obj }; window.ShowInTaskbar = true; window.MinWidth = 100; window.MinHeight = 300; Button customButton = new Button() { Content = "SAVE" }; Button customButton1 = new Button() { Content = "Close" }; customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); }; customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; window.ShowDialog(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error :" + ex.StackTrace); } }
public void SaveAllDataHashkey(ref UsercontrolSingleUser obj) { try { MessageBoxButton btnC = MessageBoxButton.YesNo; var result = ModernDialog.ShowMessage("Are you sure want to save ?", "Message Box", btnC); if (result == MessageBoxResult.Yes) { TextRange textRange = new TextRange(obj.txtEnterSingleMessages.Document.ContentStart, obj.txtEnterSingleMessages.Document.ContentEnd); if (!string.IsNullOrEmpty(textRange.Text)) { string enterText = textRange.Text; string[] arr = Regex.Split(enterText, "\r\n"); foreach (var arr_item in arr) { if (!string.IsNullOrEmpty(arr_item) || !arr_item.Contains("")) { ClGlobul.HashCommentwithlike.Add(arr_item); } } } this.Dispatcher.Invoke(new Action(delegate { Hashkey_Uploaded_likecomment.Content = ClGlobul.HashCommentwithlike.Count; })); GlobusLogHelper.log.Info(" => [ No.Of Hash key Loaded : " + ClGlobul.HashCommentwithlike.Count + " ]"); GlobusLogHelper.log.Debug("No.Of Hash Key : " + ClGlobul.HashCommentwithlike.Count); } HashLoadMessage(); } catch (Exception ex) { GlobusLogHelper.log.Error("Error:" + ex.StackTrace); } }