C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
@@ -16,34 +13,25 @@ namespace Volian.Controls.Library
|
||||
get { return tc.MySessionInfo; }
|
||||
set { tc.MySessionInfo = value; }
|
||||
}
|
||||
private ItemInfo _MyItemInfo;
|
||||
|
||||
public ItemInfo MyItemInfo
|
||||
public ItemInfo MyItemInfo { get; set; }
|
||||
public frmEnhanced(ItemInfo ii)
|
||||
{
|
||||
get { return _MyItemInfo; }
|
||||
set { _MyItemInfo = value; }
|
||||
}
|
||||
public frmEnhanced(ItemInfo ii)
|
||||
{
|
||||
_MyItemInfo = ii;
|
||||
MyItemInfo = ii;
|
||||
InitializeComponent();
|
||||
SetCaption();
|
||||
}
|
||||
public void OpenItem()
|
||||
{
|
||||
tc.OpenItem(_MyItemInfo);
|
||||
tc.OpenItem(MyItemInfo);
|
||||
}
|
||||
private void frmEnhanced_Load(object sender, EventArgs e)
|
||||
{
|
||||
OpenItem();
|
||||
}
|
||||
public DisplayTabControl MyDisplayTabClntrol
|
||||
{
|
||||
get { return this.tc; }
|
||||
}
|
||||
private void SetCaption()
|
||||
{
|
||||
FolderInfo myfolder = _MyItemInfo.MyDocVersion.MyFolder;
|
||||
FolderInfo myfolder = MyItemInfo.MyDocVersion.MyFolder;
|
||||
string sep = "";
|
||||
string fPath = "";
|
||||
while (myfolder.FolderID != myfolder.ParentID)
|
||||
@@ -57,19 +45,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public class VersionWindow
|
||||
{
|
||||
private int _VersionID;
|
||||
public int VersionID
|
||||
{
|
||||
get { return _VersionID; }
|
||||
set { _VersionID = value; }
|
||||
}
|
||||
private int _DBId;
|
||||
public int DBId
|
||||
{
|
||||
get { return _DBId; }
|
||||
set { _DBId = value; }
|
||||
}
|
||||
private Rectangle _MyRectangle;
|
||||
public int VersionID { get; set; }
|
||||
public int DBId { get; set; }
|
||||
private Rectangle _MyRectangle;
|
||||
public Rectangle MyRectangle
|
||||
{
|
||||
get { return _MyRectangle; }
|
||||
@@ -78,12 +56,12 @@ namespace Volian.Controls.Library
|
||||
public override string ToString()
|
||||
{
|
||||
RectangleConverter rc = new RectangleConverter();
|
||||
return string.Format("{0}~{1}", _VersionID, rc.ConvertToString(_MyRectangle));
|
||||
return string.Format("{0}~{1}", VersionID, rc.ConvertToString(_MyRectangle));
|
||||
}
|
||||
public VersionWindow(string str)
|
||||
{
|
||||
string[] parts = str.Split('~');
|
||||
_VersionID = int.Parse(parts[0]);
|
||||
VersionID = int.Parse(parts[0]);
|
||||
RectangleConverter rc = new RectangleConverter();
|
||||
_MyRectangle = (Rectangle)rc.ConvertFromString(parts[1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user