diff --git a/BulkDataUpdater/AppCode/BDUJob.cs b/BulkDataUpdater/AppCode/BDUJob.cs index aee3a4b..3019771 100644 --- a/BulkDataUpdater/AppCode/BDUJob.cs +++ b/BulkDataUpdater/AppCode/BDUJob.cs @@ -112,6 +112,7 @@ public class JobExecuteOptions public bool BypassSync { get; set; } = false; public bool BypassAsync { get; set; } = false; public List BypassSteps { get; set; } = new List(); + public bool DontAskOptions { get; set; } = false; internal int DelayCurrent = 0; internal bool DelayNow = false; diff --git a/BulkDataUpdater/BDU.Designer.cs b/BulkDataUpdater/BDU.Designer.cs index a790de7..6ce00eb 100644 --- a/BulkDataUpdater/BDU.Designer.cs +++ b/BulkDataUpdater/BDU.Designer.cs @@ -52,13 +52,13 @@ private void InitializeComponent() this.tsbSupporting = new System.Windows.Forms.ToolStripButton(); this.btnRefresh = new System.Windows.Forms.Button(); this.gbExecute = new System.Windows.Forms.GroupBox(); + this.btnSaveLog = new System.Windows.Forms.Button(); this.lblUpdateStatus = new System.Windows.Forms.Label(); this.btnExecute = new System.Windows.Forms.Button(); this.panRecordSummary = new System.Windows.Forms.Panel(); this.lblSelectedRecords = new System.Windows.Forms.Label(); this.btnSelectAll = new System.Windows.Forms.Button(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.crmGridView1 = new Rappen.XTB.Helpers.Controls.XRMDataGridView(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabUpdate = new System.Windows.Forms.TabPage(); this.gb3attributes = new System.Windows.Forms.GroupBox(); @@ -83,8 +83,6 @@ private void InitializeComponent() this.btnAssignSelect = new System.Windows.Forms.Button(); this.txtAssignEntity = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); - this.xrmAssignText = new Rappen.XTB.Helpers.Controls.XRMColumnText(); - this.xrmRecordAssign = new Rappen.XTB.Helpers.Controls.XRMRecordHost(); this.tabSetState = new System.Windows.Forms.TabPage(); this.textBox2 = new System.Windows.Forms.TextBox(); this.panQualifyLead = new System.Windows.Forms.Panel(); @@ -100,10 +98,13 @@ private void InitializeComponent() this.tabDelete = new System.Windows.Forms.TabPage(); this.txtDeleteWarning = new System.Windows.Forms.TextBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.chkAskForExecuteOptions = new System.Windows.Forms.CheckBox(); + this.crmGridView1 = new Rappen.XTB.Helpers.Controls.XRMDataGridView(); + this.xrmAssignText = new Rappen.XTB.Helpers.Controls.XRMColumnText(); + this.xrmRecordAssign = new Rappen.XTB.Helpers.Controls.XRMRecordHost(); this.xrmRecordAttribute = new Rappen.XTB.Helpers.Controls.XRMRecordHost(); this.cdsLookupDialog = new Rappen.XTB.Helpers.Controls.XRMLookupDialog(); this.xrmLookupAssign = new Rappen.XTB.Helpers.Controls.XRMLookupDialog(); - this.btnSaveLog = new System.Windows.Forms.Button(); this.toolStripMain.SuspendLayout(); this.gbExecute.SuspendLayout(); this.panRecordSummary.SuspendLayout(); @@ -111,7 +112,6 @@ private void InitializeComponent() this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.crmGridView1)).BeginInit(); this.tabControl1.SuspendLayout(); this.tabUpdate.SuspendLayout(); this.gb3attributes.SuspendLayout(); @@ -122,6 +122,7 @@ private void InitializeComponent() this.panQualifyLead.SuspendLayout(); this.panel3.SuspendLayout(); this.tabDelete.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.crmGridView1)).BeginInit(); this.SuspendLayout(); // // imageList1 @@ -151,7 +152,7 @@ private void InitializeComponent() this.toolStripMain.Location = new System.Drawing.Point(0, 0); this.toolStripMain.Name = "toolStripMain"; this.toolStripMain.Padding = new System.Windows.Forms.Padding(0, 4, 1, 6); - this.toolStripMain.Size = new System.Drawing.Size(1309, 49); + this.toolStripMain.Size = new System.Drawing.Size(1045, 49); this.toolStripMain.TabIndex = 23; this.toolStripMain.Text = "toolStrip1"; // @@ -294,9 +295,9 @@ private void InitializeComponent() this.tslDoc.Image = ((System.Drawing.Image)(resources.GetObject("tslDoc.Image"))); this.tslDoc.IsLink = true; this.tslDoc.Name = "tslDoc"; - this.tslDoc.Size = new System.Drawing.Size(122, 36); + this.tslDoc.Size = new System.Drawing.Size(65, 36); this.tslDoc.Tag = "https://jonasr.app/BDU/"; - this.tslDoc.Text = "Documentation"; + this.tslDoc.Text = "Docs"; this.tslDoc.ToolTipText = "https://jonasr.app/BDU/"; this.tslDoc.Click += new System.EventHandler(this.link_Click); // @@ -319,7 +320,7 @@ private void InitializeComponent() this.btnRefresh.BackColor = System.Drawing.SystemColors.Window; this.btnRefresh.Image = ((System.Drawing.Image)(resources.GetObject("btnRefresh.Image"))); this.btnRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnRefresh.Location = new System.Drawing.Point(868, 4); + this.btnRefresh.Location = new System.Drawing.Point(604, 4); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); this.btnRefresh.Size = new System.Drawing.Size(51, 35); @@ -333,9 +334,10 @@ private void InitializeComponent() // // gbExecute // - this.gbExecute.Controls.Add(this.btnSaveLog); + this.gbExecute.Controls.Add(this.chkAskForExecuteOptions); this.gbExecute.Controls.Add(this.lblUpdateStatus); this.gbExecute.Controls.Add(this.btnExecute); + this.gbExecute.Controls.Add(this.btnSaveLog); this.gbExecute.Dock = System.Windows.Forms.DockStyle.Bottom; this.gbExecute.Location = new System.Drawing.Point(0, 444); this.gbExecute.Name = "gbExecute"; @@ -344,21 +346,32 @@ private void InitializeComponent() this.gbExecute.TabStop = false; this.gbExecute.Text = "Execution"; // + // btnSaveLog + // + this.btnSaveLog.Enabled = false; + this.btnSaveLog.Location = new System.Drawing.Point(21, 56); + this.btnSaveLog.Name = "btnSaveLog"; + this.btnSaveLog.Size = new System.Drawing.Size(116, 23); + this.btnSaveLog.TabIndex = 101; + this.btnSaveLog.Text = "Save Log..."; + this.btnSaveLog.UseVisualStyleBackColor = true; + this.btnSaveLog.Click += new System.EventHandler(this.btnSaveLog_Click); + // // lblUpdateStatus // this.lblUpdateStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.lblUpdateStatus.Location = new System.Drawing.Point(18, 20); + this.lblUpdateStatus.Location = new System.Drawing.Point(18, 17); this.lblUpdateStatus.Name = "lblUpdateStatus"; - this.lblUpdateStatus.Size = new System.Drawing.Size(220, 64); + this.lblUpdateStatus.Size = new System.Drawing.Size(216, 35); this.lblUpdateStatus.TabIndex = 100; this.lblUpdateStatus.Text = "Status"; // // btnExecute // - this.btnExecute.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExecute.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnExecute.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnExecute.Location = new System.Drawing.Point(244, 15); + this.btnExecute.Location = new System.Drawing.Point(236, 41); this.btnExecute.Name = "btnExecute"; this.btnExecute.Size = new System.Drawing.Size(116, 38); this.btnExecute.TabIndex = 4; @@ -374,7 +387,7 @@ private void InitializeComponent() this.panRecordSummary.Dock = System.Windows.Forms.DockStyle.Top; this.panRecordSummary.Location = new System.Drawing.Point(0, 0); this.panRecordSummary.Name = "panRecordSummary"; - this.panRecordSummary.Size = new System.Drawing.Size(928, 43); + this.panRecordSummary.Size = new System.Drawing.Size(664, 43); this.panRecordSummary.TabIndex = 1; // // lblSelectedRecords @@ -416,39 +429,10 @@ private void InitializeComponent() this.splitContainer1.Panel2.Controls.Add(this.gbExecute); this.splitContainer1.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.splitContainer1.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.splitContainer1.Size = new System.Drawing.Size(1309, 534); - this.splitContainer1.SplitterDistance = 928; + this.splitContainer1.Size = new System.Drawing.Size(1045, 534); + this.splitContainer1.SplitterDistance = 664; this.splitContainer1.TabIndex = 2; // - // crmGridView1 - // - this.crmGridView1.AllowUserToAddRows = false; - this.crmGridView1.AllowUserToDeleteRows = false; - this.crmGridView1.AllowUserToOrderColumns = true; - this.crmGridView1.AllowUserToResizeRows = false; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.crmGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; - this.crmGridView1.AutoRefresh = false; - this.crmGridView1.BackgroundColor = System.Drawing.SystemColors.Window; - this.crmGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.crmGridView1.ColumnOrder = ""; - this.crmGridView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.crmGridView1.FilterColumns = ""; - this.crmGridView1.LayoutXML = ""; - this.crmGridView1.Location = new System.Drawing.Point(0, 43); - this.crmGridView1.Name = "crmGridView1"; - this.crmGridView1.ReadOnly = true; - this.crmGridView1.RowHeadersVisible = false; - this.crmGridView1.RowHeadersWidth = 72; - this.crmGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.crmGridView1.Service = null; - this.crmGridView1.ShowFriendlyNames = true; - this.crmGridView1.ShowIdColumn = false; - this.crmGridView1.Size = new System.Drawing.Size(928, 491); - this.crmGridView1.TabIndex = 3; - this.crmGridView1.RecordDoubleClick += new Rappen.XTB.Helpers.Controls.XRMRecordEventHandler(this.crmGridView1_RecordDoubleClick); - this.crmGridView1.SelectionChanged += new System.EventHandler(this.crmGridView1_SelectionChanged); - // // tabControl1 // this.tabControl1.Controls.Add(this.tabUpdate); @@ -690,7 +674,7 @@ private void InitializeComponent() this.tabAssign.Location = new System.Drawing.Point(4, 22); this.tabAssign.Name = "tabAssign"; this.tabAssign.Padding = new System.Windows.Forms.Padding(3); - this.tabAssign.Size = new System.Drawing.Size(369, 445); + this.tabAssign.Size = new System.Drawing.Size(369, 418); this.tabAssign.TabIndex = 4; this.tabAssign.Text = "Assign"; // @@ -740,28 +724,6 @@ private void InitializeComponent() this.label6.TabIndex = 7; this.label6.Text = "Select User or Team"; // - // xrmAssignText - // - this.xrmAssignText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.xrmAssignText.BackColor = System.Drawing.SystemColors.Window; - this.xrmAssignText.Column = null; - this.xrmAssignText.DisplayFormat = ""; - this.xrmAssignText.Location = new System.Drawing.Point(17, 69); - this.xrmAssignText.Name = "xrmAssignText"; - this.xrmAssignText.ReadOnly = true; - this.xrmAssignText.RecordHost = this.xrmRecordAssign; - this.xrmAssignText.Size = new System.Drawing.Size(311, 20); - this.xrmAssignText.TabIndex = 12; - // - // xrmRecordAssign - // - this.xrmRecordAssign.Id = new System.Guid("00000000-0000-0000-0000-000000000000"); - this.xrmRecordAssign.LogicalName = null; - this.xrmRecordAssign.Record = null; - this.xrmRecordAssign.Service = null; - this.xrmRecordAssign.ColumnValueChanged += new Rappen.XTB.Helpers.Controls.XRMRecordEventHandler(this.xrmRecordAssign_ColumnValueChanged); - // // tabSetState // this.tabSetState.BackColor = System.Drawing.SystemColors.Window; @@ -771,7 +733,7 @@ private void InitializeComponent() this.tabSetState.Location = new System.Drawing.Point(4, 22); this.tabSetState.Name = "tabSetState"; this.tabSetState.Padding = new System.Windows.Forms.Padding(3); - this.tabSetState.Size = new System.Drawing.Size(369, 445); + this.tabSetState.Size = new System.Drawing.Size(369, 418); this.tabSetState.TabIndex = 3; this.tabSetState.Text = "Set State"; // @@ -905,7 +867,7 @@ private void InitializeComponent() this.tabDelete.Location = new System.Drawing.Point(4, 22); this.tabDelete.Name = "tabDelete"; this.tabDelete.Padding = new System.Windows.Forms.Padding(3); - this.tabDelete.Size = new System.Drawing.Size(369, 445); + this.tabDelete.Size = new System.Drawing.Size(369, 418); this.tabDelete.TabIndex = 2; this.tabDelete.Tag = "Delete"; this.tabDelete.Text = "Delete"; @@ -926,6 +888,69 @@ private void InitializeComponent() this.txtDeleteWarning.Text = "This action will delete [nn] records in the list to the left.\r\n\r\nThis action can " + "NOT be undone.\r\n\r\nWhen the Delete button is clicked, there is one confirmation q" + "uestion, and then point of no return."; + // + // chkAskForExecuteOptions + // + this.chkAskForExecuteOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkAskForExecuteOptions.AutoSize = true; + this.chkAskForExecuteOptions.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.chkAskForExecuteOptions.Location = new System.Drawing.Point(212, 17); + this.chkAskForExecuteOptions.Name = "chkAskForExecuteOptions"; + this.chkAskForExecuteOptions.Size = new System.Drawing.Size(140, 17); + this.chkAskForExecuteOptions.TabIndex = 102; + this.chkAskForExecuteOptions.Text = "Ask for Execute Options"; + this.chkAskForExecuteOptions.UseVisualStyleBackColor = true; + // + // crmGridView1 + // + this.crmGridView1.AllowUserToAddRows = false; + this.crmGridView1.AllowUserToDeleteRows = false; + this.crmGridView1.AllowUserToOrderColumns = true; + this.crmGridView1.AllowUserToResizeRows = false; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.crmGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + this.crmGridView1.AutoRefresh = false; + this.crmGridView1.BackgroundColor = System.Drawing.SystemColors.Window; + this.crmGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.crmGridView1.ColumnOrder = ""; + this.crmGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.crmGridView1.FilterColumns = ""; + this.crmGridView1.LayoutXML = ""; + this.crmGridView1.Location = new System.Drawing.Point(0, 43); + this.crmGridView1.Name = "crmGridView1"; + this.crmGridView1.ReadOnly = true; + this.crmGridView1.RowHeadersVisible = false; + this.crmGridView1.RowHeadersWidth = 72; + this.crmGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.crmGridView1.Service = null; + this.crmGridView1.ShowFriendlyNames = true; + this.crmGridView1.ShowIdColumn = false; + this.crmGridView1.Size = new System.Drawing.Size(664, 491); + this.crmGridView1.TabIndex = 3; + this.crmGridView1.RecordDoubleClick += new Rappen.XTB.Helpers.Controls.XRMRecordEventHandler(this.crmGridView1_RecordDoubleClick); + this.crmGridView1.SelectionChanged += new System.EventHandler(this.crmGridView1_SelectionChanged); + // + // xrmAssignText + // + this.xrmAssignText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.xrmAssignText.BackColor = System.Drawing.SystemColors.Window; + this.xrmAssignText.Column = null; + this.xrmAssignText.DisplayFormat = ""; + this.xrmAssignText.Location = new System.Drawing.Point(17, 69); + this.xrmAssignText.Name = "xrmAssignText"; + this.xrmAssignText.ReadOnly = true; + this.xrmAssignText.RecordHost = this.xrmRecordAssign; + this.xrmAssignText.Size = new System.Drawing.Size(311, 20); + this.xrmAssignText.TabIndex = 12; + // + // xrmRecordAssign + // + this.xrmRecordAssign.Id = new System.Guid("00000000-0000-0000-0000-000000000000"); + this.xrmRecordAssign.LogicalName = null; + this.xrmRecordAssign.Record = null; + this.xrmRecordAssign.Service = null; + this.xrmRecordAssign.ColumnValueChanged += new Rappen.XTB.Helpers.Controls.XRMRecordEventHandler(this.xrmRecordAssign_ColumnValueChanged); // // xrmRecordAttribute // @@ -954,18 +979,6 @@ private void InitializeComponent() this.xrmLookupAssign.Service = null; this.xrmLookupAssign.Title = "Select User or Team to assign to"; // - // btnSaveLog - // - this.btnSaveLog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSaveLog.Enabled = false; - this.btnSaveLog.Location = new System.Drawing.Point(244, 59); - this.btnSaveLog.Name = "btnSaveLog"; - this.btnSaveLog.Size = new System.Drawing.Size(116, 23); - this.btnSaveLog.TabIndex = 101; - this.btnSaveLog.Text = "Save Log..."; - this.btnSaveLog.UseVisualStyleBackColor = true; - this.btnSaveLog.Click += new System.EventHandler(this.btnSaveLog_Click); - // // BulkDataUpdater // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -975,20 +988,20 @@ private void InitializeComponent() this.Controls.Add(this.toolStripMain); this.Name = "BulkDataUpdater"; this.PluginIcon = ((System.Drawing.Icon)(resources.GetObject("$this.PluginIcon"))); - this.Size = new System.Drawing.Size(1309, 583); + this.Size = new System.Drawing.Size(1045, 583); this.TabIcon = ((System.Drawing.Image)(resources.GetObject("$this.TabIcon"))); this.ConnectionUpdated += new XrmToolBox.Extensibility.PluginControlBase.ConnectionUpdatedHandler(this.DataUpdater_ConnectionUpdated); this.Load += new System.EventHandler(this.DataUpdater_Load); this.toolStripMain.ResumeLayout(false); this.toolStripMain.PerformLayout(); this.gbExecute.ResumeLayout(false); + this.gbExecute.PerformLayout(); this.panRecordSummary.ResumeLayout(false); this.panRecordSummary.PerformLayout(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.crmGridView1)).EndInit(); this.tabControl1.ResumeLayout(false); this.tabUpdate.ResumeLayout(false); this.gb3attributes.ResumeLayout(false); @@ -1005,6 +1018,7 @@ private void InitializeComponent() this.panel3.PerformLayout(); this.tabDelete.ResumeLayout(false); this.tabDelete.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.crmGridView1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1085,5 +1099,6 @@ private void InitializeComponent() private System.Windows.Forms.Label lblSelectedRecords; private System.Windows.Forms.ToolStripButton tsbSupporting; private System.Windows.Forms.Button btnSaveLog; + private System.Windows.Forms.CheckBox chkAskForExecuteOptions; } } diff --git a/BulkDataUpdater/BDU.cs b/BulkDataUpdater/BDU.cs index b71d3f0..7e0e4a9 100644 --- a/BulkDataUpdater/BDU.cs +++ b/BulkDataUpdater/BDU.cs @@ -298,17 +298,21 @@ private void InitializeTab() if (tabControl1.SelectedTab == tabUpdate) { SetUpdateFromJob(job.Update); + chkAskForExecuteOptions.Visible = job.Update.ExecuteOptions.DontAskOptions; } else if (tabControl1.SelectedTab == tabAssign) { SetAssignFromJob(job.Assign); + chkAskForExecuteOptions.Visible = job.Assign.ExecuteOptions.DontAskOptions; } else if (tabControl1.SelectedTab == tabSetState) { SetSetStateFromJob(job.SetState); + chkAskForExecuteOptions.Visible = job.SetState.ExecuteOptions.DontAskOptions; } else if (tabControl1.SelectedTab == tabDelete) { + chkAskForExecuteOptions.Visible = job.Delete.ExecuteOptions.DontAskOptions; } btnExecute.Text = tabControl1.SelectedTab.Name.Replace("tab", ""); working = tempworker; @@ -701,10 +705,13 @@ internal EntityMetadata GetEntity(string entityname) private void btnExecute_Click(object sender, EventArgs e) { var jobaction = GetJobAction(); - if (Execute.Show(this, jobaction, job.SupportMessages) == DialogResult.OK) + if ((jobaction.ExecuteOptions.DontAskOptions && !chkAskForExecuteOptions.Checked) || + Execute.Show(this, jobaction, job.SupportMessages) == DialogResult.OK) { ExecuteAction(jobaction); } + chkAskForExecuteOptions.Visible = jobaction.ExecuteOptions.DontAskOptions; + chkAskForExecuteOptions.Checked = false; } private void btnGetRecords_Click(object sender, EventArgs e) diff --git a/BulkDataUpdater/BDU.resx b/BulkDataUpdater/BDU.resx index 9d83a86..789446c 100644 --- a/BulkDataUpdater/BDU.resx +++ b/BulkDataUpdater/BDU.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC0 - KAAAAk1TRnQBSQFMAwEBAAFIAQgBSAEIAVABAAFQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAEB + KAAAAk1TRnQBSQFMAwEBAAFgAQgBYAEIAVABAAFQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAEB AgABUAMAAQEBAAEgBgABkAEB/wD/AP8A/wD/ALYAA0YBgAM6AWD/AP8A/wD/APgAA0sBjwMAAf8DWQHv AzoBYP8A/wD/AP8A8AADRgGAAwAB/wMAAf8DAAH/AwAB/wMqAUD/AP8A/wD/AOgAA0ABcAMAAf8DAAH/ AwAB/wMAAf8DAAH/AwAB/wMqAUD/AP8A/wD/AOAAA0YBgAMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMA @@ -679,12 +679,12 @@ cugAazKtOreIpfrMZ8HuixdlZt7sZ6j/zwSVGTSAgQEAOQ3ecapIcecAAAAASUVORK5CYII= - - 622, 10 - 761, 5 + + 622, 10 + 339, 11 diff --git a/BulkDataUpdater/Forms/Execute.Designer.cs b/BulkDataUpdater/Forms/Execute.Designer.cs index 9d1238e..cc37cae 100644 --- a/BulkDataUpdater/Forms/Execute.Designer.cs +++ b/BulkDataUpdater/Forms/Execute.Designer.cs @@ -60,6 +60,7 @@ private void InitializeComponent() this.panButtons = new System.Windows.Forms.Panel(); this.lblInfo = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); + this.chkDontAskNext = new System.Windows.Forms.CheckBox(); this.panBatchOption.SuspendLayout(); this.gbWaitBetween.SuspendLayout(); this.gbBatch.SuspendLayout(); @@ -106,7 +107,7 @@ private void InitializeComponent() // this.linkBulkOperations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkBulkOperations.AutoSize = true; - this.linkBulkOperations.Location = new System.Drawing.Point(212, 22); + this.linkBulkOperations.Location = new System.Drawing.Point(239, 22); this.linkBulkOperations.Name = "linkBulkOperations"; this.linkBulkOperations.Size = new System.Drawing.Size(134, 13); this.linkBulkOperations.TabIndex = 113; @@ -121,7 +122,7 @@ private void InitializeComponent() // this.linkBypassPlugins.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkBypassPlugins.AutoSize = true; - this.linkBypassPlugins.Location = new System.Drawing.Point(215, 22); + this.linkBypassPlugins.Location = new System.Drawing.Point(242, 22); this.linkBypassPlugins.Name = "linkBypassPlugins"; this.linkBypassPlugins.Size = new System.Drawing.Size(131, 13); this.linkBypassPlugins.TabIndex = 112; @@ -149,10 +150,10 @@ private void InitializeComponent() this.gbWaitBetween.Controls.Add(this.label5); this.gbWaitBetween.Controls.Add(this.cmbDelayCall); this.gbWaitBetween.Dock = System.Windows.Forms.DockStyle.Top; - this.gbWaitBetween.Location = new System.Drawing.Point(6, 6); + this.gbWaitBetween.Location = new System.Drawing.Point(6, 116); this.gbWaitBetween.Name = "gbWaitBetween"; - this.gbWaitBetween.Size = new System.Drawing.Size(352, 48); - this.gbWaitBetween.TabIndex = 1; + this.gbWaitBetween.Size = new System.Drawing.Size(379, 48); + this.gbWaitBetween.TabIndex = 3; this.gbWaitBetween.TabStop = false; this.gbWaitBetween.Text = "Pause between calls"; // @@ -214,7 +215,7 @@ private void InitializeComponent() // chkIgnoreErrors // this.chkIgnoreErrors.AutoSize = true; - this.chkIgnoreErrors.Location = new System.Drawing.Point(81, 21); + this.chkIgnoreErrors.Location = new System.Drawing.Point(81, 15); this.chkIgnoreErrors.Name = "chkIgnoreErrors"; this.chkIgnoreErrors.Size = new System.Drawing.Size(85, 17); this.chkIgnoreErrors.TabIndex = 108; @@ -223,12 +224,12 @@ private void InitializeComponent() // // btnExecute // - this.btnExecute.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExecute.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnExecute.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnExecute.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnExecute.Image = ((System.Drawing.Image)(resources.GetObject("btnExecute.Image"))); this.btnExecute.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnExecute.Location = new System.Drawing.Point(218, 6); + this.btnExecute.Location = new System.Drawing.Point(245, 22); this.btnExecute.Name = "btnExecute"; this.btnExecute.Padding = new System.Windows.Forms.Padding(8, 0, 8, 0); this.btnExecute.Size = new System.Drawing.Size(128, 38); @@ -245,10 +246,10 @@ private void InitializeComponent() this.gbBatch.Controls.Add(this.panBatchOption); this.gbBatch.Controls.Add(this.label3); this.gbBatch.Dock = System.Windows.Forms.DockStyle.Top; - this.gbBatch.Location = new System.Drawing.Point(6, 54); + this.gbBatch.Location = new System.Drawing.Point(6, 6); this.gbBatch.Name = "gbBatch"; - this.gbBatch.Size = new System.Drawing.Size(352, 70); - this.gbBatch.TabIndex = 2; + this.gbBatch.Size = new System.Drawing.Size(379, 70); + this.gbBatch.TabIndex = 1; this.gbBatch.TabStop = false; this.gbBatch.Text = "Batch records"; // @@ -258,9 +259,9 @@ private void InitializeComponent() this.gbBypass.Controls.Add(this.chkBypassPlugins); this.gbBypass.Controls.Add(this.linkBypassPlugins); this.gbBypass.Dock = System.Windows.Forms.DockStyle.Top; - this.gbBypass.Location = new System.Drawing.Point(6, 172); + this.gbBypass.Location = new System.Drawing.Point(6, 164); this.gbBypass.Name = "gbBypass"; - this.gbBypass.Size = new System.Drawing.Size(352, 48); + this.gbBypass.Size = new System.Drawing.Size(379, 48); this.gbBypass.TabIndex = 4; this.gbBypass.TabStop = false; this.gbBypass.Text = "Bypass Logic"; @@ -278,7 +279,7 @@ private void InitializeComponent() // this.linkLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkLabel3.AutoSize = true; - this.linkLabel3.Location = new System.Drawing.Point(210, 10); + this.linkLabel3.Location = new System.Drawing.Point(237, 10); this.linkLabel3.Name = "linkLabel3"; this.linkLabel3.Size = new System.Drawing.Size(136, 13); this.linkLabel3.TabIndex = 1; @@ -301,9 +302,9 @@ private void InitializeComponent() this.gbBypassPreview.Controls.Add(this.chkBypassAsync); this.gbBypassPreview.Controls.Add(this.linkLabel1); this.gbBypassPreview.Dock = System.Windows.Forms.DockStyle.Fill; - this.gbBypassPreview.Location = new System.Drawing.Point(6, 220); + this.gbBypassPreview.Location = new System.Drawing.Point(6, 212); this.gbBypassPreview.Name = "gbBypassPreview"; - this.gbBypassPreview.Size = new System.Drawing.Size(352, 97); + this.gbBypassPreview.Size = new System.Drawing.Size(379, 77); this.gbBypassPreview.TabIndex = 5; this.gbBypassPreview.TabStop = false; this.gbBypassPreview.Text = "Preview: Bypass Logic"; @@ -330,7 +331,7 @@ private void InitializeComponent() // this.linkLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkLabel2.AutoSize = true; - this.linkLabel2.Location = new System.Drawing.Point(219, 55); + this.linkLabel2.Location = new System.Drawing.Point(246, 55); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(127, 13); this.linkLabel2.TabIndex = 5; @@ -362,7 +363,7 @@ private void InitializeComponent() this.txtBypassSteps.Location = new System.Drawing.Point(15, 71); this.txtBypassSteps.Multiline = true; this.txtBypassSteps.Name = "txtBypassSteps"; - this.txtBypassSteps.Size = new System.Drawing.Size(331, 20); + this.txtBypassSteps.Size = new System.Drawing.Size(358, 0); this.txtBypassSteps.TabIndex = 6; this.toolTip1.SetToolTip(this.txtBypassSteps, "Add Guids separated by comma.\r\nGuids are found on Plugin Steps in Plugin Registra" + "ting Tool."); @@ -383,7 +384,7 @@ private void InitializeComponent() // this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(214, 33); + this.linkLabel1.Location = new System.Drawing.Point(241, 33); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(132, 13); this.linkLabel1.TabIndex = 4; @@ -399,28 +400,29 @@ private void InitializeComponent() // this.gbErrors.Controls.Add(this.chkIgnoreErrors); this.gbErrors.Dock = System.Windows.Forms.DockStyle.Top; - this.gbErrors.Location = new System.Drawing.Point(6, 124); + this.gbErrors.Location = new System.Drawing.Point(6, 76); this.gbErrors.Name = "gbErrors"; - this.gbErrors.Size = new System.Drawing.Size(352, 48); - this.gbErrors.TabIndex = 3; + this.gbErrors.Size = new System.Drawing.Size(379, 40); + this.gbErrors.TabIndex = 2; this.gbErrors.TabStop = false; this.gbErrors.Text = "Errors"; // // panButtons // + this.panButtons.Controls.Add(this.chkDontAskNext); this.panButtons.Controls.Add(this.lblInfo); this.panButtons.Controls.Add(this.btnCancel); this.panButtons.Controls.Add(this.btnExecute); this.panButtons.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panButtons.Location = new System.Drawing.Point(6, 317); + this.panButtons.Location = new System.Drawing.Point(6, 289); this.panButtons.Name = "panButtons"; - this.panButtons.Size = new System.Drawing.Size(352, 58); + this.panButtons.Size = new System.Drawing.Size(379, 78); this.panButtons.TabIndex = 9; // // lblInfo // this.lblInfo.AutoSize = true; - this.lblInfo.Location = new System.Drawing.Point(12, 44); + this.lblInfo.Location = new System.Drawing.Point(12, 60); this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(95, 13); this.lblInfo.TabIndex = 117; @@ -429,13 +431,25 @@ private void InitializeComponent() // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(15, 14); + this.btnCancel.Location = new System.Drawing.Point(15, 30); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 116; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // + // chkDontAskNext + // + this.chkDontAskNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkDontAskNext.AutoSize = true; + this.chkDontAskNext.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.chkDontAskNext.Location = new System.Drawing.Point(123, 3); + this.chkDontAskNext.Name = "chkDontAskNext"; + this.chkDontAskNext.Size = new System.Drawing.Size(250, 17); + this.chkDontAskNext.TabIndex = 118; + this.chkDontAskNext.Text = "Don\'t ask for these options next time to execute"; + this.chkDontAskNext.UseVisualStyleBackColor = true; + // // Execute // this.AcceptButton = this.btnExecute; @@ -443,17 +457,17 @@ private void InitializeComponent() this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Window; this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(364, 381); + this.ClientSize = new System.Drawing.Size(391, 373); this.Controls.Add(this.gbBypassPreview); this.Controls.Add(this.panButtons); this.Controls.Add(this.gbBypass); + this.Controls.Add(this.gbWaitBetween); this.Controls.Add(this.gbErrors); this.Controls.Add(this.gbBatch); - this.Controls.Add(this.gbWaitBetween); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(380, 420); + this.MinimumSize = new System.Drawing.Size(380, 412); this.Name = "Execute"; this.Padding = new System.Windows.Forms.Padding(6); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; @@ -508,5 +522,6 @@ private void InitializeComponent() private System.Windows.Forms.GroupBox gbBypassPreview; private System.Windows.Forms.LinkLabel linkLabel3; private System.Windows.Forms.Label label4; + private System.Windows.Forms.CheckBox chkDontAskNext; } } \ No newline at end of file diff --git a/BulkDataUpdater/Forms/Execute.cs b/BulkDataUpdater/Forms/Execute.cs index 365280d..d0680c5 100644 --- a/BulkDataUpdater/Forms/Execute.cs +++ b/BulkDataUpdater/Forms/Execute.cs @@ -63,7 +63,8 @@ public Execute() BypassCustom = chkBypassPlugins.Checked, BypassSync = chkBypassSync.Checked, BypassAsync = chkBypassAsync.Checked, - BypassSteps = GetStepGuids() + BypassSteps = GetStepGuids(), + DontAskOptions = chkDontAskNext.Checked }; private List GetStepGuids() diff --git a/BulkDataUpdater/Forms/Execute.resx b/BulkDataUpdater/Forms/Execute.resx index 5bf61e0..8d2ec8c 100644 --- a/BulkDataUpdater/Forms/Execute.resx +++ b/BulkDataUpdater/Forms/Execute.resx @@ -147,7 +147,4 @@ hA6h2phE/fFj2lH/r0U7Slc2eBC212JwSqYbxKquMft/8uj+AeDYsSCysBvqAAAAAElFTkSuQmCC - - 17, 17 - \ No newline at end of file