Beispiel #1
0
        protected void OnButtonEditCloseDeliveryCommentClicked(object sender, EventArgs e)
        {
            if (!CheckPermissions())
            {
                return;
            }
            if (!MessageDialogHelper.RunQuestionDialog("Вы уверены что хотите изменить комментарий (преведущий комментарий будет удален)?"))
            {
                return;
            }

            Comment = String.Empty;
            CommentChanged?.Invoke(comment);
        }
Beispiel #2
0
        protected void OnButtonSaveCloseCommentClicked(object sender, EventArgs e)
        {
            if (!CheckPermissions())
            {
                return;
            }

            var employee = _employeeRepository.GetEmployeeForCurrentUser(UoW);

            if (AddCommentInfo)
            {
                Comment = employee.ShortName + " " + DateTime.Now.ToString("dd/MM/yyyy HH:mm") + ": " + ytextviewComment.Buffer.Text;
            }
            else
            {
                Comment = ytextviewComment.Buffer.Text;
            }

            Comment = ytextviewComment.Buffer.Text;
            CommentChanged?.Invoke(Comment);
        }
Beispiel #3
0
 public PermissionCommentView()
 {
     this.Build();
     ytextviewComment.Buffer.Changed += (sender, args) =>
                                        CommentChanged?.Invoke(Comment);
 }