📄 notifywinodwsetting.cs
字号:
namespace Imps.Client.Core
{
using System;
using System.Xml;
public class NotifyWinodwSetting : PropertyDictionary, IUserConfig
{
internal NotifyWinodwSetting()
{
}
public void ClearLocalUserCfg()
{
}
public void ClearUserCfg()
{
}
public void ClearWndCfg()
{
}
public void LoadLocalUserCfg(XmlNode node)
{
}
public void LoadWndXml(XmlNode node)
{
}
public void LoadXml(XmlNode xmlNode)
{
foreach (XmlNode node in xmlNode.ChildNodes)
{
string name;
if (((name = node.Name) != null) && (name == "OnlineNotify"))
{
int num = 0;
int.TryParse(node.InnerText, ref num);
base.InnerSetPropertyValue<ProposedData<int>>(node.Name, (ProposedData<int>) num);
continue;
}
bool flag = false;
bool.TryParse(node.InnerText, ref flag);
base.InnerSetPropertyValue<ProposedData<bool>>(node.Name, (ProposedData<bool>) flag);
}
}
internal void ResetProposedProperties()
{
base.InnerResetProposedProperties();
}
public string ToLocalUserCfg()
{
return string.Empty;
}
public override string ToString()
{
string text = "<TipWindowSetting>";
return (((text + string.Format("<OnlineNotify>{0}</OnlineNotify>", this.OnlineNotify.ToString())) + string.Format("<NoOnlineNotifyWhenBusy>{0}</NoOnlineNotifyWhenBusy>", this.NoOnlineNotifyWhenBusy.ToString()) + string.Format("<NewMessageNotify>{0}</NewMessageNotify>", this.NewMessageNotify.ToString())) + string.Format("<NoMessageNotifyWhenBusy>{0}</NoMessageNotifyWhenBusy>", this.NoMessageNotifyWhenBusy.ToString()) + string.Format("</TipWindowSetting>", new object[0]));
}
public string ToWndXml()
{
return string.Empty;
}
[ConfigCategory(ConfigCategory.User)]
public ProposedData<bool> NewMessageNotify
{
get
{
return base.InnerGetPropertyValue<ProposedData<bool>>("NewMessageNotify", new ProposedData<bool>(true));
}
internal set
{
base.InnerSetPropertyValue<ProposedData<bool>>("NewMessageNotify", value);
}
}
[ConfigCategory(ConfigCategory.User)]
public ProposedData<bool> NoMessageNotifyWhenBusy
{
get
{
return base.InnerGetPropertyValue<ProposedData<bool>>("NoMessageNotifyWhenBusy", new ProposedData<bool>(true));
}
internal set
{
base.InnerSetPropertyValue<ProposedData<bool>>("NoMessageNotifyWhenBusy", value);
}
}
[ConfigCategory(ConfigCategory.User)]
public ProposedData<bool> NoOnlineNotifyWhenBusy
{
get
{
return base.InnerGetPropertyValue<ProposedData<bool>>("NoOnlineNotifyWhenBusy", new ProposedData<bool>(true));
}
internal set
{
base.InnerSetPropertyValue<ProposedData<bool>>("NoOnlineNotifyWhenBusy", value);
}
}
[ConfigCategory(ConfigCategory.User)]
public ProposedData<int> OnlineNotify
{
get
{
return base.InnerGetPropertyValue<ProposedData<int>>("OnlineNotify", new ProposedData<int>(0));
}
internal set
{
base.InnerSetPropertyValue<ProposedData<int>>("OnlineNotify", value);
}
}
public string RootNode
{
get
{
return "TipWindowSetting";
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -