?? 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();
base.menubar.Location = new Point(3, 0x19);
this.LbConfirm.BackColor = Color.Transparent;
this.LbConfirm.Location = new Point(15, 14);
this.LbConfirm.Name = "LbConfirm";
this.LbConfirm.Size = new Size(0x133, 0x35);
this.LbConfirm.TabIndex = 0;
this.LbConfirm.Text = "LbConfirm";
this.RbOneDay.AutoSize = true;
this.RbOneDay.BackColor = Color.Transparent;
this.RbOneDay.Checked = true;
this.RbOneDay.Location = new 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.UseVisualStyleBackColor = false;
this.RbThreeDays.AutoSize = true;
this.RbThreeDays.BackColor = Color.Transparent;
this.RbThreeDays.Location = new Point(0x1c, 0x5c);
this.RbThreeDays.Name = "RbThreeDays";
this.RbThreeDays.Size = new Size(0x5b, 0x11);
this.RbThreeDays.TabIndex = 2;
this.RbThreeDays.Text = "RbThreeDays";
this.RbThreeDays.UseVisualStyleBackColor = false;
this.RbOneWeek.AutoSize = true;
this.RbOneWeek.BackColor = Color.Transparent;
this.RbOneWeek.Location = new Point(0x1c, 0x73);
this.RbOneWeek.Name = "RbOneWeek";
this.RbOneWeek.Size = new Size(0x58, 0x11);
this.RbOneWeek.TabIndex = 3;
this.RbOneWeek.Text = "RbOneWeek";
this.RbOneWeek.UseVisualStyleBackColor = false;
this.RbForever.AutoSize = true;
this.RbForever.BackColor = Color.Transparent;
this.RbForever.Location = new Point(0x1c, 0x8a);
this.RbForever.Name = "RbForever";
this.RbForever.Size = new Size(0x4b, 0x11);
this.RbForever.TabIndex = 4;
this.RbForever.Text = "RbForever";
this.RbForever.UseVisualStyleBackColor = false;
this.pnlContainer.BackColor = Color.Transparent;
this.pnlContainer.Controls.Add(this.btnCancel);
this.pnlContainer.Controls.Add(this.btnOk);
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.Dock = DockStyle.Fill;
this.pnlContainer.Location = new Point(3, 3);
this.pnlContainer.Name = "pnlContainer";
this.pnlContainer.Size = new Size(0x15d, 0xf3);
this.pnlContainer.TabIndex = 0;
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Location = new Point(0xf3, 0xa5);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(0x4b, 0x19);
this.btnCancel.TabIndex = 6;
this.btnCancel.UseVisualStyleBackColor = true;
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Location = new Point(0xa2, 0xa5);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new Size(0x4b, 0x19);
this.btnOk.TabIndex = 5;
this.btnOk.UseVisualStyleBackColor = true;
base.AcceptButton = this.btnOk;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btnCancel;
base.ClientSize = new Size(0x163, 0xf9);
base.Controls.Add(this.pnlContainer);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.MinimizeBox = false;
base.Name = "OfflineMsgSettingForm";
base.Padding = new Padding(3);
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = FormStartPosition.CenterParent;
base.Text = "不接收短信";
base.Controls.SetChildIndex(this.pnlContainer, 0);
base.Controls.SetChildIndex(base.menubar, 0);
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 + -