コード例 #1
0
        private void Btn_Reply_Click(object sender, EventArgs e)
        {
            if (selectedItem != null)
            {
                using (ReplySupportForm form = new ReplySupportForm())
                {
                    form.setFrom(selectedItem, controller);
                    form.ShowDialog();
                }
                Btn_Search_Click(null, null);

                selectedItem = result.Where(s => s.id == selectedItem.id).FirstOrDefault();
                if (selectedItem != null)
                {
                    rtb_message.Text = selectedItem.message;
                    if (selectedItem.isreplied)
                    {
                        btn_reviewReply.Visible = true;
                        btn_Reply.Visible       = false;
                    }
                    else
                    {
                        btn_reviewReply.Visible = false;
                        btn_Reply.Visible       = true;
                    }
                }
                else
                {
                    rtb_message.Text        = string.Empty;
                    btn_reviewReply.Visible = false;
                    btn_Reply.Visible       = false;
                }
            }
        }
コード例 #2
0
 private void Btn_reviewReply_Click(object sender, EventArgs e)
 {
     if (selectedItem != null)
     {
         using (ReplySupportForm form = new ReplySupportForm())
         {
             form.setFrom(selectedItem, controller);
             form.ShowDialog();
         }
     }
 }