Compare commits
10 Commits
B2024-063-
...
f1506b9aee
| Author | SHA1 | Date | |
|---|---|---|---|
| f1506b9aee | |||
| 2805471301 | |||
| 89f55e091f | |||
| da6c47d0ff | |||
| 63cac73de3 | |||
| c8ed5b0565 | |||
| c6342fea49 | |||
| 7a3748f7e0 | |||
| 516b479c0c | |||
| c06744b3bb |
@@ -231,7 +231,6 @@ namespace VEPROMS
|
|||||||
cbxOpenAfterCreate2.Visible = oneProcedure;
|
cbxOpenAfterCreate2.Visible = oneProcedure;
|
||||||
cbxOpenAfterCreate2.Checked = false;
|
cbxOpenAfterCreate2.Checked = false;
|
||||||
cbxOverwritePDF2.Visible = oneProcedure;
|
cbxOverwritePDF2.Visible = oneProcedure;
|
||||||
cbxOverwritePDF2.Checked = true;
|
|
||||||
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
|
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
|
||||||
swtbtnGeneratePlacekeeper.Value = false;
|
swtbtnGeneratePlacekeeper.Value = false;
|
||||||
cbxGenerateConActSum.Checked = false;
|
cbxGenerateConActSum.Checked = false;
|
||||||
@@ -1225,9 +1224,6 @@ namespace VEPROMS
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void txbRevDate_Enter(object sender, EventArgs e)
|
private void txbRevDate_Enter(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
txbDate = txbRevDate;
|
txbDate = txbRevDate;
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ namespace VEPROMS
|
|||||||
|
|
||||||
private void btnPC_Click(object sender, EventArgs e)
|
private void btnPC_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (MessageBox.Show(this, "Are you sure you want to add Applicability to this Working Draft?", "Add Applicability", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Stop) == DialogResult.Yes)
|
if (MessageBox.Show(this, "Are you sure you want to add Applicability to this Working Draft?", "Add Applicability", MessageBoxButtons.YesNo, MessageBoxIcon.Stop) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
btnApplicability.Visible = true;
|
btnApplicability.Visible = true;
|
||||||
tiApplicability.Visible = true;
|
tiApplicability.Visible = true;
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace Volian.Controls.Library
|
|||||||
public string TbFSwd
|
public string TbFSwd
|
||||||
{
|
{
|
||||||
get {return tbFSWd.Text;}
|
get {return tbFSWd.Text;}
|
||||||
set { tbFSWd.Text = value; tbFSWd.Refresh(); trBarFS.Value = Convert.ToInt32(value); }
|
set { tbFSWd.Text = value; tbFSWd.Refresh(); } // trBarFS.Value = Convert.ToInt32(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string TbFSht
|
public string TbFSht
|
||||||
@@ -111,7 +111,7 @@ namespace Volian.Controls.Library
|
|||||||
get { return tbFSHt.Text; }
|
get { return tbFSHt.Text; }
|
||||||
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Constructor
|
#region Constructor
|
||||||
public DisplayTags()
|
public DisplayTags()
|
||||||
|
|||||||
@@ -256,7 +256,8 @@ namespace Volian.Controls.Library
|
|||||||
private int _origCfgHt = 0; // keep track if original size was stored in cfg
|
private int _origCfgHt = 0; // keep track if original size was stored in cfg
|
||||||
private int _origCfgWd = 0;
|
private int _origCfgWd = 0;
|
||||||
private bool _pastedNew = false; // need this for flagging newly pasted image (may need to clear cfg)
|
private bool _pastedNew = false; // need this for flagging newly pasted image (may need to clear cfg)
|
||||||
private DisplayTags _displayTags;
|
private DisplayTags _displayTags = new DisplayTags();
|
||||||
|
//House myhouse = new House();
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -316,8 +317,11 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void SetWidthsAndHeights(System.Drawing.Image img)
|
private void SetWidthsAndHeights(System.Drawing.Image img)
|
||||||
{
|
{
|
||||||
|
|
||||||
int wd = img.Width * MyStepPanel.DPI / 72; // converts from screen resolution's DPI to image's points (72/inch)
|
int wd = img.Width * MyStepPanel.DPI / 72; // converts from screen resolution's DPI to image's points (72/inch)
|
||||||
int ht = img.Height * MyStepPanel.DPI / 72;
|
int ht = img.Height * MyStepPanel.DPI / 72;
|
||||||
|
|
||||||
|
|
||||||
if (MyItemInfo.MyContent.MyImage != null) // image is null if creating new.
|
if (MyItemInfo.MyContent.MyImage != null) // image is null if creating new.
|
||||||
{
|
{
|
||||||
ImageConfig ic = new ImageConfig(MyItemInfo.MyContent.MyImage);
|
ImageConfig ic = new ImageConfig(MyItemInfo.MyContent.MyImage);
|
||||||
@@ -340,9 +344,9 @@ namespace Volian.Controls.Library
|
|||||||
_displayTags.TbFSwd = wd.ToString();
|
_displayTags.TbFSwd = wd.ToString();
|
||||||
_displayTags.TbFSht = ht.ToString();
|
_displayTags.TbFSht = ht.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// the following gets called for 'NEW' images
|
// the following gets called for 'NEW' images
|
||||||
private E_ImageSource InsType = E_ImageSource.None;
|
private E_ImageSource InsType = E_ImageSource.None;
|
||||||
public ImageItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem, ImageItem.E_ImageSource insType, DisplayTags displayTags)
|
public ImageItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem, ImageItem.E_ImageSource insType, DisplayTags displayTags)
|
||||||
|
|||||||
Reference in New Issue
Block a user