Exemple #1
0
        private async void ToolAcceptClick(object sender, EventArgs e)
        {
            state = DocumentEditorState.Send;
            await DocumentSender.Send(this, document);

            SenderSendComplete(sender, e);
        }
        public static async Task <Command> Send(Widget widget, IEnumerable <Document> documnets, DocumentWork work, Stage stage, User user)
        {
            var sender = new DocumentSender();

            sender.Localize();
            sender.Initialize(documnets.ToList());

            // sender.Hidden += SenderSendComplete;
            if (stage != null && user != null)
            {
                sender.Send(stage, user, DocumentSendType.Next);
            }
            return(await sender.ShowAsync(widget, Point.Zero));
        }
 private async void ToolAcceptClick(object sender, EventArgs e)
 {
     await DocumentSender.Send(this, List.Selection.GetItems <Document>(), null, null, null);
 }