Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            m_model           = DataContext as MainModel;
            m_model.DropGold  = FishingBoat.GetBoolean("DropGold");
            m_model.DropBlue  = FishingBoat.GetBoolean("DropBlue");
            m_model.DropGreen = FishingBoat.GetBoolean("DropGreen");
            m_model.Templates = FishingBoat.GetText("Templates");

            m_logFunc = new FishingBoat.LogFunc(LogFunc);
            FishingBoat.LogCallback(m_logFunc);

            m_running = true;
            m_thread1 = new Thread(Thread_Func1);
            m_thread2 = new Thread(Thread_Func2);
            m_thread1.Start();
            m_thread2.Start();
        }