📄 psexcontrol.cs
字号:
this.lbBloodType.Text = "血型";
this.comboBoxBloodType.BackColor = Color.White;
this.comboBoxBloodType.DropDownStyle = ComboBoxStyle.DropDownList;
this.comboBoxBloodType.FormattingEnabled = true;
this.comboBoxBloodType.Location = new Point(0x41, 0x34);
this.comboBoxBloodType.Name = "comboBoxBloodType";
this.comboBoxBloodType.Size = new Size(0x4a, 0x15);
this.comboBoxBloodType.TabIndex = 4;
this.lbHoroscope.AutoSize = true;
this.lbHoroscope.Location = new Point(15, 0x71);
this.lbHoroscope.Name = "lbHoroscope";
this.lbHoroscope.Size = new Size(0x1f, 13);
this.lbHoroscope.TabIndex = 7;
this.lbHoroscope.Text = "星座";
this.textBoxHoroscope.BackColor = Color.FromArgb(240, 240, 240);
this.textBoxHoroscope.BorderStyle = BorderStyle.FixedSingle;
this.textBoxHoroscope.Location = new Point(0x41, 0x6c);
this.textBoxHoroscope.Name = "textBoxHoroscope";
this.textBoxHoroscope.ReadOnly = true;
this.textBoxHoroscope.Size = new Size(140, 20);
this.textBoxHoroscope.TabIndex = 8;
this.textBoxPersonalEmail.BackColor = Color.White;
this.textBoxPersonalEmail.BorderStyle = BorderStyle.FixedSingle;
this.textBoxPersonalEmail.Location = new Point(110, 0x1c);
this.textBoxPersonalEmail.Name = "textBoxPersonalEmail";
this.textBoxPersonalEmail.Size = new Size(220, 20);
this.textBoxPersonalEmail.TabIndex = 2;
this.lbPersonalEmail.AutoSize = true;
this.lbPersonalEmail.Location = new Point(15, 0x1f);
this.lbPersonalEmail.Name = "lbPersonalEmail";
this.lbPersonalEmail.Size = new Size(0x4f, 13);
this.lbPersonalEmail.TabIndex = 1;
this.lbPersonalEmail.Text = "个人电子邮件";
this.textBoxWorkEmail.BackColor = Color.White;
this.textBoxWorkEmail.BorderStyle = BorderStyle.FixedSingle;
this.textBoxWorkEmail.Location = new Point(110, 0x36);
this.textBoxWorkEmail.Name = "textBoxWorkEmail";
this.textBoxWorkEmail.Size = new Size(220, 20);
this.textBoxWorkEmail.TabIndex = 4;
this.lbWorkEmail.AutoSize = true;
this.lbWorkEmail.Location = new Point(15, 0x39);
this.lbWorkEmail.Name = "lbWorkEmail";
this.lbWorkEmail.Size = new Size(0x4f, 13);
this.lbWorkEmail.TabIndex = 3;
this.lbWorkEmail.Text = "工作电子邮件";
this.textBoxOtherEmail.BackColor = Color.White;
this.textBoxOtherEmail.BorderStyle = BorderStyle.FixedSingle;
this.textBoxOtherEmail.Location = new Point(110, 80);
this.textBoxOtherEmail.Name = "textBoxOtherEmail";
this.textBoxOtherEmail.Size = new Size(220, 20);
this.textBoxOtherEmail.TabIndex = 6;
this.lbOtherEmail.AutoSize = true;
this.lbOtherEmail.Location = new Point(15, 0x53);
this.lbOtherEmail.Name = "lbOtherEmail";
this.lbOtherEmail.Size = new Size(0x4f, 13);
this.lbOtherEmail.TabIndex = 5;
this.lbOtherEmail.Text = "其他电子邮件";
this.lbPrimaryEmail.AutoSize = true;
this.lbPrimaryEmail.Location = new Point(15, 0x6d);
this.lbPrimaryEmail.Name = "lbPrimaryEmail";
this.lbPrimaryEmail.Size = new Size(0x4f, 13);
this.lbPrimaryEmail.TabIndex = 7;
this.lbPrimaryEmail.Text = "首选电子邮件";
this.comboBoxEmail.BackColor = Color.White;
this.comboBoxEmail.DisplayMember = "Description";
this.comboBoxEmail.DropDownStyle = ComboBoxStyle.DropDownList;
this.comboBoxEmail.FormattingEnabled = true;
this.comboBoxEmail.Location = new Point(110, 0x6a);
this.comboBoxEmail.Name = "comboBoxEmail";
this.comboBoxEmail.Size = new Size(220, 0x15);
this.comboBoxEmail.TabIndex = 8;
this.comboBoxEmail.ValueMember = "Value";
this.xGroupBox1.BackColor = Color.Transparent;
this.xGroupBox1.Controls.Add(this.label3);
this.xGroupBox1.Controls.Add(this.numericUpDownAge);
this.xGroupBox1.Controls.Add(this.label1);
this.xGroupBox1.Controls.Add(this.comboBoxBloodType);
this.xGroupBox1.Controls.Add(this.lbBloodType);
this.xGroupBox1.Controls.Add(this.lbLunarAnimal);
this.xGroupBox1.Controls.Add(this.textBoxHoroscope);
this.xGroupBox1.Controls.Add(this.lbHoroscope);
this.xGroupBox1.Controls.Add(this.textBoxLunarAnimal);
this.xGroupBox1.ForeColor = Color.Black;
this.xGroupBox1.Location = new Point(5, 9);
this.xGroupBox1.Name = "xGroupBox1";
this.xGroupBox1.Size = new Size(0x161, 0x89);
this.xGroupBox1.TabIndex = 0;
this.xGroupBox1.TabStop = false;
this.xGroupBox1.Text = "年龄、血型、生肖和星座";
this.label3.BackColor = SystemColors.ButtonFace;
this.label3.BorderStyle = BorderStyle.FixedSingle;
this.label3.Location = new Point(0xda, 0);
this.label3.Name = "label3";
this.label3.Size = new Size(120, 0x11);
this.label3.TabIndex = 0;
this.label3.Text = "对所有人公开";
this.label3.TextAlign = ContentAlignment.MiddleCenter;
this.numericUpDownAge.InterceptArrowKeys = false;
this.numericUpDownAge.Location = new Point(0x41, 0x1a);
int[] bits = new int[4];
bits[0] = 0x63;
this.numericUpDownAge.Maximum = new decimal(bits);
this.numericUpDownAge.Name = "numericUpDownAge";
this.numericUpDownAge.Size = new Size(0x4a, 20);
this.numericUpDownAge.TabIndex = 2;
this.numericUpDownAge.ValueChanged += new EventHandler(this.numericUpDownAge_ValueChanged);
this.label1.AutoSize = true;
this.label1.Location = new Point(15, 0x1c);
this.label1.Name = "label1";
this.label1.Size = new Size(0x1f, 13);
this.label1.TabIndex = 1;
this.label1.Text = "年龄";
this.xGroupBox2.Controls.Add(this.ctlBirthdate);
this.xGroupBox2.Controls.Add(this.xcbPerBirthday);
this.xGroupBox2.Controls.Add(this.labelBirthday);
this.xGroupBox2.ForeColor = Color.Black;
this.xGroupBox2.Location = new Point(5, 0x97);
this.xGroupBox2.Name = "xGroupBox2";
this.xGroupBox2.Size = new Size(0x161, 0x45);
this.xGroupBox2.TabIndex = 1;
this.xGroupBox2.TabStop = false;
this.xGroupBox2.Text = "生日";
this.ctlBirthdate.AutoSize = true;
this.ctlBirthdate.AutoSizeMode = AutoSizeMode.GrowAndShrink;
this.ctlBirthdate.BackColor = Color.Transparent;
this.ctlBirthdate.Location = new Point(14, 20);
this.ctlBirthdate.MaxDateTime = new DateTime(0x7d6, 5, 0x12, 0, 0, 0, 0);
this.ctlBirthdate.MinDateTime = new DateTime(0L);
this.ctlBirthdate.Name = "ctlBirthdate";
this.ctlBirthdate.NullYear = 0x76c;
this.ctlBirthdate.SelectedDateTime = new DateTime(0x76c, 1, 1, 0, 0, 0, 0);
this.ctlBirthdate.SelectedDay = 1;
this.ctlBirthdate.SelectedMonth = 1;
this.ctlBirthdate.SelectedYearText = "";
this.ctlBirthdate.Size = new Size(0xa7, 0x18);
this.ctlBirthdate.TabIndex = 1;
this.ctlBirthdate.SelectedDateTimeChange += new EventHandler(this.ctlBirthdate_SelectedDateTimeChange);
this.xcbPerBirthday.BackColor = Color.White;
this.xcbPerBirthday.DropDownStyle = ComboBoxStyle.DropDownList;
this.xcbPerBirthday.FormattingEnabled = true;
this.xcbPerBirthday.Location = new Point(0xda, 0);
this.xcbPerBirthday.Name = "xcbPerBirthday";
this.xcbPerBirthday.Size = new Size(120, 0x15);
this.xcbPerBirthday.TabIndex = 0;
this.labelBirthday.AutoSize = true;
this.labelBirthday.Location = new Point(11, 0x2f);
this.labelBirthday.Name = "labelBirthday";
this.labelBirthday.Size = new Size(0xeb, 13);
this.labelBirthday.TabIndex = 2;
this.labelBirthday.Text = "输入生日后,年龄、生肖和星座会随之变动";
this.xgbEmail.Controls.Add(this.xcbPerEmail);
this.xgbEmail.Controls.Add(this.lbPersonalEmail);
this.xgbEmail.Controls.Add(this.textBoxPersonalEmail);
this.xgbEmail.Controls.Add(this.lbWorkEmail);
this.xgbEmail.Controls.Add(this.textBoxWorkEmail);
this.xgbEmail.Controls.Add(this.lbOtherEmail);
this.xgbEmail.Controls.Add(this.textBoxOtherEmail);
this.xgbEmail.Controls.Add(this.comboBoxEmail);
this.xgbEmail.Controls.Add(this.lbPrimaryEmail);
this.xgbEmail.ForeColor = Color.Black;
this.xgbEmail.Location = new Point(5, 0xe2);
this.xgbEmail.Name = "xgbEmail";
this.xgbEmail.Size = new Size(0x161, 0x8d);
this.xgbEmail.TabIndex = 2;
this.xgbEmail.TabStop = false;
this.xgbEmail.Text = "电子邮件";
this.xcbPerEmail.BackColor = Color.White;
this.xcbPerEmail.DropDownStyle = ComboBoxStyle.DropDownList;
this.xcbPerEmail.FormattingEnabled = true;
this.xcbPerEmail.Location = new Point(0xda, 0);
this.xcbPerEmail.Name = "xcbPerEmail";
this.xcbPerEmail.Size = new Size(120, 0x15);
this.xcbPerEmail.TabIndex = 0;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(this.xGroupBox2);
base.Controls.Add(this.xgbEmail);
base.Controls.Add(this.xGroupBox1);
base.Margin = new Padding(2);
base.Name = "PsExControl";
base.Size = new Size(0x16b, 0x1b1);
this.xGroupBox1.ResumeLayout(false);
this.xGroupBox1.PerformLayout();
this.numericUpDownAge.EndInit();
this.xGroupBox2.ResumeLayout(false);
this.xGroupBox2.PerformLayout();
this.xgbEmail.ResumeLayout(false);
this.xgbEmail.PerformLayout();
base.ResumeLayout(false);
}
private void InitPermissions()
{
ValueNameDescList<int> list = new ValueNameDescList<int>(2);
list.Add(0, StringTable.Permission.Keep_Secret);
list.Add(1, StringTable.Permission.Open_Everyone);
OptionsControlBase.InnerSetListControlDataSource(this.xcbPerBirthday, list);
ValueNameDescList<int> list2 = new ValueNameDescList<int>(2);
list2.AddRange(list);
OptionsControlBase.InnerSetListControlDataSource(this.xcbPerEmail, list2);
}
private void InitSelectEmail()
{
this.comboBoxEmail.DataSource = IMPSEnums.GetEnumDescriptionList<EmailUseType>();
}
private void numericUpDownAge_KeyPress(object sender, KeyPressEventArgs e)
{
UiErrorHelper.HandEventSafely(this._iFrameworkWindow, delegate {
if (!this._duringAgeOrBirthdayChanging)
{
this._duringAgeOrBirthdayChanging = true;
try
{
DateTime time = ImpsHelper.AgeToBirthday(Convert.ToInt32(this.numericUpDownAge.Value), this.ctlBirthdate.SelectedMonth, this.ctlBirthdate.SelectedDay);
this.ctlBirthdate.SelectedYearText = time.Year.ToString();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -