| | |
| | | <Compile Include="UserControl\ShowFile.Designer.cs"> |
| | | <DependentUpon>ShowFile.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="UserControl\showLayOut.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="UserControl\showLayOut.Designer.cs"> |
| | | <DependentUpon>showLayOut.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="UserControl\ShowLogcs.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | |
| | | <EmbeddedResource Include="UserControl\ShowFile.resx"> |
| | | <DependentUpon>ShowFile.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="UserControl\showLayOut.resx"> |
| | | <DependentUpon>showLayOut.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="UserControl\ShowLogcs.resx"> |
| | | <DependentUpon>ShowLogcs.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | |
| | | <None Include="Resources\employee_32x321.png" /> |
| | | <None Include="Resources\publicfix_16x16.png" /> |
| | | <None Include="Resources\publicfix_32x321.png" /> |
| | | <None Include="Resources\globalcolorscheme_32x32.png" /> |
| | | <None Include="Resources\globalcolorscheme_16x16.png" /> |
| | | <Content Include="Resources\user_16x16.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup /> |
| | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap globalcolorscheme_16x16 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("globalcolorscheme_16x16", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap globalcolorscheme_32x32 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("globalcolorscheme_32x32", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap group_32x32 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("group_32x32", resourceCulture); |
| | |
| | | <data name="converttorange_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\converttorange_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="trackingchanges_showmarkup_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\trackingchanges_showmarkup_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="copymodeldifferences_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\copymodeldifferences_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="trackingchanges_showmarkup_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\trackingchanges_showmarkup_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="publicfix_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\publicfix_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="forcetesting_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\forcetesting_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <value>..\Resources\show_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="globalcolorscheme_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\globalcolorscheme_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="lookup&reference_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\lookup&reference_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="publicfix_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\publicfix_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="globalcolorscheme_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\globalcolorscheme_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | </root> |
| | |
| | | this.btnJieAn = new DevExpress.XtraBars.BarLargeButtonItem(); |
| | | this.btnFjieAn = new DevExpress.XtraBars.BarLargeButtonItem(); |
| | | this.btnHelp = new DevExpress.XtraBars.BarLargeButtonItem(); |
| | | this.btnLayout = new DevExpress.XtraBars.BarLargeButtonItem(); |
| | | this.barDockControlTop = new DevExpress.XtraBars.BarDockControl(); |
| | | this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); |
| | | this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); |
| | |
| | | this.btnKg, |
| | | this.btnZhongTai, |
| | | this.btnWg, |
| | | this.btnHelp}); |
| | | this.btnHelp, |
| | | this.btnLayout}); |
| | | this.barManager1.MainMenu = this.bar2; |
| | | this.barManager1.MaxItemId = 51; |
| | | this.barManager1.MaxItemId = 52; |
| | | // |
| | | // bar2 |
| | | // |
| | |
| | | new DevExpress.XtraBars.LinkPersistInfo(this.btnZhongTai), |
| | | new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnJieAn, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph), |
| | | new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnFjieAn, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph), |
| | | new DevExpress.XtraBars.LinkPersistInfo(this.btnHelp)}); |
| | | new DevExpress.XtraBars.LinkPersistInfo(this.btnHelp), |
| | | new DevExpress.XtraBars.LinkPersistInfo(this.btnLayout)}); |
| | | this.bar2.OptionsBar.AllowQuickCustomization = false; |
| | | this.bar2.OptionsBar.MultiLine = true; |
| | | this.bar2.OptionsBar.UseWholeRow = true; |
| | |
| | | this.btnHelp.ItemAppearance.Normal.Options.UseFont = true; |
| | | this.btnHelp.Name = "btnHelp"; |
| | | // |
| | | // btnLayout |
| | | // |
| | | this.btnLayout.Caption = "ä¿åçé¢"; |
| | | this.btnLayout.Id = 51; |
| | | this.btnLayout.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.globalcolorscheme_16x16; |
| | | this.btnLayout.ImageOptions.LargeImage = global::Gs.DevApp.Properties.Resources.globalcolorscheme_32x32; |
| | | this.btnLayout.Name = "btnLayout"; |
| | | // |
| | | // barDockControlTop |
| | | // |
| | | this.barDockControlTop.CausesValidation = false; |
| | |
| | | // |
| | | this.barDockControlBottom.CausesValidation = false; |
| | | this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; |
| | | this.barDockControlBottom.Location = new System.Drawing.Point(0, 60); |
| | | this.barDockControlBottom.Location = new System.Drawing.Point(0, 70); |
| | | this.barDockControlBottom.Manager = this.barManager1; |
| | | this.barDockControlBottom.Size = new System.Drawing.Size(1543, 0); |
| | | // |
| | |
| | | this.Controls.Add(this.barDockControlBottom); |
| | | this.Controls.Add(this.barDockControlTop); |
| | | this.Name = "UcToolBarMenu"; |
| | | this.Size = new System.Drawing.Size(1543, 60); |
| | | this.Size = new System.Drawing.Size(1543, 70); |
| | | ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | this.PerformLayout(); |
| | |
| | | private DevExpress.XtraBars.BarLargeButtonItem btnZhongTai; |
| | | private DevExpress.XtraBars.BarLargeButtonItem btnWg; |
| | | private DevExpress.XtraBars.BarLargeButtonItem btnHelp; |
| | | |
| | | private DevExpress.XtraBars.BarLargeButtonItem btnLayout; |
| | | } |
| | | } |
| | |
| | | btnZhongTai.ItemClick += BtnbZhongTai_ItemClick; |
| | | btnWg.ItemClick += BtnWg_ItemClick; |
| | | btnHelp.ItemClick += BtnHelp_ItemClick; |
| | | btnLayout.ItemClick += BtnLayout_ItemClick; |
| | | var lst = new List<string>(); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | |
| | | lst.Add(btnLog.Name); |
| | | lst.Add(btnPiZhun.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnLayout.Name); |
| | | lst.Add(btnBoHui.Name); |
| | | lst.Add(btnTzbl.Name); |
| | | lst.Add(btnKg.Name); |
| | |
| | | lst.Add(btnWg.Name); |
| | | lst.Add(btnZhongTai.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnLayout.Name); |
| | | lst.Add(btnLoad.Name); |
| | | lst.Add(btnTzbl.Name); |
| | | _enabledBtn(lst); |
| | |
| | | lst.Add(btnSave.Name); |
| | | lst.Add(btnEsc.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnLayout.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "edit"; |
| | | if (btnEdtClick != null) btnEdtClick(this, e); |
| | | |
| | | } |
| | | |
| | | private void BtnDel_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | lst.Add(btnSave.Name); |
| | | lst.Add(btnEsc.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnLayout.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "add"; |
| | | if (btnAddClick != null) btnAddClick(this, e); |
| | |
| | | return; |
| | | } |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtnJson.rtnMsg); |
| | | |
| | | } |
| | | |
| | | |
| | | private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | var _formNamespace = ""; |
| | | Control parentControl = this; |
| | | while (parentControl.Parent != null) |
| | | { |
| | | if (parentControl.Parent is Form parentForm) |
| | | { |
| | | var formType = parentForm.GetType(); |
| | | _formNamespace = formType.FullName; |
| | | break; |
| | | } |
| | | parentControl = parentControl.Parent; |
| | | } |
| | | Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace); |
| | | DevFrm.ShowDialog(); |
| | | } |
| | | private void _enabledBtn(List<string> lstBtn) |
| | | { |
| | | foreach (BarItem item in barManager1.Items) |
| | |
| | | //é»è®¤å¯ç¨çæé® |
| | | _enabledList.Add(btnLoad.Name); |
| | | _enabledList.Add(btnHelp.Name); |
| | | _enabledList.Add(btnLayout.Name); |
| | | _enabledBtn(_enabledList); |
| | | } |
| | | catch (Exception ex) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | | partial class showLayOut |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(showLayOut)); |
| | | this.panel1 = new System.Windows.Forms.Panel(); |
| | | this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); |
| | | this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
| | | this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); |
| | | this.txt_layOut = new DevExpress.XtraEditors.ComboBoxEdit(); |
| | | this.panel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_layOut.Properties)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // panel1 |
| | | // |
| | | this.panel1.BackColor = System.Drawing.Color.White; |
| | | this.panel1.Controls.Add(this.txt_layOut); |
| | | this.panel1.Controls.Add(this.btnCancel); |
| | | this.panel1.Controls.Add(this.btnSave); |
| | | this.panel1.Controls.Add(this.labelControl1); |
| | | this.panel1.Font = new System.Drawing.Font("Tahoma", 12F); |
| | | this.panel1.Location = new System.Drawing.Point(35, 12); |
| | | this.panel1.Name = "panel1"; |
| | | this.panel1.Size = new System.Drawing.Size(282, 228); |
| | | this.panel1.TabIndex = 2; |
| | | // |
| | | // btnCancel |
| | | // |
| | | this.btnCancel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); |
| | | this.btnCancel.Appearance.Options.UseFont = true; |
| | | this.btnCancel.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; |
| | | this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; |
| | | this.btnCancel.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.ImageOptions.Image"))); |
| | | this.btnCancel.Location = new System.Drawing.Point(148, 126); |
| | | this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
| | | this.btnCancel.Name = "btnCancel"; |
| | | this.btnCancel.Size = new System.Drawing.Size(98, 37); |
| | | this.btnCancel.TabIndex = 238; |
| | | this.btnCancel.Text = "åæ¶ (&C)"; |
| | | // |
| | | // btnSave |
| | | // |
| | | this.btnSave.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); |
| | | this.btnSave.Appearance.Options.UseFont = true; |
| | | this.btnSave.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; |
| | | this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; |
| | | this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
| | | this.btnSave.Location = new System.Drawing.Point(25, 126); |
| | | this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
| | | this.btnSave.Name = "btnSave"; |
| | | this.btnSave.Size = new System.Drawing.Size(98, 37); |
| | | this.btnSave.TabIndex = 237; |
| | | this.btnSave.Text = "ç¡®å® (&L)"; |
| | | // |
| | | // labelControl1 |
| | | // |
| | | this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); |
| | | this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Black; |
| | | this.labelControl1.Appearance.Options.UseFont = true; |
| | | this.labelControl1.Appearance.Options.UseForeColor = true; |
| | | this.labelControl1.Appearance.Options.UseTextOptions = true; |
| | | this.labelControl1.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; |
| | | this.labelControl1.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; |
| | | this.labelControl1.Location = new System.Drawing.Point(19, 48); |
| | | this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
| | | this.labelControl1.Name = "labelControl1"; |
| | | this.labelControl1.Size = new System.Drawing.Size(93, 18); |
| | | this.labelControl1.TabIndex = 236; |
| | | this.labelControl1.Text = "éç¨èå´ï¼"; |
| | | // |
| | | // txt_layOut |
| | | // |
| | | this.txt_layOut.EditValue = "-è¯·éæ©-"; |
| | | this.txt_layOut.Location = new System.Drawing.Point(118, 46); |
| | | this.txt_layOut.Name = "txt_layOut"; |
| | | this.txt_layOut.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
| | | new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); |
| | | this.txt_layOut.Properties.Items.AddRange(new object[] { |
| | | "-è¯·éæ©-", |
| | | "ä¿å为å
¾", |
| | | "ä¿åä¸ºç§æ"}); |
| | | this.txt_layOut.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
| | | this.txt_layOut.Size = new System.Drawing.Size(128, 24); |
| | | this.txt_layOut.TabIndex = 239; |
| | | // |
| | | // showLayOut |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(355, 274); |
| | | this.Controls.Add(this.panel1); |
| | | this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; |
| | | this.MaximizeBox = false; |
| | | this.MinimizeBox = false; |
| | | this.Name = "showLayOut"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
| | | this.Text = "ä¿åæ¿é¢"; |
| | | this.panel1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_layOut.Properties)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private DevExpress.XtraEditors.ComboBoxEdit txt_layOut; |
| | | private DevExpress.XtraEditors.SimpleButton btnCancel; |
| | | private DevExpress.XtraEditors.SimpleButton btnSave; |
| | | private DevExpress.XtraEditors.LabelControl labelControl1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | | public partial class showLayOut : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | string formNamespace = ""; |
| | | public showLayOut(string _formNamespace) |
| | | { |
| | | formNamespace= _formNamespace; |
| | | InitializeComponent(); |
| | | this.btnCancel.Click += BtnCancel_Click; |
| | | this.btnSave.Click += BtnSave_Click; |
| | | } |
| | | |
| | | private void BtnSave_Click(object sender, EventArgs e) |
| | | { |
| | | if (txt_layOut.SelectedIndex <= 0) |
| | | { |
| | | MsgHelper.Warning("è¯·éæ©éç¨èå´ï¼"); |
| | | return; |
| | | } |
| | | var _obj = new |
| | | { |
| | | applyUserGuid = txt_layOut.SelectedIndex, |
| | | layoutLst= "col1,100,101,102,103,104,105,1,title&gridview1=col2,100,101,102,103,104,105,1,title", |
| | | formPath = formNamespace |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", "Fm/EditModel", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning("æç¤ºï¼" + _rtn.rtnData.outMsg); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | DialogResult = DialogResult.OK; |
| | | Close(); |
| | | } |
| | | else |
| | | { |
| | | DialogResult = DialogResult.None; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DialogResult = DialogResult.Cancel; |
| | | MsgHelper.Warning("æç¤ºï¼" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | private void BtnCancel_Click(object sender, EventArgs e) |
| | | { |
| | | Close(); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="btnCancel.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABF0RVh0VGl0 |
| | | bGUAQ2xvc2U7RXhpdDsFGf+FAAAArElEQVQ4T7XSOwoCQRCE4c0E8XEDQTMRA+/gTTykGBuYGm6olxBE |
| | | tP1LHGl1WoZVg2+DYrqYZrYys6/cPvVibk38teBUkkUFNcbYuGyFCXYuyxYcMYSyPlSi4fY9m+KMsECW |
| | | aEF5D2m4gzUeZ6MC8SXZYflU4K8taZ2nc1GBH+4i3eStJFdwwABpWNf268xwQVggW4zgd1aJnnbvsrBA |
| | | 9JyvWfGPVOx3Bc1ZdQWpA3U147gCvgAAAABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | <data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACB0RVh0VGl0 |
| | | bGUATmV3O05ld0VtcGxveWVlO05ld1BlcnNvbjveWVScAAAA3ElEQVQ4T5WOPQ5BQRSF3wYsgohCJXRq |
| | | PRWJJaktgFLUOjsQ0egURKEgaj/NOEfuyJl5E4/iy8y5c7+Tyc6LruI0O+cKUbEVnUkhxhd4ycOcDUdL |
| | | cgVjULKcK1AxyCbwJBPLuYKiH/iCm+VkgZf0VJlcKJNUgRZ9sshkRpkEBRr8AmiCJ/Ay75z9XED64GQM |
| | | bPZGnSDYAsUjqFgmZXAAPWZ1goDHBngAfnsDqqAGtjbjW12duGBui9+YqhMXnKPlFCd14oJ9tJxip05c |
| | | 0AFrcLdlhbMVaKsTFPyPy16LX4vunIH/egAAAABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | </root> |