コード例 #1
0
        public StructureViewModel(IMTPManager manager, string initialDirectory = null)
        {
            this.manager          = manager;
            this.initialDirectory = initialDirectory;

            Drives = GetDrives();

            InitializeCommands();
        }
コード例 #2
0
        /// <summary>
        /// Default contructor: Create a new directory item
        /// </summary>
        public DirectoryItemsViewModel(string name, DirectoryItemsType type, IMTPManager manager, DirectoryItemsViewModel parent = null)
        {
            Name         = name;
            Type         = type;
            Parent       = parent;
            this.manager = manager;

            ExpandCommand = new RelayCommand(p => ExpandDirectory());

            ClearChildren();
        }
コード例 #3
0
        public AESettingViewModel(AESetting aESetting, IMTPManager mTPManager) : base(mTPManager)
        {
            this.aESetting = aESetting;

            Messenger.Register((sender, e) =>
            {
                if (e.EventMessage != EventMessage.SaveSettings)
                {
                    return;
                }

                this.aESetting.Save();
            });

            base.InitializeCommands();
        }
コード例 #4
0
ファイル: SettingViewModel.cs プロジェクト: xuan2261/EMM
        public SettingViewModel(Settings settings, SimpleAutoMapper autoMapper, IMTPManager mTPManager)
        {
            this.autoMapper = autoMapper;
            this.settings   = settings;
            this.mTPManager = mTPManager;

            this.autoMapper.SimpleAutoMap(this.settings, this);

            Messenger.Register((sender, e) =>
            {
                if (e.EventMessage != EventMessage.SaveSettings)
                {
                    return;
                }

                this.autoMapper.SimpleAutoMap <SettingViewModel, Settings>(this, this.settings);

                this.settings.Save();
            });

            InitializeCommands();
        }
コード例 #5
0
 public MemuScriptApply(IMessageBoxService messageBoxService, IMTPManager mTPManager) : base(mTPManager)
 {
     this.messageBoxService = messageBoxService;
 }
コード例 #6
0
 public ScriptApplyBootStrap(IMessageBoxService messageBoxService, IMTPManager mTPManager)
 {
     this.messageBoxService = messageBoxService;
     this.mTPManager        = mTPManager;
 }
コード例 #7
0
ファイル: BaseScriptApply.cs プロジェクト: xuan2261/EMM
 public BaseScriptApply(IMTPManager mTPManager)
 {
     this.mTPManager = mTPManager;
 }
コード例 #8
0
 public AnkuMacroScriptApply(IMessageBoxService messageBoxService, IMTPManager mTPManager) : base(messageBoxService, mTPManager)
 {
 }
コード例 #9
0
ファイル: SettingViewModel.cs プロジェクト: xuan2261/EMM
 public SettingViewModel(IMTPManager mTPManager)
 {
     this.mTPManager = mTPManager;
 }