public void SaveAllDataForLike(ref UserControlHashTagsLikeModule obj_UserControlHashTagsLikeModule) { try { if (ClGlobul.HashLiker.Count==0) { ModernDialog.ShowMessage("Upload Username", "Upload Username", MessageBoxButton.OK); GlobusLogHelper.log.Info("Please Enter Username"); return; } if (obj_UserControlHashTagsLikeModule.rdoBtn_HashTags_SingleUser.IsChecked == true) { hash_managerlibry.Hash_Like = true; hash_managerlibry.Hash_Like_Unlike_path = string.Empty; hash_managerlibry.Hash_Like_Unlike_single = obj_UserControlHashTagsLikeModule.txt_HashTags_like_Username_LoadUsersPath.Text; hash_managerlibry.hashlike_no_photo = Convert.ToInt32(obj_UserControlHashTagsLikeModule.Txt_Hashlike_count.Text); } if (obj_UserControlHashTagsLikeModule.rdoBtn_LikeBy_PhotoUser_MultipleUser.IsChecked == true) { hash_managerlibry.Hash_Like = true; hash_managerlibry.Hash_Like_Unlike_single = string.Empty; hash_managerlibry.Hash_Like_Unlike_path = obj_UserControlHashTagsLikeModule.txt_HashTags_like_Username_LoadUsersPath.Text; hash_managerlibry.hashlike_no_photo = Convert.ToInt32(obj_UserControlHashTagsLikeModule.Txt_Hashlike_count.Text); } this.Dispatcher.Invoke(new Action(delegate { No_Hashloaded_hashtag.Content = ClGlobul.HashLiker.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_hashLike_Checked(object sender, RoutedEventArgs e) { try { txtblock_Hashopration.Text = "Only Like Report :"; message_loaded_hashtag.Visibility = Visibility.Hidden; no_hashmessageloaded_hashtag.Visibility = Visibility.Hidden; UserControlHashTagsLikeModule obj_UserControlHashTagsLikeModule = new UserControlHashTagsLikeModule(); var window = new ModernDialog { Content = obj_UserControlHashTagsLikeModule }; 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) => { SaveAllDataForLike(ref obj_UserControlHashTagsLikeModule); window.Close(); }; window.Buttons = new Button[] { customButton, customButton1 }; // window.Topmost = true; window.ShowDialog(); string s1 = string.Empty; } catch(Exception ex) { GlobusLogHelper.log.Error("Error:" + ex.StackTrace); } }