예제 #1
0
        private void buttonCannedPost_Click(object i_Sender, EventArgs i_Args)
        {
            FormSelectCannedPost form = new FormSelectCannedPost
            {
                CannedPostsDirectoryPath = this.m_UserPaths.CannedPostsDirectory
            };

            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                FormPostCannedPost cannedPost = new FormPostCannedPost
                {
                    CannedPost = form.SelectedPost
                };

                cannedPost.ShowDialog();
                if (cannedPost.DialogResult == DialogResult.OK)
                {
                    this.m_LoggedInUser.PostStatus(cannedPost.CompiledPost.StatusText);
                }
            }
        }
        private void buttonCannedPost_Click(object i_Sender, EventArgs i_Args)
        {
            FormSelectCannedPost form = new FormSelectCannedPost
            {
                CannedPostsDirectoryPath = this.m_UserPaths.CannedPostsDirectory
            };

            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                FormPostCannedPost cannedPost = new FormPostCannedPost
                {
                    CannedPost = form.SelectedPost
                };

                cannedPost.ShowDialog();
                if (cannedPost.DialogResult == DialogResult.OK)
                {
                    this.m_LoggedInUser.PostStatus(cannedPost.CompiledPost.StatusText);
                }
            }
        }