Ejemplo n.º 1
0
        private void ToolStripMenuItemEditClick(object sender, EventArgs e)
        {
            var form = new RoutineAuditForm(_directivesViewer.SelectedItem);

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Ejemplo n.º 2
0
        private void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            var form = new RoutineAuditForm(new SmartCore.CAA.RoutineAudits.RoutineAudit()
            {
                OperatorId = _operatorId,
                Settings   = new RoutineAuditSettings()
                {
                    Created  = DateTime.Now,
                    AuthorId = GlobalObjects.CaaEnvironment.IdentityUser.ItemId
                }
            });

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
            e.Cancel = true;
        }