Exemple #1
0
 private void Window_Initialized(object sender, EventArgs e)
 {
     // Read the config from last session
     SPMgr.readFromFile(out m_spPath, out m_spListFile, out m_dbServer, out m_dbSchema);
     tbSPPath.Text     = m_spPath;
     tbSPListFile.Text = m_spListFile;
     tbDBServer.Text   = m_dbServer;
     tbDBSchema.Text   = m_dbSchema;
 }
Exemple #2
0
        private void btnExecute_Click(object sender, RoutedEventArgs e)
        {
            bool result = validateInputs();
            if (result)
            {
                tbLog.Text = "";

                m_spMgr = new SPMgr(m_spPath, m_spListFile, m_dbServer, m_dbSchema);

                // Set data binding
                //Binding binding = new Binding();
                //binding.Source = m_spMgr;
                //binding.Path = new PropertyPath("LogInfo");
                //BindingOperations.SetBinding(tbLog, TextBox.TextProperty, binding);

                m_spMgr.LogInfoChanged += new EventHandler<LogInfoChangedArgs>(m_spMgr_LogInfoChanged);

                m_workerThread = new Thread(new ThreadStart(m_spMgr.doWork));

                m_workerThread.Start();
            }
        }
Exemple #3
0
        private void btnExecute_Click(object sender, RoutedEventArgs e)
        {
            bool result = validateInputs();

            if (result)
            {
                tbLog.Text = "";

                m_spMgr = new SPMgr(m_spPath, m_spListFile, m_dbServer, m_dbSchema);

                // Set data binding
                //Binding binding = new Binding();
                //binding.Source = m_spMgr;
                //binding.Path = new PropertyPath("LogInfo");
                //BindingOperations.SetBinding(tbLog, TextBox.TextProperty, binding);

                m_spMgr.LogInfoChanged += new EventHandler <LogInfoChangedArgs>(m_spMgr_LogInfoChanged);

                m_workerThread = new Thread(new ThreadStart(m_spMgr.doWork));

                m_workerThread.Start();
            }
        }