• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IMainWindow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IMainWindow的典型用法代码示例。如果您正苦于以下问题:C# IMainWindow类的具体用法?C# IMainWindow怎么用?C# IMainWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IMainWindow类属于命名空间,在下文中一共展示了IMainWindow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: BaseViewModel

 public BaseViewModel(ICommandService commandService, IQueryService queryService, IMainWindow mainWindow, ILog logger)
 {
     _MainWindow = mainWindow;
     _CommandService = commandService;
     _QueryService = queryService;
     _Logger = logger;
 }
开发者ID:iliasjennane,项目名称:pokerleaguemanager,代码行数:7,代码来源:BaseViewModel.cs


示例2: MainWindowViewModel

        public MainWindowViewModel(IMainWindow mainWindow, IEnumerable<IBuildServer> buildServers)
        {
            BuildServers = buildServers.Select(b => new BuildServerViewModel(b));

            CloseApplicationCommand = new ActionCommand(() => Application.Current.Shutdown());
            MinimizeToTrayCommand = new ActionCommand(mainWindow.MinimizeToTray);
        }
开发者ID:thenathanjones,项目名称:ojo,代码行数:7,代码来源:MainWindowViewModel.cs


示例3: ScriptApi

        /// <summary>APIの処理を実際に担当できるサブモジュールを用いてインスタンスを初期化します。</summary>
        /// <param name="window">キャラ表示ウィンドウ</param>
        /// <param name="character">実際のキャラクター</param>
        /// <param name="voiceOperator">発声処理器</param>
        /// <param name="chatWindow">チャット枠</param>
        /// <param name="requestor">スクリプト実行要求器</param>
        /// <param name="setting">設定事項</param>
        /// <param name="characterName">キャラクター名</param>
        public ScriptApi(
            IMainWindow window,
            IHarrietCharacter character,
            IVoiceOperator voiceOperator,
            IChatWindowModel chatWindow,
            IScriptRequestor requestor,
            CharacterSetting setting,
            IScriptApiSetting scriptApiSetting,
            string characterName
            )
        {
            this.Window = window;
            this.Character = character;
            this._voiceOperater = voiceOperator;
            this.ChatWindow = chatWindow;
            this.CharacterName = characterName;
            this.Setting = new SettingWindowViewModel(setting);
            this.ScriptRequest = requestor;

            _keyboardHook = new KeyboardHook(OnKeyboardUpDown);

            ////プラグインがあったら拾い、無かったら無視
            //try
            //{
            //    TextConverter = TextToPronounceConverterLoader.Load().FirstOrDefault() ??
            //                    new ImeTextConverter(); 
            //}
            //catch(Exception)
            //{
            //    TextConverter = new ImeTextConverter();
            //}

            _scriptApiSetting = scriptApiSetting;
        }
开发者ID:malaybaku,项目名称:harriet,代码行数:42,代码来源:ScriptApi.cs


示例4: MainWindowCommandModel

 /// <summary>
 /// Initializes a new instance of the <see cref="MainWindowCommandModel"/> class.
 /// </summary>
 /// <param name="mainWindowViewModel">The main window view model.</param>
 /// <param name="mainWindow">The main window of the application.</param>
 public MainWindowCommandModel(MainWindowViewModel mainWindowViewModel, IMainWindow mainWindow)
 {
     //this.mainWindowViewModel = mainWindowViewModel;
     //this.mainWindow = mainWindow;
     //this.mainWorkArea = mainWindow.Designer;
     this.WorkAreaCommands = new WorkAreaCommands(mainWindowViewModel, mainWindow.WorkArea);
 }
开发者ID:Jedzia,项目名称:BackBock,代码行数:12,代码来源:MainWindowCommandModel.cs


示例5: ListViewModel

        public ListViewModel(IMainWindow mainWindow, ISelectDirectoryService selectDirectoryService)
        {
            _mainWindow = mainWindow;
            
            _appFolder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData) + @"\KidsPlayer\";
            _filePath = _appFolder + "moviesList.xml";

            LoadMoviesList();

            if (Movies == null || !Movies.Any())
            {
                if (selectDirectoryService.DetermineDirectory())
                {
                    Movies = Directory.EnumerateFiles(selectDirectoryService.DirectoryName, "*.mp4")
                        .Select(file => new Movie { Path = file })
                        .ToList();

                    //var ffMpeg = new FFMpegConverter();
                    //Directory.CreateDirectory(_appFolder + "thumbnails");

                    //foreach (var movie in Movies)
                    //{
                    //    ffMpeg.GetVideoThumbnail(movie.Path, _appFolder + @"thumbnails\" + movie.Name + ".jpg", 50);
                    //}
                   

                }
            }
        }
开发者ID:TimeCoder,项目名称:KidsPlayer,代码行数:29,代码来源:ListViewModel.cs


示例6: ParentMenuItemFeatureCommand

 public ParentMenuItemFeatureCommand(IMainWindow mainWindow, IEnumerable<SelectedItem> selection, ParentMenuItemFeature owner, Search search)
     : base(mainWindow, selection)
 {
     Util.ThrowIfParameterNull(owner, "owner");
     _owner = owner;
     _search = search;
 }
开发者ID:huizh,项目名称:xenadmin,代码行数:7,代码来源:ParentMenuItemFeatureCommand.cs


示例7: UpdateVIFCommand

 public UpdateVIFCommand(IMainWindow mainWindow, VM vm, VIF vif, Proxy_VIF proxyVIF)
     : base(mainWindow, vm)
 {
     _vm = vm;
     _vif = vif;
     _proxyVIF = proxyVIF;
 }
开发者ID:huizh,项目名称:xenadmin,代码行数:7,代码来源:UpdateVIFCommand.cs


示例8: Initialize

        /// <summary>
        /// 起動後にモデルの動作を開始します。
        /// NOTE: エントリポイント的に動作する
        /// </summary>
        private void Initialize(IMainWindow mainWindow)
        {
            string characterName = CommonSettingRecord.Load().CharacterName;
            CharacterSetting = CharacterSetting.Load(characterName);

            _characterOperator = new HarrietCharacterOperator(
                characterName,
                mainWindow,
                CharacterSetting.CharacterAppearance
                );

            _scriptingOperator = new ScriptingOperator(
                characterName,
                mainWindow,
                _characterOperator.Character,
                CharacterSetting
                );

            Observable.FromEventPattern<EventArgs>(_scriptingOperator, nameof(_scriptingOperator.Initialized))
                  .Take(1)
                  .Subscribe(_ => _timer.Start());

            Observable.FromEventPattern<EventArgs>(_scriptingOperator, nameof(_scriptingOperator.Closed))
                .Take(1)
                .Subscribe(_ => mainWindow.Close());

            _scriptingOperator.Start();

            //タイマーは初期化スクリプトが読み終わってから稼働開始するのでここでは放置
            //_timer.Start();
        }
开发者ID:malaybaku,项目名称:harriet,代码行数:35,代码来源:ModelCore.cs


示例9: Initialize

        public static void Initialize(IMainWindow mainWindow)
        {
            //Form form = (mainWindow as Form);
            //m_parent = form;

            //m_manager = TaskbarManager.Instance.TabbedThumbnail;
        }
开发者ID:Mofsy,项目名称:jinxbot,代码行数:7,代码来源:ThumbnailPreviewManager.cs


示例10: RevertToSnapshotCommand

 public RevertToSnapshotCommand(IMainWindow mainWindow, VM vm, VM snapshot)
     : base(mainWindow, vm)
 {
     Util.ThrowIfParameterNull(snapshot, "snapshot");
     _snapshot = snapshot;
     _VM = vm;
 }
开发者ID:huizh,项目名称:xenadmin,代码行数:7,代码来源:RevertToSnapshotCommand.cs


示例11: ShowMembersMenu

        public ShowMembersMenu(IMainWindow mainWindow)
        {
            _mainWindow = mainWindow;

            // Gather list of implemented filters in this assembly.
            CompositionHelper.ComposeInExecutingAssembly(this);
        }
开发者ID:markusl,项目名称:jro,代码行数:7,代码来源:ShowMembersMenu.cs


示例12: DockWindow

        public DockWindow(IMainWindow window)
        {
            InitializeComponent();

            _window = window;
            Icon = new BitmapImage(new Uri(@"C:\Users\Shawn.Axsom\Desktop\TaskDash.ico"));
        }
开发者ID:axs221,项目名称:TaskDash,代码行数:7,代码来源:DockWindow.xaml.cs


示例13: ReadkeyCommandTests

 public ReadkeyCommandTests()
 {
     this.platformFacade = Substitute.For<IPlatformFacade>();
     this.platformFacade.RegisterHotKey(Keys.None, 0).ReturnsForAnyArgs(true);
     this.keyMapService = new KeyMapService(this.platformFacade);
     this.mainWindow = Substitute.For<IMainWindow>();
 }
开发者ID:codito,项目名称:oshell,代码行数:7,代码来源:ReadkeyCommandTests.cs


示例14: ViewGameResultsViewModel

        public ViewGameResultsViewModel(ICommandService commandService, IQueryService queryService, IMainWindow mainWindow, ILog logger)
            : base(commandService, queryService, mainWindow, logger)
        {
            CloseCommand = new RelayCommand(x => this.Close());

            Height = 400;
            WindowTitle = "View Game Results";
        }
开发者ID:iliasjennane,项目名称:pokerleaguemanager,代码行数:8,代码来源:ViewGameResultsViewModel.cs


示例15: LoadExportProjectAddins

        public void LoadExportProjectAddins(IMainWindow mainWindow)
        {
            foreach (IExportProject exportProject in AddinManager.GetExtensionObjects<IExportProject> ()) {
                mainWindow.AddExportEntry(exportProject.GetMenuEntryName(), exportProject.GetMenuEntryShortName(),
                    new Action<Project, IGUIToolkit>(exportProject.ExportProject));

            }
        }
开发者ID:dineshkummarc,项目名称:longomatch,代码行数:8,代码来源:AddinsManager.cs


示例16: MenuItemFeatureCommand

 public MenuItemFeatureCommand(IMainWindow mainWindow, IEnumerable<SelectedItem> selection, MenuItemFeature menuItemFeature, Search search, PluginSerializationLevel serialization)
     : base(mainWindow, selection)
 {
     Util.ThrowIfParameterNull(menuItemFeature, "menuItemFeature");
     _menuItemFeature = menuItemFeature;
     _search = search;
     _serialization = serialization;
 }
开发者ID:ChrisH4rding,项目名称:xenadmin,代码行数:8,代码来源:MenuItemFeatureCommand.cs


示例17: PlugIn

 /// <summary>
 ///   Plugs in the current node to the main window.
 /// </summary>
 /// <param name="mainForm"> Main window on which the node will be plugged in. </param>
 public void PlugIn(IMainWindow mainForm)
 {
     if (null == mainForm)
     {
         ExceptionManager.Throw(new ArgumentNullException("mainForm"));
     }
     mainForm.SetCurrentControl(this);
 }
开发者ID:gitter-badger,项目名称:UROCare,代码行数:12,代码来源:SetupNodeControl.cs


示例18: MainWindowViewModel

 public MainWindowViewModel(IMainWindow view, IContainer container)
     : base(view, container)
 {
     ShowFirstChildCommand = new DelegateCommand<object>(OnShowFirstChild);
     ShowSecondChildCommand = new DelegateCommand<object>(OnShowSecondChild);
     ShowModalWindowCommand = new DelegateCommand<object>(OnShowModalWindow);
     ExitCommand = new DelegateCommand<object>(OnExit);
 }
开发者ID:jpreecedev,项目名称:WPFMVVMWithStructureMap,代码行数:8,代码来源:MainWindowViewModel.cs


示例19: MainWindowPresenter

        public MainWindowPresenter(IMainWindow my_view, IOPSClient my_client)
        {
            view = my_view;
            client = my_client;

            client.SessionCreated += ClientOnSessionCreated;
            client.SessionCompleted += ClientOnSessionCompleted;
        }
开发者ID:divyashreeu,项目名称:ozeki-call-recorder,代码行数:8,代码来源:MainWindowPresenter.cs


示例20: CoreModule

        public CoreModule(IShell shell, IStateManager stateManager, IMainWindow mainWindow)
        {
            this.shell = shell;
            this.stateManager = stateManager;
            this.mainWindow = mainWindow;

            this.shell.AttemptingDeactivation += ShellDeactivating;
        }
开发者ID:offbeat-solutions,项目名称:offgit,代码行数:8,代码来源:CoreModule.cs



注:本文中的IMainWindow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IMaintainableRefObject类代码示例发布时间:2022-05-24
下一篇:
C# IMainForm类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap