public Form1(SqlConnection Conn, int id) { InitializeComponent(); this.DialogResult = DialogResult.Cancel; this.ID = this.m_oldid = id; Class1 c = new Class1("tbl_quests", "_Cat", this.panel1, Conn); this.m_tv = c.LoadTreePlugin(ID); }
public Form1(string tblname, string catfield, Class1 cls, SqlConnection conn, bool isReadOnly) { InitializeComponent(); TblName = tblname; CatField = catfield; MyParentClass = cls; Conn = conn; buttonItemID.Checked = DisplayID; buttonItemLevel.Checked = DisplayLevel; TblLock = new TableLock(Conn, TblName); TblLock.UnLock(); OrderLock = new TableLock(Conn, orderTable); OrderLock.UnLock(); LastVer = TblLock.GetServerLastVersion(); LastOrderVer = OrderLock.GetServerLastVersion(); this.m_isReadOnly = isReadOnly; }