Project structure change

This commit is contained in:
qianlifeng 2015-01-09 09:44:03 +08:00
parent d3bf71a22d
commit 56788c8b8f
7 changed files with 566 additions and 530 deletions

View File

@ -0,0 +1,8 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="wox_plugin_cmd_relace_winr">替換 Win+R</system:String>
<system:String x:Key="wox_plugin_cmd_leave_cmd_open">執行後不關閉命令窗口</system:String>
</ResourceDictionary>

View File

@ -0,0 +1,24 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<!--Program setting-->
<system:String x:Key="wox_plugin_program_delete">刪除</system:String>
<system:String x:Key="wox_plugin_program_edit">編輯</system:String>
<system:String x:Key="wox_plugin_program_add">增加</system:String>
<system:String x:Key="wox_plugin_program_location">位置</system:String>
<system:String x:Key="wox_plugin_program_suffixes">索引文件後綴</system:String>
<system:String x:Key="wox_plugin_program_reindex">重新索引</system:String>
<system:String x:Key="wox_plugin_program_indexing">索引中</system:String>
<system:String x:Key="wox_plugin_program_pls_select_program_source">請先選擇一項</system:String>
<system:String x:Key="wox_plugin_program_delete_program_source">你確定要刪除{0}嗎?</system:String>
<system:String x:Key="wox_plugin_program_update">更新</system:String>
<system:String x:Key="wox_plugin_program_only_index_tip">Wox僅索引下列後綴的文件</system:String>
<system:String x:Key="wox_plugin_program_split_by_tip">(每個後綴以英文狀態下的分號分隔)</system:String>
<system:String x:Key="wox_plugin_program_update_file_suffixes">成功更新索引文件後綴</system:String>
<system:String x:Key="wox_plugin_program_suffixes_cannot_empty">文件後綴不能為空</system:String>
</ResourceDictionary>

View File

@ -1,17 +1,21 @@
using System.Collections.Generic;
using System.Windows.Controls;
namespace Wox.Plugin.Sys {
/// <summary>
/// Interaction logic for SysSettings.xaml
/// </summary>
public partial class SysSettings : UserControl {
public SysSettings(List<Result> Results) {
InitializeComponent();
namespace Wox.Plugin.Sys
{
/// <summary>
/// Interaction logic for SysSettings.xaml
/// </summary>
public partial class SysSettings : UserControl
{
public SysSettings(List<Result> Results)
{
InitializeComponent();
foreach (var Result in Results) {
this.lbxCommands.Items.Add(Result);
}
}
}
foreach (var Result in Results)
{
this.lbxCommands.Items.Add(Result);
}
}
}
}