本文整理汇总了C#中Radegast.RadegastInstance.SetClientTag方法的典型用法代码示例。如果您正苦于以下问题:C# RadegastInstance.SetClientTag方法的具体用法?C# RadegastInstance.SetClientTag怎么用?C# RadegastInstance.SetClientTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Radegast.RadegastInstance
的用法示例。
在下文中一共展示了RadegastInstance.SetClientTag方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmSettings
//.........这里部分代码省略.........
cbTrasactDialog.Checked = s["transaction_notification_dialog"].AsBoolean();
cbTrasactChat.Checked = s["transaction_notification_chat"].AsBoolean();
cbFriendsNotifications.Checked = s["show_friends_online_notifications"].AsBoolean();
cbFriendsNotifications.CheckedChanged += new EventHandler(cbFriendsNotifications_CheckedChanged);
cbAutoReconnect.Checked = s["auto_reconnect"].AsBoolean();
cbAutoReconnect.CheckedChanged += new EventHandler(cbAutoReconnect_CheckedChanged);
cbHideLoginGraphics.Checked = s["hide_login_graphics"].AsBoolean();
cbHideLoginGraphics.CheckedChanged += new EventHandler(cbHideLoginGraphics_CheckedChanged);
cbRLV.Checked = s["rlv_enabled"].AsBoolean();
cbRLV.CheckedChanged += (object sender, EventArgs e) =>
{
s["rlv_enabled"] = new OSDBoolean(cbRLV.Checked);
};
cbMUEmotes.Checked = s["mu_emotes"].AsBoolean();
cbMUEmotes.CheckedChanged += (object sender, EventArgs e) =>
{
s["mu_emotes"] = new OSDBoolean(cbMUEmotes.Checked);
};
cbFriendsHighlight.Checked = s["friends_notification_highlight"].AsBoolean();
cbFriendsHighlight.CheckedChanged += (object sender, EventArgs e) =>
{
s["friends_notification_highlight"] = new OSDBoolean(cbFriendsHighlight.Checked);
};
if (s["chat_font_size"].Type != OSDType.Real)
{
s["chat_font_size"] = OSD.FromReal(((ChatConsole)instance.TabConsole.Tabs["chat"].Control).cbxInput.Font.Size);
}
cbFontSize.Text = s["chat_font_size"].AsReal().ToString(System.Globalization.CultureInfo.InvariantCulture);
if (!s.ContainsKey("minimize_to_tray")) s["minimize_to_tray"] = OSD.FromBoolean(false);
cbMinToTrey.Checked = s["minimize_to_tray"].AsBoolean();
cbMinToTrey.CheckedChanged += (object sender, EventArgs e) =>
{
s["minimize_to_tray"] = OSD.FromBoolean(cbMinToTrey.Checked);
};
cbNoTyping.Checked = s["no_typing_anim"].AsBoolean();
cbNoTyping.CheckedChanged += (object sender, EventArgs e) =>
{
s["no_typing_anim"] = OSD.FromBoolean(cbNoTyping.Checked);
};
txtAutoResponse.Text = s["auto_response_text"];
txtAutoResponse.TextChanged += (object sender, EventArgs e) =>
{
s["auto_response_text"] = txtAutoResponse.Text;
};
AutoResponseType art = (AutoResponseType)s["auto_response_type"].AsInteger();
switch (art)
{
case AutoResponseType.WhenBusy: rbAutobusy.Checked = true; break;
case AutoResponseType.WhenFromNonFriend: rbAutoNonFriend.Checked = true; break;
case AutoResponseType.Always: rbAutoAlways.Checked = true; break;
}
cbSyntaxHighlight.Checked = s["script_syntax_highlight"].AsBoolean();
cbSyntaxHighlight.CheckedChanged += (object sender, EventArgs e) =>
{
s["script_syntax_highlight"] = OSD.FromBoolean(cbSyntaxHighlight.Checked);
};
switch ((NameMode)s["display_name_mode"].AsInteger())
{
case NameMode.Standard: rbDNOff.Checked = true; break;
case NameMode.Smart: rbDNSmart.Checked = true; break;
case NameMode.DisplayNameAndUserName: rbDNDandUsernme.Checked = true; break;
case NameMode.OnlyDisplayName: rbDNOnlyDN.Checked = true; break;
}
txtReconnectTime.Text = s["reconnect_time"].AsInteger().ToString();
cbTaskBarHighLight.Checked = s["taskbar_highlight"];
cbTaskBarHighLight.CheckedChanged += (sender, e) =>
{
s["taskbar_highlight"] = cbTaskBarHighLight.Checked;
};
cbRadegastClientTag.Checked = s["send_rad_client_tag"];
cbRadegastClientTag.CheckedChanged += (sender, e) =>
{
s["send_rad_client_tag"] = cbRadegastClientTag.Checked;
instance.SetClientTag();
};
cbOnInvOffer.SelectedIndex = s["inv_auto_accept_mode"].AsInteger();
cbOnInvOffer.SelectedIndexChanged += (sender, e) =>
{
s["inv_auto_accept_mode"] = cbOnInvOffer.SelectedIndex;
};
cbRadegastLogToFile.Checked = s["log_to_file"];
}
示例2: frmSettings
//.........这里部分代码省略.........
{
s["auto_response_text"] = txtAutoResponse.Text;
};
AutoResponseType art = (AutoResponseType)s["auto_response_type"].AsInteger();
switch (art)
{
case AutoResponseType.WhenBusy: rbAutobusy.Checked = true; break;
case AutoResponseType.WhenFromNonFriend: rbAutoNonFriend.Checked = true; break;
case AutoResponseType.Always: rbAutoAlways.Checked = true; break;
}
cbSyntaxHighlight.Checked = s["script_syntax_highlight"].AsBoolean();
cbSyntaxHighlight.CheckedChanged += (object sender, EventArgs e) =>
{
s["script_syntax_highlight"] = OSD.FromBoolean(cbSyntaxHighlight.Checked);
};
switch ((NameMode)s["display_name_mode"].AsInteger())
{
case NameMode.Standard: rbDNOff.Checked = true; break;
case NameMode.Smart: rbDNSmart.Checked = true; break;
case NameMode.DisplayNameAndUserName: rbDNDandUsernme.Checked = true; break;
case NameMode.OnlyDisplayName: rbDNOnlyDN.Checked = true; break;
}
txtReconnectTime.Text = s["reconnect_time"].AsInteger().ToString();
txtResolveURITime.Text = s["resolve_uri_time"].AsInteger().ToString();
cbRadegastClientTag.Checked = s["send_rad_client_tag"];
cbRadegastClientTag.CheckedChanged += (sender, e) =>
{
s["send_rad_client_tag"] = cbRadegastClientTag.Checked;
instance.SetClientTag();
};
cbOnInvOffer.SelectedIndex = s["inv_auto_accept_mode"].AsInteger();
cbOnInvOffer.SelectedIndexChanged += (sender, e) =>
{
s["inv_auto_accept_mode"] = cbOnInvOffer.SelectedIndex;
};
cbRadegastLogToFile.Checked = s["log_to_file"];
cbDisableChatIMLog.Checked = s["disable_chat_im_log"];
cbDisableChatIMLog.CheckedChanged += (sender, e) =>
{
s["disable_chat_im_log"] = cbDisableChatIMLog.Checked;
};
cbDisableLookAt.Checked = s["disable_look_at"];
cbDisableLookAt.CheckedChanged += (sender, e) =>
{
s["disable_look_at"] = cbDisableLookAt.Checked;
};
cbConfirmExit.Checked = s["confirm_exit"];
cbConfirmExit.CheckedChanged += (sender, e) =>
{
s["confirm_exit"] = cbConfirmExit.Checked;
};
cbTaskBarHighLight.Checked = s["taskbar_highlight"];
cbTaskBarHighLight.CheckedChanged += (sender, e) =>
{
s["taskbar_highlight"] = cbTaskBarHighLight.Checked;