Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            md = MessagingDatabase.Instance;
            md.fillAbbreviations();

            //set initial visibilty of all these to hidden
            txtMsgID.Visibility    = System.Windows.Visibility.Hidden;
            txtMsgText.Visibility  = System.Windows.Visibility.Hidden;
            lblMsgID.Visibility    = System.Windows.Visibility.Hidden;
            lblSubject.Visibility  = System.Windows.Visibility.Hidden;
            txtSubject.Visibility  = System.Windows.Visibility.Hidden;
            rdStandard.Visibility  = System.Windows.Visibility.Hidden;
            rdIncident.Visibility  = System.Windows.Visibility.Hidden;
            btnSave.Visibility     = System.Windows.Visibility.Hidden;
            lblIncident.Visibility = System.Windows.Visibility.Hidden;
            cmbIncident.Visibility = System.Windows.Visibility.Hidden;
            lblSortCode.Visibility = System.Windows.Visibility.Hidden;
            txtSortCode.Visibility = System.Windows.Visibility.Hidden;
            btnClear.Visibility    = System.Windows.Visibility.Hidden;

            //populate cmbIncident with possible incidents
            cmbIncident.Items.Add("Theft");
            cmbIncident.Items.Add("Staff Attack");
            cmbIncident.Items.Add("ATM Theft");
            cmbIncident.Items.Add("Raid");
            cmbIncident.Items.Add("Customer Attack");
            cmbIncident.Items.Add("Staff Abuse");
            cmbIncident.Items.Add("Bomb Threat");
            cmbIncident.Items.Add("Terrorism");
            cmbIncident.Items.Add("Suspicious Incident");
            cmbIncident.Items.Add("Intelligence");
            cmbIncident.Items.Add("Cash Loss");
        }
Beispiel #2
0
 public ShowMessages()
 {
     InitializeComponent();
     md = MessagingDatabase.Instance;
 }