Beispiel #1
0
        public void BaseActionDialog(ActionDialogArgs argADA)
        {
            Contract.Assert(argADA != null);

            DialogParameters t = new DialogParameters
            {
                { "adaArgs", argADA },
            };

            //Using the dialog service as-is
            BaseDialogService.ShowDialog("ErrorDialog", t);
        }
Beispiel #2
0
        public void ActionDialog(ActionDialogArgs argADA)
        {
            if (argADA is null)
            {
                throw new ArgumentNullException(nameof(argADA));
            }

            DialogParameters t = new DialogParameters
            {
                { "adaArgs", argADA }
            };

            //using the dialog service as-is
            _dialogService.ShowDialog("ErrorDialog", t);
        }
        public void TestButtonHandler()
        {
            DataStore.CN.NotifyAlert("Test Alert");

            ActionDialogArgs t = new ActionDialogArgs
            {
                Name = "Test Error",
                Text = "Test Error with detail",
            };

            t.ItemDetails.Add("Test Line 1", "Test Value 1");
            t.ItemDetails.Add("Test LIne 2", "Test Value 2");

            DataStore.CN.NotifyDialogBox(t);
        }