Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
96e61aea2b | |||
565779c9c8 | |||
b4ccd682c3 | |||
dba1331556 | |||
8803ae2274 | |||
69d09b7fc2 | |||
8ddfc8654e | |||
4fc3b89e06 |
@@ -1154,7 +1154,10 @@ namespace ROEditor
|
||||
tbtnCancel.Enabled = true;
|
||||
tbtnSave.Enabled = true;
|
||||
tbtnRestore.Enabled = true;
|
||||
tbtnSaveAs.Enabled = true;
|
||||
if (newone == null)
|
||||
{ tbtnSaveAs.Enabled = true; }
|
||||
else
|
||||
{ tbtnSaveAs.Enabled = false; }
|
||||
}
|
||||
menuROSave.Enabled = tbtnSave.Enabled;
|
||||
}
|
||||
@@ -1170,7 +1173,10 @@ namespace ROEditor
|
||||
|
||||
tbtnSave.Enabled = true;
|
||||
tbtnRestore.Enabled = true;
|
||||
tbtnSaveAs.Enabled = true;
|
||||
if (newone == null)
|
||||
{ tbtnSaveAs.Enabled = true; }
|
||||
else
|
||||
{ tbtnSaveAs.Enabled = false; }
|
||||
tbtnCancel.Enabled = true;
|
||||
menuROSave.Enabled = tbtnSave.Enabled;
|
||||
//B2021-080 set the mysavexml flag to true to ensure the text change will be saved
|
||||
@@ -2392,20 +2398,26 @@ namespace ROEditor
|
||||
*/
|
||||
private void menuRODelete_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
bool success=false;
|
||||
XmlNode nd = (XmlNode) roTreeView.SelectedNode.Tag;
|
||||
if (nd.ParentNode.Name == "RO_Root")
|
||||
success = myrodb.RODB_DeleteGroup(nd,null,null);
|
||||
else
|
||||
success = myrodb.RODB_DeleteRO(nd);
|
||||
if (success == true)
|
||||
string msgstr = "It is recommended that you may wish to create a backup zip of your RO folder prior to performing deletions.\n\nAre you sure you wish to delete the selected RO/RO Group?";
|
||||
|
||||
DialogResult AnswerYN = MessageBox.Show(msgstr, "Deleting ROs/RO Group", MessageBoxButtons.YesNo);
|
||||
if (AnswerYN == DialogResult.Yes)
|
||||
{
|
||||
// remove from xml tree & the tree control
|
||||
XmlNode parent = nd.ParentNode;
|
||||
parent.RemoveChild(nd);
|
||||
updateRoListView(roTreeView.SelectedNode.Parent);
|
||||
roTreeView.SelectedNode.Remove();
|
||||
roTreeView.Refresh();
|
||||
bool success = false;
|
||||
XmlNode nd = (XmlNode)roTreeView.SelectedNode.Tag;
|
||||
if (nd.ParentNode.Name == "RO_Root")
|
||||
success = myrodb.RODB_DeleteGroup(nd, null, null);
|
||||
else
|
||||
success = myrodb.RODB_DeleteRO(nd);
|
||||
if (success == true)
|
||||
{
|
||||
// remove from xml tree & the tree control
|
||||
XmlNode parent = nd.ParentNode;
|
||||
parent.RemoveChild(nd);
|
||||
updateRoListView(roTreeView.SelectedNode.Parent);
|
||||
roTreeView.SelectedNode.Remove();
|
||||
roTreeView.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1129,7 +1129,7 @@ namespace ctlXMLEditLib
|
||||
mylabel.BackColor = chlbckcolor; // PC Applic fields are shaded blue otherwise backcolor is transparent
|
||||
mylabel.Location = new Point(screenx+indent, screeny);
|
||||
mylabel.Name = (pcChildIdx == 0) ? CvtUserFldToFld(element.Name) : CvtUserFldToFld(pcChildFldName);
|
||||
mylabel.Text = (applicLabel.Length > 0) ? applicLabel : CvtFldToUserFld(element.Name); // C2021-026 applicLabel is the P/C Child name
|
||||
mylabel.Text = (applicLabel.Length > 0) ? applicLabel : CvtFldToUserFld(element.Name).Replace("Image_",""); // C2021-026 applicLabel is the P/C Child name
|
||||
mylabel.AutoSize = true;
|
||||
Controls.Add(mylabel);
|
||||
// add 3 onto screeny so that textbox is slightly below label.
|
||||
@@ -1696,7 +1696,7 @@ namespace ctlXMLEditLib
|
||||
}
|
||||
catch (Exception ee)
|
||||
{
|
||||
MessageBox.Show("Invalid Height Input",ee.ToString());
|
||||
MessageBox.Show("The Height and Width cannot be empty fields. Enter a number in either field and the other will automatically adjust to a proportional size.", "Invalid Height Input");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1713,7 +1713,7 @@ namespace ctlXMLEditLib
|
||||
}
|
||||
catch (Exception ee)
|
||||
{
|
||||
MessageBox.Show("Invalid Width Input", ee.ToString());
|
||||
MessageBox.Show("The Height and Width cannot be empty fields. Enter a number in either field and the other will automatically adjust to a proportional size.", "Invalid Width Input");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1148,8 +1148,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemExt.DeactivateStateDisplayTabTmp", ex);
|
||||
throw new DbCslaException("ItemExt.DeactivateStateDisplayTabTmp", ex);
|
||||
Database.LogException("ItemExt.DeactivateStateDisplayTabTmp", ex);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1176,8 +1175,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemExt.AddDisplayTabsState", ex);
|
||||
throw new DbCslaException("ItemExt.AddDisplayTabsState", ex);
|
||||
Database.LogException("ItemExt.AddDisplayTabsState", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -48,7 +48,6 @@ namespace VEPROMS.CSLA.Library
|
||||
catch (Exception ex)
|
||||
{
|
||||
Database.LogException("UserSettings_GetData", ex);
|
||||
throw new DbCslaException("UserSettings_GetData", ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user