📄 offlinemsgsettingform.cs
字号:
namespace Imps.Client.Pc
{
using Imps.Client.Pc.BizControls;
using Imps.Client.Pc.Controls;
using Imps.Client.Resource;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class OfflineMsgSettingForm : XIMDialog
{
private XButton btnCancel;
private XButton btnOk;
private IContainer components;
private XLabel LbConfirm;
private Panel pnlContainer;
private RadioButton RbForever;
private RadioButton RbOneDay;
private RadioButton RbOneWeek;
private RadioButton RbThreeDays;
public OfflineMsgSettingForm()
{
this.InitializeComponent();
base.Load += new EventHandler(this.OfflineMsgSettingForm_Load);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(OfflineMsgSettingForm));
this.LbConfirm = new XLabel();
this.RbOneDay = new RadioButton();
this.RbThreeDays = new RadioButton();
this.RbOneWeek = new RadioButton();
this.RbForever = new RadioButton();
this.pnlContainer = new Panel();
this.btnCancel = new XButton();
this.btnOk = new XButton();
this.pnlContainer.SuspendLayout();
base.SuspendLayout();
this.LbConfirm.BackColor = Color.Transparent;
this.LbConfirm.BorderColor = Color.Empty;
this.LbConfirm.ButtonBorderStyle = ButtonBorderStyle.None;
this.LbConfirm.Location = new System.Drawing.Point(15, 14);
this.LbConfirm.Name = "LbConfirm";
this.LbConfirm.Size = new Size(0x133, 0x35);
this.LbConfirm.TabIndex = 0;
this.LbConfirm.Text = "LbConfirm";
this.RbOneDay.set_AutoSize(true);
this.RbOneDay.BackColor = Color.Transparent;
this.RbOneDay.Checked = true;
this.RbOneDay.Location = new System.Drawing.Point(0x1c, 70);
this.RbOneDay.Name = "RbOneDay";
this.RbOneDay.Size = new Size(0x4e, 0x11);
this.RbOneDay.TabIndex = 1;
this.RbOneDay.TabStop = true;
this.RbOneDay.Text = "RbOneDay";
this.RbOneDay.set_UseVisualStyleBackColor(false);
this.RbThreeDays.set_AutoSize(true);
this.RbThreeDays.BackColor = Color.Transparent;
this.RbThreeDays.Location = new System.Drawing.Point(0x1c, 0x5c);
this.RbThreeDays.Name = "RbThreeDays";
this.RbThreeDays.Size = new Size(0x5b, 0x11);
this.RbThreeDays.TabIndex = 2;
this.RbThreeDays.Text = "RbThreeDays";
this.RbThreeDays.set_UseVisualStyleBackColor(false);
this.RbOneWeek.set_AutoSize(true);
this.RbOneWeek.BackColor = Color.Transparent;
this.RbOneWeek.Location = new System.Drawing.Point(0x1c, 0x73);
this.RbOneWeek.Name = "RbOneWeek";
this.RbOneWeek.Size = new Size(0x58, 0x11);
this.RbOneWeek.TabIndex = 3;
this.RbOneWeek.Text = "RbOneWeek";
this.RbOneWeek.set_UseVisualStyleBackColor(false);
this.RbForever.set_AutoSize(true);
this.RbForever.BackColor = Color.Transparent;
this.RbForever.Location = new System.Drawing.Point(0x1c, 0x8a);
this.RbForever.Name = "RbForever";
this.RbForever.Size = new Size(0x4b, 0x11);
this.RbForever.TabIndex = 4;
this.RbForever.Text = "RbForever";
this.RbForever.set_UseVisualStyleBackColor(false);
this.pnlContainer.BackColor = Color.Transparent;
this.pnlContainer.Controls.Add(this.RbForever);
this.pnlContainer.Controls.Add(this.RbOneWeek);
this.pnlContainer.Controls.Add(this.RbThreeDays);
this.pnlContainer.Controls.Add(this.RbOneDay);
this.pnlContainer.Controls.Add(this.LbConfirm);
this.pnlContainer.Location = new System.Drawing.Point(3, 3);
this.pnlContainer.Name = "pnlContainer";
this.pnlContainer.Size = new Size(0x15d, 0xae);
this.pnlContainer.TabIndex = 0;
this.btnCancel.AutoSizeToImage = false;
this.btnCancel.BackColor = Color.Transparent;
this.btnCancel.BackgroundImageDisable = null;
this.btnCancel.BackgroundImageDown = null;
this.btnCancel.BackgroundImageHover = null;
this.btnCancel.ChangeSkin = true;
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(0xf1, 0xb7);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(0x4b, 0x19);
this.btnCancel.TabIndex = 6;
this.btnCancel.set_UseVisualStyleBackColor(false);
this.btnOk.AutoSizeToImage = false;
this.btnOk.BackColor = Color.Transparent;
this.btnOk.BackgroundImageDisable = null;
this.btnOk.BackgroundImageDown = null;
this.btnOk.BackgroundImageHover = null;
this.btnOk.ChangeSkin = true;
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Location = new System.Drawing.Point(160, 0xb7);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new Size(0x4b, 0x19);
this.btnOk.TabIndex = 5;
this.btnOk.set_UseVisualStyleBackColor(false);
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.ClientSize = new Size(0x163, 0xf9);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.btnOk);
base.Controls.Add(this.pnlContainer);
base.Controls.SetChildIndex(this.pnlContainer, 0);
base.DisplayLocation = new System.Drawing.Point(0x12, 0x26);
base.DisplaySize = new Size(0x15a, 0xf9);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.MinimizeBox = false;
base.Name = "OfflineMsgSettingForm";
base.set_Padding(new Padding(3));
base.set_ShowIcon(false);
base.ShowInTaskbar = false;
base.StartPosition = FormStartPosition.CenterParent;
base.Text = "不接收短信";
this.pnlContainer.ResumeLayout(false);
this.pnlContainer.PerformLayout();
base.ResumeLayout(false);
}
private void OfflineMsgSettingForm_Load(object sender, EventArgs e)
{
this.LbConfirm.Text = StringTable.OfflineSmsSetting.lbConfirm;
this.RbOneDay.Text = StringTable.OfflineSmsSetting.RbOneDay;
this.RbThreeDays.Text = StringTable.OfflineSmsSetting.RbThreeDays;
this.RbOneWeek.Text = StringTable.OfflineSmsSetting.RbOneWeek;
this.RbForever.Text = StringTable.OfflineSmsSetting.RbForever;
this.btnOk.Text = StringTable.Common.TitleConfirm;
this.btnCancel.Text = StringTable.Common.btnCancel;
}
public int HoursNotBySms
{
get
{
int num = 0xd5de0;
if (this.RbOneDay.Checked)
{
return 0x18;
}
if (this.RbThreeDays.Checked)
{
return 0x48;
}
if (this.RbOneWeek.Checked)
{
num = 0xa8;
}
return num;
}
set
{
if ((value > 0xa8) || (value < 0))
{
this.RbForever.Checked = true;
}
else if (value > 0x48)
{
this.RbOneWeek.Checked = true;
}
else if (value > 0x18)
{
this.RbThreeDays.Checked = true;
}
else
{
this.RbOneDay.Checked = true;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -