/// <summary> /// Fired when a panel wasn't us to open the comment box. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FlipViewPostPanel_OnOpenCommentBox(object sender, OnOpenCommentBox e) { // Show the box with this data and the argument as the context. ShowCommentBox(e.RedditId, e.EditText, e); }
/// <summary> /// Shows the comment box /// </summary> private void ShowCommentBox(string redditId, string editText, object context) { OnOpenCommentBox args = new OnOpenCommentBox() { Context = context, RedditId = redditId, EditText = editText, CommentBoxOpened = CommentBox_OnBoxOpened, CommentBoxSubmitted = CommentBox_OnCommentSubmitted }; m_onOpenCommentBox.Raise(this, args); }