📄 pgcreategroupcontrol.cs
字号:
this.xbtnGroupPortrait.AutoSizeToImage = false;
this.xbtnGroupPortrait.BackColor = Color.Transparent;
this.xbtnGroupPortrait.BackgroundImage = (Image) manager.GetObject("xbtnGroupPortrait.BackgroundImage");
this.xbtnGroupPortrait.BackgroundImageDisable = (Image) manager.GetObject("xbtnGroupPortrait.BackgroundImageDisable");
this.xbtnGroupPortrait.BackgroundImageDown = (Image) manager.GetObject("xbtnGroupPortrait.BackgroundImageDown");
this.xbtnGroupPortrait.BackgroundImageHover = (Image) manager.GetObject("xbtnGroupPortrait.BackgroundImageHover");
this.xbtnGroupPortrait.ChangeSkin = false;
this.xbtnGroupPortrait.Location = new System.Drawing.Point(0x110, 0x7d);
this.xbtnGroupPortrait.Name = "xbtnGroupPortrait";
this.xbtnGroupPortrait.Size = new Size(0x61, 0x15);
this.xbtnGroupPortrait.TabIndex = 2;
this.xbtnGroupPortrait.Text = "设置群形象...";
this.xbtnGroupPortrait.set_UseVisualStyleBackColor(false);
this.xbtnGroupPortrait.Click += new EventHandler(this.xbtnGroupPortrait_Click);
this.ucGroupCategory.BackColor = Color.Transparent;
this.ucGroupCategory.Location = new System.Drawing.Point(0x41, 0x53);
this.ucGroupCategory.Name = "ucGroupCategory";
this.ucGroupCategory.Size = new Size(0xc7, 0x1c);
this.ucGroupCategory.TabIndex = 1;
this.ucGroupCategory.Value = "-1";
this.xtxtGroupName.BackColor = Color.White;
this.xtxtGroupName.BorderStyle = BorderStyle.FixedSingle;
this.xtxtGroupName.EmptyTextTip = "";
this.xtxtGroupName.EmptyTextTipColor = Color.DarkGray;
this.xtxtGroupName.Location = new System.Drawing.Point(0x41, 0x26);
this.xtxtGroupName.MaxLength = 0x40;
this.xtxtGroupName.Name = "xtxtGroupName";
this.xtxtGroupName.Size = new Size(0x98, 20);
this.xtxtGroupName.TabIndex = 0;
this.xlblGroupCategory.set_AutoSize(true);
this.xlblGroupCategory.BorderColor = Color.Empty;
this.xlblGroupCategory.ButtonBorderStyle = ButtonBorderStyle.None;
this.xlblGroupCategory.Location = new System.Drawing.Point(10, 0x5d);
this.xlblGroupCategory.Name = "xlblGroupCategory";
this.xlblGroupCategory.Size = new Size(0x37, 13);
this.xlblGroupCategory.TabIndex = 1;
this.xlblGroupCategory.Text = "群分类:";
this.xlblGroupName.set_AutoSize(true);
this.xlblGroupName.BorderColor = Color.Empty;
this.xlblGroupName.ButtonBorderStyle = ButtonBorderStyle.None;
this.xlblGroupName.Location = new System.Drawing.Point(10, 40);
this.xlblGroupName.Name = "xlblGroupName";
this.xlblGroupName.Size = new Size(0x37, 13);
this.xlblGroupName.TabIndex = 0;
this.xlblGroupName.Text = "群名称:";
this.chkSearchable.set_AutoSize(true);
this.chkSearchable.Checked = true;
this.chkSearchable.CheckState = CheckState.Checked;
this.chkSearchable.Location = new System.Drawing.Point(0x16, 0xa8);
this.chkSearchable.Name = "chkSearchable";
this.chkSearchable.Size = new Size(0x86, 0x11);
this.chkSearchable.TabIndex = 3;
this.chkSearchable.Text = "允许被其他人搜索到";
this.chkSearchable.set_UseVisualStyleBackColor(true);
this.gbGroupIntroduction.Controls.Add(this.xtxtGroupIntroduction);
this.gbGroupIntroduction.Location = new System.Drawing.Point(9, 0xc1);
this.gbGroupIntroduction.Name = "gbGroupIntroduction";
this.gbGroupIntroduction.Size = new Size(380, 80);
this.gbGroupIntroduction.TabIndex = 3;
this.gbGroupIntroduction.TabStop = false;
this.gbGroupIntroduction.Text = "群简介(限制256个字以内)";
this.xtxtGroupIntroduction.BackColor = Color.White;
this.xtxtGroupIntroduction.BorderStyle = BorderStyle.FixedSingle;
this.xtxtGroupIntroduction.Dock = DockStyle.Fill;
this.xtxtGroupIntroduction.EmptyTextTip = "";
this.xtxtGroupIntroduction.EmptyTextTipColor = Color.DarkGray;
this.xtxtGroupIntroduction.Location = new System.Drawing.Point(3, 0x10);
this.xtxtGroupIntroduction.MaxLength = 0x100;
this.xtxtGroupIntroduction.Multiline = true;
this.xtxtGroupIntroduction.Name = "xtxtGroupIntroduction";
this.xtxtGroupIntroduction.ScrollBars = ScrollBars.Vertical;
this.xtxtGroupIntroduction.Size = new Size(0x176, 0x3d);
this.xtxtGroupIntroduction.TabIndex = 4;
this.gbJoinMethod.Controls.Add(this.rdbRejectAll);
this.gbJoinMethod.Controls.Add(this.rdbPermitAll);
this.gbJoinMethod.Controls.Add(this.rdbNeedAuthorize);
this.gbJoinMethod.Dock = DockStyle.Bottom;
this.gbJoinMethod.Location = new System.Drawing.Point(9, 0x117);
this.gbJoinMethod.Name = "gbJoinMethod";
this.gbJoinMethod.Size = new Size(380, 0x51);
this.gbJoinMethod.TabIndex = 4;
this.gbJoinMethod.TabStop = false;
this.gbJoinMethod.Text = "其它用户加入群方式";
this.rdbRejectAll.set_AutoSize(true);
this.rdbRejectAll.Location = new System.Drawing.Point(0x2b, 0x38);
this.rdbRejectAll.Name = "rdbRejectAll";
this.rdbRejectAll.Size = new Size(0x49, 0x11);
this.rdbRejectAll.TabIndex = 7;
this.rdbRejectAll.Text = "全部拒绝";
this.rdbRejectAll.set_UseVisualStyleBackColor(true);
this.rdbPermitAll.set_AutoSize(true);
this.rdbPermitAll.Location = new System.Drawing.Point(0x2b, 0x26);
this.rdbPermitAll.Name = "rdbPermitAll";
this.rdbPermitAll.Size = new Size(0x49, 0x11);
this.rdbPermitAll.TabIndex = 6;
this.rdbPermitAll.Text = "全部同意";
this.rdbPermitAll.set_UseVisualStyleBackColor(true);
this.rdbNeedAuthorize.set_AutoSize(true);
this.rdbNeedAuthorize.Checked = true;
this.rdbNeedAuthorize.Location = new System.Drawing.Point(0x2b, 0x12);
this.rdbNeedAuthorize.Name = "rdbNeedAuthorize";
this.rdbNeedAuthorize.Size = new Size(0xb5, 0x11);
this.rdbNeedAuthorize.TabIndex = 5;
this.rdbNeedAuthorize.TabStop = true;
this.rdbNeedAuthorize.Text = "需要管理员同意才能加入该群";
this.rdbNeedAuthorize.set_UseVisualStyleBackColor(true);
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
this.BackColor = Color.Transparent;
base.Controls.Add(this.chkSearchable);
base.Controls.Add(this.gbJoinMethod);
base.Controls.Add(this.gbGroupIntroduction);
base.Controls.Add(this.gbBasicInfo);
base.set_Margin(new Padding(0));
base.Name = "PGCreateGroupControl";
base.set_Padding(new Padding(9, 3, 3, 3));
base.Size = new Size(0x188, 0x16b);
this.gbBasicInfo.ResumeLayout(false);
this.gbBasicInfo.PerformLayout();
this.gbGroupIntroduction.ResumeLayout(false);
this.gbGroupIntroduction.PerformLayout();
this.gbJoinMethod.ResumeLayout(false);
this.gbJoinMethod.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
private void show_portraitform()
{
using (GroupPortraitForm form = new GroupPortraitForm(this._iFrameworkWnd, ImpsPathInfo.StartupPath + @"\GroupPortraits\", this.CurrentUser.PersistentManager.BaseDirForGroupPortrait, null))
{
if (form.ShowDialog(this) == DialogResult.OK)
{
this.xpbProtrait.Image = form.ResultImg;
}
}
}
private void xbtnGroupPortrait_Click(object sender, EventArgs e)
{
this.show_portraitform();
}
private void xpbProtrait_Click(object sender, EventArgs e)
{
this.show_portraitform();
}
private Imps.Client.Core.User CurrentUser
{
get
{
return this._iFrameworkWnd.AccountManager.CurrentUser;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -