国际化支持中,目前已支持首页,Button按钮,FloatButon按钮,Icon图标
In the internationalization support, the homepage, button, FloatButon button, and Icon icon are currently supported
This commit is contained in:
Generated
+18
-12
@@ -73,6 +73,7 @@
|
||||
this.tabs.Name = "tabs";
|
||||
this.tabs.Pages.Add(this.tabPage1);
|
||||
this.tabs.Pages.Add(this.tabPage2);
|
||||
this.tabs.SelectedIndex = 1;
|
||||
this.tabs.Size = new System.Drawing.Size(598, 396);
|
||||
this.tabs.Style = styleLine1;
|
||||
this.tabs.TabIndex = 0;
|
||||
@@ -82,7 +83,7 @@
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.stackPanel1);
|
||||
this.tabPage1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
|
||||
this.tabPage1.Location = new System.Drawing.Point(90, 6);
|
||||
this.tabPage1.Location = new System.Drawing.Point(-502, -384);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Size = new System.Drawing.Size(502, 384);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
@@ -115,7 +116,7 @@
|
||||
//
|
||||
this.switch_scrollbar.CheckedText = "";
|
||||
this.switch_scrollbar.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.switch_scrollbar.Location = new System.Drawing.Point(129, 3);
|
||||
this.switch_scrollbar.Location = new System.Drawing.Point(189, 3);
|
||||
this.switch_scrollbar.Name = "switch_scrollbar";
|
||||
this.switch_scrollbar.Size = new System.Drawing.Size(60, 26);
|
||||
this.switch_scrollbar.TabIndex = 1;
|
||||
@@ -125,9 +126,10 @@
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.LocalizationText = "scrollbarhide";
|
||||
this.label4.Location = new System.Drawing.Point(3, 3);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(120, 26);
|
||||
this.label4.Size = new System.Drawing.Size(180, 26);
|
||||
this.label4.TabIndex = 0;
|
||||
this.label4.Text = "隐藏滚动条";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
@@ -147,7 +149,7 @@
|
||||
this.switch_shadow.Checked = true;
|
||||
this.switch_shadow.CheckedText = "";
|
||||
this.switch_shadow.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.switch_shadow.Location = new System.Drawing.Point(129, 3);
|
||||
this.switch_shadow.Location = new System.Drawing.Point(189, 3);
|
||||
this.switch_shadow.Name = "switch_shadow";
|
||||
this.switch_shadow.Size = new System.Drawing.Size(60, 26);
|
||||
this.switch_shadow.TabIndex = 1;
|
||||
@@ -157,9 +159,10 @@
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.LocalizationText = "shadowon";
|
||||
this.label3.Location = new System.Drawing.Point(3, 3);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(120, 26);
|
||||
this.label3.Size = new System.Drawing.Size(180, 26);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "启用阴影";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
@@ -179,7 +182,7 @@
|
||||
this.switch_animation.Checked = true;
|
||||
this.switch_animation.CheckedText = "";
|
||||
this.switch_animation.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.switch_animation.Location = new System.Drawing.Point(129, 3);
|
||||
this.switch_animation.Location = new System.Drawing.Point(189, 3);
|
||||
this.switch_animation.Name = "switch_animation";
|
||||
this.switch_animation.Size = new System.Drawing.Size(60, 26);
|
||||
this.switch_animation.TabIndex = 1;
|
||||
@@ -189,9 +192,10 @@
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.LocalizationText = "animationon";
|
||||
this.label2.Location = new System.Drawing.Point(3, 3);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(120, 26);
|
||||
this.label2.Size = new System.Drawing.Size(180, 26);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "开启动画";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
@@ -200,7 +204,7 @@
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.stackPanel6);
|
||||
this.tabPage2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tabPage2.Location = new System.Drawing.Point(-502, -384);
|
||||
this.tabPage2.Location = new System.Drawing.Point(90, 6);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Size = new System.Drawing.Size(502, 384);
|
||||
this.tabPage2.TabIndex = 0;
|
||||
@@ -230,7 +234,7 @@
|
||||
//
|
||||
// input_offset
|
||||
//
|
||||
this.input_offset.Location = new System.Drawing.Point(129, 3);
|
||||
this.input_offset.Location = new System.Drawing.Point(189, 3);
|
||||
this.input_offset.Name = "input_offset";
|
||||
this.input_offset.Size = new System.Drawing.Size(60, 26);
|
||||
this.input_offset.TabIndex = 1;
|
||||
@@ -239,9 +243,10 @@
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.LocalizationText = "windowOffsetXY";
|
||||
this.label6.Location = new System.Drawing.Point(3, 3);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(120, 26);
|
||||
this.label6.Size = new System.Drawing.Size(180, 26);
|
||||
this.label6.TabIndex = 0;
|
||||
this.label6.Text = "边界偏移量";
|
||||
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
@@ -260,7 +265,7 @@
|
||||
//
|
||||
this.switch_showinwindow.CheckedText = "";
|
||||
this.switch_showinwindow.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.switch_showinwindow.Location = new System.Drawing.Point(129, 3);
|
||||
this.switch_showinwindow.Location = new System.Drawing.Point(189, 3);
|
||||
this.switch_showinwindow.Name = "switch_showinwindow";
|
||||
this.switch_showinwindow.Size = new System.Drawing.Size(60, 26);
|
||||
this.switch_showinwindow.TabIndex = 1;
|
||||
@@ -270,9 +275,10 @@
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.LocalizationText = "showinwindow";
|
||||
this.label5.Location = new System.Drawing.Point(3, 3);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(120, 26);
|
||||
this.label5.Size = new System.Drawing.Size(180, 26);
|
||||
this.label5.TabIndex = 0;
|
||||
this.label5.Text = "窗口内弹出";
|
||||
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
|
||||
@@ -37,6 +37,11 @@ namespace AntdUIDemo.Controls
|
||||
switch_scrollbar.Checked = Config.ScrollBarHide;
|
||||
switch_showinwindow.Checked = Config.ShowInWindow;
|
||||
input_offset.Value = Config.NoticeWindowOffsetXY;
|
||||
|
||||
//global
|
||||
tabs.Pages[0].Text = AntdUI.Localization.Get("baseset", "基本设置");
|
||||
tabs.Pages[1].Text = AntdUI.Localization.Get("messageconfig", "消息配置");
|
||||
|
||||
}
|
||||
|
||||
#region 事件
|
||||
@@ -53,8 +58,10 @@ namespace AntdUIDemo.Controls
|
||||
private void Switch_showinwindow_CheckedChanged(object sender, BoolEventArgs e)
|
||||
{
|
||||
AntdUI.Config.ShowInWindow = e.Value;
|
||||
AntdUI.Message.success(Window, "切换成功!", autoClose: 1);
|
||||
AntdUI.Notification.success(Window, "提示", "切换成功!", autoClose: 1);
|
||||
string text = AntdUI.Localization.Get("switchsuccess", "切换成功!");
|
||||
string tip = AntdUI.Localization.Get("tip", "提示");
|
||||
AntdUI.Message.success(Window, text, autoClose: 1);
|
||||
AntdUI.Notification.success(Window, tip, text, autoClose: 1);
|
||||
}
|
||||
|
||||
private void Switch_scrollbar_CheckedChanged(object sender, BoolEventArgs e)
|
||||
|
||||
Generated
+1
-1
@@ -35,13 +35,13 @@
|
||||
//
|
||||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 20F);
|
||||
this.label1.LocalizationText = "welcome";
|
||||
this.label1.Location = new System.Drawing.Point(0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(750, 150);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "欢迎使用 AntdUI Demo";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.label1.TooltipConfig = null;
|
||||
//
|
||||
// Wellcome
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user