Forráskód Böngészése

登录窗口的PictureEdit控件,禁用焦点使用AllowFocused=False。

jianfeng1.wang 2 éve
szülő
commit
3c82291d23

+ 19 - 14
FactoryTool/FactoryTool/LoginView.Designer.cs

@@ -29,7 +29,7 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit();
+            DevExpress.XtraEditors.PictureEdit pictureEdit1;
             this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
             this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
             this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
@@ -37,7 +37,8 @@
             this.BTN_LOGIN = new DevExpress.XtraEditors.SimpleButton();
             this.BTN_CANCLE = new DevExpress.XtraEditors.SimpleButton();
             this.mvvmContext1 = new DevExpress.Utils.MVVM.MVVMContext(this.components);
-            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit();
+            pictureEdit1 = new DevExpress.XtraEditors.PictureEdit();
+            ((System.ComponentModel.ISupportInitialize)(pictureEdit1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.mvvmContext1)).BeginInit();
@@ -45,15 +46,20 @@
             // 
             // pictureEdit1
             // 
-            this.pictureEdit1.Dock = System.Windows.Forms.DockStyle.Top;
-            this.pictureEdit1.EditValue = global::FactoryTool.Properties.Resources.logo;
-            this.pictureEdit1.Location = new System.Drawing.Point(0, 0);
-            this.pictureEdit1.Name = "pictureEdit1";
-            this.pictureEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
-            this.pictureEdit1.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
-            this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch;
-            this.pictureEdit1.Size = new System.Drawing.Size(377, 125);
-            this.pictureEdit1.TabIndex = 0;
+            pictureEdit1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+            pictureEdit1.CausesValidation = false;
+            pictureEdit1.Dock = System.Windows.Forms.DockStyle.Top;
+            pictureEdit1.EditValue = global::FactoryTool.Properties.Resources.logo;
+            pictureEdit1.Location = new System.Drawing.Point(0, 0);
+            pictureEdit1.Margin = new System.Windows.Forms.Padding(0);
+            pictureEdit1.Name = "pictureEdit1";
+            pictureEdit1.Properties.AllowFocused = false;
+            pictureEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
+            pictureEdit1.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
+            pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch;
+            pictureEdit1.ShowToolTips = false;
+            pictureEdit1.Size = new System.Drawing.Size(377, 125);
+            pictureEdit1.TabIndex = 0;
             // 
             // labelControl1
             // 
@@ -121,7 +127,7 @@
             this.Controls.Add(this.textEdit1);
             this.Controls.Add(this.labelControl2);
             this.Controls.Add(this.labelControl1);
-            this.Controls.Add(this.pictureEdit1);
+            this.Controls.Add(pictureEdit1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
             this.IconOptions.Image = global::FactoryTool.Properties.Resources.logo;
             this.MaximizeBox = false;
@@ -129,7 +135,7 @@
             this.Name = "LoginView";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "系统登录";
-            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(pictureEdit1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.mvvmContext1)).EndInit();
@@ -147,6 +153,5 @@
         private DevExpress.XtraEditors.TextEdit textEdit1;
         private DevExpress.XtraEditors.LabelControl labelControl2;
         private DevExpress.XtraEditors.LabelControl labelControl1;
-        private DevExpress.XtraEditors.PictureEdit pictureEdit1;
     }
 }

+ 3 - 0
FactoryTool/FactoryTool/LoginView.resx

@@ -117,6 +117,9 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="pictureEdit1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
   <metadata name="mvvmContext1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>17, 17</value>
   </metadata>

+ 1 - 1
FactoryTool/FactoryTool/MainView.cs

@@ -55,7 +55,7 @@ namespace FactoryTool
                 // 显示欢迎界面;
                 SplashScreenManager.ShowForm(typeof(WelcomeScreen));
                 // 展示5秒;
-                Thread.Sleep(1000);
+                Thread.Sleep(3000);
                 // 关闭欢迎界面;
                 SplashScreenManager.CloseForm();