Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
9a3b44e9
提交
9a3b44e9
authored
2月 04, 2011
作者:
Mitch Capper
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Increment version and automatically upgrading settings if needed on startup.
上级
90c694e7
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
40 行增加
和
7 行删除
+40
-7
Broker.cs
mitchcapper/FSClient/Broker.cs
+19
-4
AssemblyInfo.cs
mitchcapper/FSClient/Properties/AssemblyInfo.cs
+3
-3
Settings.Designer.cs
mitchcapper/FSClient/Properties/Settings.Designer.cs
+12
-0
Settings.settings
mitchcapper/FSClient/Properties/Settings.settings
+3
-0
app.config
mitchcapper/FSClient/app.config
+3
-0
没有找到文件。
mitchcapper/FSClient/Broker.cs
浏览文件 @
9a3b44e9
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Threading
;
using
System.Threading
;
using
System.Windows
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Xml
;
using
System.Xml
;
using
FreeSWITCH.Native
;
using
FreeSWITCH.Native
;
...
@@ -13,7 +12,8 @@ using Timer = System.Timers.Timer;
...
@@ -13,7 +12,8 @@ using Timer = System.Timers.Timer;
namespace
FSClient
{
namespace
FSClient
{
class
Broker
:
IDisposable
{
class
Broker
:
IDisposable
{
private
Broker
()
{
private
Broker
()
{
_instance
=
this
;
_instance
=
this
;
upgrade_settings
();
Utils
.
PluginLog
(
""
,
""
);
//clear file
Utils
.
PluginLog
(
""
,
""
);
//clear file
headset_plugin_manager
=
new
HeadsetPluginManager
();
headset_plugin_manager
=
new
HeadsetPluginManager
();
...
@@ -27,7 +27,22 @@ namespace FSClient {
...
@@ -27,7 +27,22 @@ namespace FSClient {
init_us
();
init_us
();
}
}
public
bool
fully_loaded
;
public
bool
fully_loaded
;
private
void
upgrade_settings
(){
try
{
if
(
Properties
.
Settings
.
Default
.
SettingsUpgrade
)
{
Properties
.
Settings
.
Default
.
Upgrade
();
Properties
.
Settings
.
Default
.
SettingsUpgrade
=
false
;
Properties
.
Settings
.
Default
.
Save
();
}
}
catch
{
Properties
.
Settings
.
Default
.
SettingsUpgrade
=
false
;
Properties
.
Settings
.
Default
.
Save
();
}
}
private
void
init_us
()
{
private
void
init_us
()
{
if
(
is_inited
)
if
(
is_inited
)
return
;
return
;
...
...
mitchcapper/FSClient/Properties/AssemblyInfo.cs
浏览文件 @
9a3b44e9
...
@@ -50,6 +50,6 @@ using System.Windows;
...
@@ -50,6 +50,6 @@ using System.Windows;
//
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.
0.0")]
[assembly: AssemblyVersion("1.0.
1.0")]
[assembly: AssemblyFileVersion("1.0.
0
.0")]
[assembly: AssemblyFileVersion("1.0.
1
.0")]
mitchcapper/FSClient/Properties/Settings.Designer.cs
浏览文件 @
9a3b44e9
...
@@ -164,5 +164,17 @@ namespace FSClient.Properties {
...
@@ -164,5 +164,17 @@ namespace FSClient.Properties {
this
[
"UseNumberOnlyInput"
]
=
value
;
this
[
"UseNumberOnlyInput"
]
=
value
;
}
}
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
"True"
)]
public
bool
SettingsUpgrade
{
get
{
return
((
bool
)(
this
[
"SettingsUpgrade"
]));
}
set
{
this
[
"SettingsUpgrade"
]
=
value
;
}
}
}
}
}
}
mitchcapper/FSClient/Properties/Settings.settings
浏览文件 @
9a3b44e9
...
@@ -38,5 +38,8 @@
...
@@ -38,5 +38,8 @@
<Setting
Name=
"UseNumberOnlyInput"
Type=
"System.Boolean"
Scope=
"User"
>
<Setting
Name=
"UseNumberOnlyInput"
Type=
"System.Boolean"
Scope=
"User"
>
<Value
Profile=
"(Default)"
>
True
</Value>
<Value
Profile=
"(Default)"
>
True
</Value>
</Setting>
</Setting>
<Setting
Name=
"SettingsUpgrade"
Type=
"System.Boolean"
Scope=
"User"
>
<Value
Profile=
"(Default)"
>
True
</Value>
</Setting>
</Settings>
</Settings>
</SettingsFile>
</SettingsFile>
\ No newline at end of file
mitchcapper/FSClient/app.config
浏览文件 @
9a3b44e9
...
@@ -37,6 +37,9 @@
...
@@ -37,6 +37,9 @@
<
setting
name
=
"UseNumberOnlyInput"
serializeAs
=
"String"
>
<
setting
name
=
"UseNumberOnlyInput"
serializeAs
=
"String"
>
<
value
>
True
</
value
>
<
value
>
True
</
value
>
</
setting
>
</
setting
>
<
setting
name
=
"SettingsUpgrade"
serializeAs
=
"String"
>
<
value
>
True
</
value
>
</
setting
>
</
FSClient
.
Properties
.
Settings
>
</
FSClient
.
Properties
.
Settings
>
</
userSettings
>
</
userSettings
>
</
configuration
>
</
configuration
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论