public IPOViewerMainWindow(IpoViewerModel view)
        {
            InitializeComponent();

            MTCache               = new MTCacheConnection();
            m_AllAccounts         = MTCache.GetAllAccounts();
            m_AllSecurity1        = MTCache.GetListSecurity(m_intAssetCode);
            m_AllSecurity         = m_AllSecurity1.Tables[0];
            this.txtAccount1.Text = m_strAccountShortName;

            DateTime nowDate = DateTime.Now;

            this.txtdate.Text = Convert.ToString(nowDate.ToString("MM/dd/yyyy"));
            this.DataContext  = view;
        }
        public void InitWidget()
        {
            this.Parameters = new IPOViewerParameters();
            this.Parameters.SetParams(this.pluginParameters.GetParams());


            this.TransactionViewerModel = new IpoViewerModel((IPOViewerParameters)this.Parameters);

            TransactinosViewerWindow = new IPOViewerMainWindow(this.TransactionViewerModel);


            this.UiElement = TransactinosViewerWindow;



            LinedataApp.Instance.ApplicationNotification.RowChanged += ApplicationNotification_RowChanged;

            EventHandler <TabData1EventArgs> handler = new EventHandler <TabData1EventArgs>(this.TabData1Event);

            this.subscriber.Event += handler;
            this.TabData1Event(null, this.subscriber.GetLastPublishedData(this));
        }