Exemplo n.º 1
0
        public SystemMessage(ActionException ex, bool toggleOk = true, bool toggleCancel = false,
				bool toggleHelp = false)
            : this("FileSync: System message", ex.Title, ex.Message, ex.Image, toggleOk,
				toggleCancel, toggleHelp)
        {
            //nothing needed here
        }
Exemplo n.º 2
0
        private void buttonReset_Click(object sender, RoutedEventArgs e)
        {
            try {
                if (connection.TestWCF())
                    new SystemMessage(null, "WCF test", "WCF connection test passed",
                        MemeType.FuckYea).ShowDialog();
                else throw new Exception("test returned false");
            } catch (Exception ex) {
                var ae = new ActionException("WCF test failed", ActionType.User, null, ex);
                new SystemMessage(ae).ShowDialog();
            }

            try {
                if (connection.TestEF())
                    new SystemMessage(null, "EF test", "Enitity Framework connection test passed",
                        MemeType.FuckYea).ShowDialog();
                else throw new Exception("test returned false");
            } catch (Exception ex) {
                var ae = new ActionException("EF test failed", ActionType.User, null, ex);
                new SystemMessage(ae).ShowDialog();
            }
        }