本文整理汇总了C#中IMainWindow类的典型用法代码示例。如果您正苦于以下问题:C# IMainWindow类的具体用法?C# IMainWindow怎么用?C# IMainWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMainWindow类属于命名空间,在下文中一共展示了IMainWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BaseViewModel
public BaseViewModel(ICommandService commandService, IQueryService queryService, IMainWindow mainWindow, ILog logger)
{
_MainWindow = mainWindow;
_CommandService = commandService;
_QueryService = queryService;
_Logger = logger;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
//}
}
}
}
示例6: ParentMenuItemFeatureCommand
public ParentMenuItemFeatureCommand(IMainWindow mainWindow, IEnumerable<SelectedItem> selection, ParentMenuItemFeature owner, Search search)
: base(mainWindow, selection)
{
Util.ThrowIfParameterNull(owner, "owner");
_owner = owner;
_search = search;
}
示例7: UpdateVIFCommand
public UpdateVIFCommand(IMainWindow mainWindow, VM vm, VIF vif, Proxy_VIF proxyVIF)
: base(mainWindow, vm)
{
_vm = vm;
_vif = vif;
_proxyVIF = proxyVIF;
}
示例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();
}
示例9: Initialize
public static void Initialize(IMainWindow mainWindow)
{
//Form form = (mainWindow as Form);
//m_parent = form;
//m_manager = TaskbarManager.Instance.TabbedThumbnail;
}
示例10: RevertToSnapshotCommand
public RevertToSnapshotCommand(IMainWindow mainWindow, VM vm, VM snapshot)
: base(mainWindow, vm)
{
Util.ThrowIfParameterNull(snapshot, "snapshot");
_snapshot = snapshot;
_VM = vm;
}
示例11: ShowMembersMenu
public ShowMembersMenu(IMainWindow mainWindow)
{
_mainWindow = mainWindow;
// Gather list of implemented filters in this assembly.
CompositionHelper.ComposeInExecutingAssembly(this);
}
示例12: DockWindow
public DockWindow(IMainWindow window)
{
InitializeComponent();
_window = window;
Icon = new BitmapImage(new Uri(@"C:\Users\Shawn.Axsom\Desktop\TaskDash.ico"));
}
示例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>();
}
示例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";
}
示例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));
}
}