public MidLevelLogic(MainWindow main, ControlsLogic logic)
 {
     m_Main               = main;
     m_ControlsLogic      = logic;
     m_Config             = IoC.FindMonkey <IConfig>();
     m_MonkeyDeserializer = IoC.FindMonkey <IMonkeyDeserializer>();
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            if (base.Resources.MergedDictionaries.Count > 0)
            {
                base.Resources.MergedDictionaries.Clear();
            }
            base.Resources.MergedDictionaries.Add(Application.LoadComponent(new Uri(@"Sc2ReplayMonkey;;;component\Resources/Skins/BaseSkin.xaml", UriKind.Relative)) as ResourceDictionary);
            base.Resources.MergedDictionaries.Add((ResourceDictionary)Application.LoadComponent(new Uri(@"Sc2ReplayMonkey;;;component\Resources/Skins/ZergSkin.xaml", UriKind.Relative)));

            InitializeComponent();

            m_IMonkeyDeserializer = IoC.FindMonkey <IMonkeyDeserializer>();
            m_IFileHandlingBaboon = IoC.FindMonkey <IFileHandlingBaboon>();
            m_IConfig             = IoC.FindMonkey <IConfig>();
            CurrentDataParsed     = m_IMonkeyDeserializer.CurrentReplayData;
            m_Logic = new ControlsLogic(this);
            m_Logic.DisplayVersionNr();
            m_Logic.RefreshListBox();
        }