Exemple #1
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     if (tb_LastTransactionInfo.IsSelected)
     {
         LTISearchControl.ResetSearchControl();
         l = new LastTransactionInfoModel(this);
     }
     else if (tb_FixedTransactionAttrib.IsSelected)
     {
         FTASearchControl.ResetSearchControl();
         fta = new FixedTxnAttributesModel(this);
     }
     else if (tb_TransactionReference.IsSelected)
     {
         TRSearchControl.ResetSearchControl();
         tr = new TransactionReferenceModel(this);
     }
     else if (tb_ControlledTransaction.IsSelected)
     {
         CTSearchControl.ResetSearchControl();
         ct = new ControlledTransactionModel(this);
     }
 }
Exemple #2
0
        private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!(e.Source is TabControl))
            {
                return;
            }

            if (tb_LastTransactionInfo.IsSelected)
            {
                if (l == null)
                {
                    l = new LastTransactionInfoModel(this);
                }
            }
            else if (tb_FixedTransactionAttrib.IsSelected)
            {
                if (fta == null)
                {
                    fta = new FixedTxnAttributesModel(this);
                }
            }
            else if (tb_TransactionReference.IsSelected)
            {
                if (tr == null)
                {
                    tr = new TransactionReferenceModel(this);
                }
            }
            else if (tb_ControlledTransaction.IsSelected)
            {
                if (ct == null)
                {
                    ct = new ControlledTransactionModel(this);
                }
            }
        }