Exemplo n.º 1
0
        public Form_JX3lib(string tblname, string catfield, Class1 cls, SqlConnection conn, bool isReadOnly)
        {
            InitializeComponent();

            m_strTabName = tblname;
            m_CatField = catfield;
            m_Conn = conn;
            m_ParentClass = cls;
        }
Exemplo n.º 2
0
Arquivo: Form1.cs Projeto: viticm/pap2
        public Form1(string tblname, string catfield, Class1 cls, SqlConnection conn, bool isReadOnly) 
        {
            InitializeComponent();

            m_TblName = tblname;
            m_CatField = catfield;
            m_MyParentClass = cls;
            m_Conn = conn;
            //m_buttonItemID.Checked = DisplayID;
            //m_buttonItemLevel.Checked = DisplayLevel;
            //m_TblLock = new TableLock(m_Conn, m_TblName);
            //m_TblLock.UnLock();
            ////m_OrderLock = new TableLock(m_Conn, orderTable);
            ////m_OrderLock.UnLock();
            //m_nLastVer = m_TblLock.GetServerLastVersion();
            //m_nLastOrderVer = m_OrderLock.GetServerLastVersion();
          //  m_bReadOnly = isReadOnly;
            
        }
Exemplo n.º 3
0
        public VisualEditLibEx(SqlConnection Conn, Class1 parentClass, string tabName, string RootDir, bool bImageSupport, int nFont)
        {
            InitializeComponent();

            m_bImageSupport = bImageSupport;
            m_Root = RootDir;
            m_bHasChanged = false;
            m_Parent = parentClass;
            m_strTabName = tabName;
            m_Conn = Conn;
            m_nDefFont = nFont;

            font = new FontHelper(m_Root + FontFile, m_Root + FontListFile, m_Root + ColorFile, m_Root);

            string[] FontNames = font.GetAllFontName();

            
            foreach (string strName in FontNames)
            {
                FontBox.Items.Add(strName);
            }
            FontBox.Items.Add("默认(" + m_nDefFont.ToString() + ")");

            m_nLastLength = 0;
            MarkArray = new ArrayList();
            ImageArray = new ArrayList();
            LinkArray = new ArrayList();

            defFont = font.GetFontByID(m_nDefFont);
            defColor = font.GetColorByID(m_nDefFont);
            textBox.SelectionColor = defColor;
            textBox.SelectionFont = defFont;

            textBox.Enabled = false;
            linkBox.Enabled = false;

            refreshText();
        }