EasyFarm.ViewModels.MasterViewModel.MasterViewModel C# (CSharp) 메소드

MasterViewModel() 공개 메소드

public MasterViewModel ( ISystemTray systemTray ) : System
systemTray ISystemTray
리턴 System
        public MasterViewModel(ISystemTray systemTray)
        {
            _systemTray = systemTray;
            _settingsManager = new SettingsManager("eup", "EasyFarm User Preference");

            _systemTray.ConfigureSystemTray(SendToSystemTray, SendToTaskBar);

            AppServices.RegisterEvent<Events.StatusBarEvent>(e => StatusBarText = e.Message);
            AppServices.RegisterEvent<Events.PauseEvent>(x => StopEngine());
            AppServices.RegisterEvent<Events.ResumeEvent>(x => StartEngine());

            StartCommand = new DelegateCommand(Start);
            ExitCommand = new DelegateCommand(Exit);
            SaveCommand = new DelegateCommand(Save);
            LoadCommand = new DelegateCommand(Load);
            SelectProcessCommand = new DelegateCommand(SelectProcess);

            OnLoad();
        }