Ejemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     m_model             = DataContext as OptionModel;
     m_model.FoodHotkey  = FishingBoat.GetInteger("FoodHotkey");
     m_model.FoodTime    = FishingBoat.GetInteger("FoodTime");
     m_model.FoodEnabled = FishingBoat.GetBoolean("FoodEnabled");
     m_model.LogDrops    = FishingBoat.GetBoolean("LogDrops");
     m_model.LogSlider   = FishingBoat.GetBoolean("LogSlider");
     m_model.LogTimer    = FishingBoat.GetBoolean("LogTimer");
 }
Ejemplo n.º 2
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();
        }