Compare commits
108 Commits
B2025-030
...
9d5cc43d71
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d5cc43d71 | |||
| bc1370ab29 | |||
| eaf2b14cfc | |||
| 1cf7d81aa5 | |||
| f11a9536f0 | |||
| c7bdcf0104 | |||
| df026499d5 | |||
| a3aa4157b8 | |||
| 8f3268e1bc | |||
| 5721d440e9 | |||
| 505c396283 | |||
| 643e6bc94f | |||
| 76502e6d97 | |||
| 851a0b3810 | |||
| fd8dbb4c8b | |||
| 4ffd994c5e | |||
| a34828113a | |||
| 461329468c | |||
| 35de5df04d | |||
| 4f0548fd60 | |||
| 5c1d96cc51 | |||
| 57049c0c52 | |||
| 31326e1c91 | |||
| 3c60994a0a | |||
| 773cc42346 | |||
| f46a1f39dc | |||
| b7175bf77f | |||
| ec22232aa8 | |||
| f303cd2236 | |||
| f40cef4416 | |||
| fbca97d38d | |||
| 28bd2cba5c | |||
| 4b35f73bbf | |||
| f4706eb126 | |||
| 21bcb90558 | |||
| ae48ac0cae | |||
| cb4979d5bc | |||
| 7d3ae74e1f | |||
| 9d680aa500 | |||
| 0d50b1c2fe | |||
| 75e034863f | |||
| 3b42de1571 | |||
| 668472286e | |||
| e00d34c99d | |||
| 9fb496dfb3 | |||
| f4eaa4a3ef | |||
| 5d50ed6bdf | |||
| d7ace4eaf9 | |||
| 16a4d335ea | |||
| ba69bb0772 | |||
| 455940caa2 | |||
| 439344757e | |||
| ad912691c9 | |||
| 237144aff6 | |||
| 810332d558 | |||
| f8431d0ba1 | |||
| 57c3bfa16a | |||
| 61f1077608 | |||
| 8877e968b9 | |||
| 4575c90bee | |||
| 21279a87ae | |||
| 3d5ad4a17e | |||
| 9bb7b044a8 | |||
| dc8f2f7561 | |||
| 829dbf84da | |||
| 7b156c17f8 | |||
| cbf7cbc164 | |||
| b04faa816e | |||
| 517ebe2902 | |||
| 03d0d314e3 | |||
| 3e804c5cce | |||
| ee2b8b538e | |||
| fdfd34fe92 | |||
| 2d6fb6523b | |||
| 3084bf3982 | |||
| 5ba51e8392 | |||
| fb5eb43e34 | |||
| b154056276 | |||
| c67b8f9ca1 | |||
| 95e4181360 | |||
| 32dffbe56b | |||
| 6b3c8d373b | |||
| db29107f47 | |||
| 355537f2ab | |||
| 0729ef0c21 | |||
| 6fe82bfd0f | |||
| 39bf072363 | |||
| da7c384fd8 | |||
| 95130fd9a0 | |||
| 978e2344a3 | |||
| c9bf45602c | |||
| aa160b2036 | |||
| f82b32d351 | |||
| e519dc9a57 | |||
| f020c37db9 | |||
| 5a4ec3b6b1 | |||
| 2602d6c9d2 | |||
| ff403583d7 | |||
| c5577cc2bd | |||
| 78be6e5dc1 | |||
| b954a41375 | |||
| 0100a11cfe | |||
| 04cf2e8534 | |||
| be00724818 | |||
| 274d93c61a | |||
| 7dc4c30436 | |||
| 028ef4bc31 | |||
| 42124d65c7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17
PROMS/Formats/frmFormatCopy.Designer.cs
generated
17
PROMS/Formats/frmFormatCopy.Designer.cs
generated
@@ -35,7 +35,6 @@ namespace Formats
|
|||||||
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.labelX2 = new DevComponents.DotNetBar.LabelX();
|
this.labelX2 = new DevComponents.DotNetBar.LabelX();
|
||||||
this.LstBxExcludeFiles = new DevComponents.DotNetBar.ListBoxAdv();
|
this.LstBxExcludeFiles = new DevComponents.DotNetBar.ListBoxAdv();
|
||||||
this.cbIncludeDemoFormats = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// txbxPROMSFormatsPath
|
// txbxPROMSFormatsPath
|
||||||
@@ -132,26 +131,11 @@ namespace Formats
|
|||||||
this.LstBxExcludeFiles.TabIndex = 6;
|
this.LstBxExcludeFiles.TabIndex = 6;
|
||||||
this.LstBxExcludeFiles.Text = "listBoxAdv1";
|
this.LstBxExcludeFiles.Text = "listBoxAdv1";
|
||||||
//
|
//
|
||||||
// cbIncludeDemoFormats
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
this.cbIncludeDemoFormats.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
|
||||||
this.cbIncludeDemoFormats.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.cbIncludeDemoFormats.Location = new System.Drawing.Point(43, 156);
|
|
||||||
this.cbIncludeDemoFormats.Name = "cbIncludeDemoFormats";
|
|
||||||
this.cbIncludeDemoFormats.Size = new System.Drawing.Size(160, 23);
|
|
||||||
this.cbIncludeDemoFormats.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2010;
|
|
||||||
this.cbIncludeDemoFormats.TabIndex = 7;
|
|
||||||
this.cbIncludeDemoFormats.Text = "Include Demo Formats";
|
|
||||||
//
|
|
||||||
// frmFormatCopy
|
// frmFormatCopy
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(496, 191);
|
this.ClientSize = new System.Drawing.Size(496, 191);
|
||||||
this.Controls.Add(this.cbIncludeDemoFormats);
|
|
||||||
this.Controls.Add(this.LstBxExcludeFiles);
|
this.Controls.Add(this.LstBxExcludeFiles);
|
||||||
this.Controls.Add(this.labelX2);
|
this.Controls.Add(this.labelX2);
|
||||||
this.Controls.Add(this.buttonX2);
|
this.Controls.Add(this.buttonX2);
|
||||||
@@ -174,7 +158,6 @@ namespace Formats
|
|||||||
private DevComponents.DotNetBar.ButtonX buttonX2;
|
private DevComponents.DotNetBar.ButtonX buttonX2;
|
||||||
private DevComponents.DotNetBar.LabelX labelX2;
|
private DevComponents.DotNetBar.LabelX labelX2;
|
||||||
private DevComponents.DotNetBar.ListBoxAdv LstBxExcludeFiles;
|
private DevComponents.DotNetBar.ListBoxAdv LstBxExcludeFiles;
|
||||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbIncludeDemoFormats;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,17 +96,13 @@ namespace Formats
|
|||||||
if (!txbxPROMSFormatsPath.Text.EndsWith(@"\")) txbxPROMSFormatsPath.Text += @"\";
|
if (!txbxPROMSFormatsPath.Text.EndsWith(@"\")) txbxPROMSFormatsPath.Text += @"\";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Added a PROMSDemo to the list of excluded format files
|
public string[] excludeThese = { "WPS", "WPB", "VCBEPP" };
|
||||||
public string[] excludeThese = { "WPS", "WPB", "VCBEPP", "PROMSDemo" };
|
|
||||||
|
|
||||||
// Added logic to support in inclusion of the PROMSDemo formats if the checkbox on the
|
|
||||||
// dialog is check
|
|
||||||
private bool ExcludeFromCopy(string fn)
|
private bool ExcludeFromCopy(string fn)
|
||||||
{
|
{
|
||||||
// don't copy formats whos file name starts with..
|
// don't copy formats whos file name starts with..
|
||||||
foreach (string excludeThis in excludeThese)
|
foreach (string excludeThis in excludeThese)
|
||||||
if (fn.ToUpper().StartsWith(excludeThis)
|
if (fn.ToUpper().StartsWith(excludeThis)) return true;
|
||||||
&& !(cbIncludeDemoFormats.Checked && fn.ToUpper().StartsWith("PROMSDEMO"))) return true;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,5 +161,5 @@ namespace Formats
|
|||||||
Application.Exit();
|
Application.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -896,8 +896,12 @@ namespace Volian.Controls.Library
|
|||||||
AnnotationInfo ai = AnnotationInfo.RestoreAnnotation(aai);
|
AnnotationInfo ai = AnnotationInfo.RestoreAnnotation(aai);
|
||||||
// B2023-072: Don't crash if annotation type was deleted for the restore annotation
|
// B2023-072: Don't crash if annotation type was deleted for the restore annotation
|
||||||
if (ai == null)
|
if (ai == null)
|
||||||
|
{
|
||||||
|
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
||||||
|
if (ati == null)
|
||||||
{
|
{
|
||||||
FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
OnAnnotationRestored(ai, ai.MyItem);
|
OnAnnotationRestored(ai, ai.MyItem);
|
||||||
|
|||||||
@@ -2074,6 +2074,7 @@ namespace Volian.Controls.Library
|
|||||||
case "Paste Procedure After":
|
case "Paste Procedure After":
|
||||||
case "Paste Section":
|
case "Paste Section":
|
||||||
case "Paste Section Before":
|
case "Paste Section Before":
|
||||||
|
case "Replace Existing Section":
|
||||||
case "Paste Section After":
|
case "Paste Section After":
|
||||||
case "Paste Step":
|
case "Paste Step":
|
||||||
case "Paste Step Before":
|
case "Paste Step Before":
|
||||||
@@ -2082,18 +2083,8 @@ namespace Volian.Controls.Library
|
|||||||
case "Paste Subsection":
|
case "Paste Subsection":
|
||||||
tv_NodePaste(mi.Text);
|
tv_NodePaste(mi.Text);
|
||||||
break;
|
break;
|
||||||
case "Replace Existing Section":
|
|
||||||
//C2025-032 - Add check if user is sure want to paste replace section
|
|
||||||
DialogResult ovewriteExPS = FlexibleMessageBox.Show("This will overwrite the selected section with the one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the section?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
|
|
||||||
|
|
||||||
if (ovewriteExPS == DialogResult.Cancel) break;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
tv_NodePaste(mi.Text);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case "Replace Existing Procedure":
|
case "Replace Existing Procedure":
|
||||||
DialogResult ovewriteEx = FlexibleMessageBox.Show("This will overwrite the selected procedure with the one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the procedure?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);// == DialogResult.Yes;
|
DialogResult ovewriteEx = FlexibleMessageBox.Show("This will overwrite the selected procedure with then one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the procedure?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);// == DialogResult.Yes;
|
||||||
|
|
||||||
if (ovewriteEx == DialogResult.Cancel) break;
|
if (ovewriteEx == DialogResult.Cancel) break;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user