Ejemplo n.º 1
0
        internal static frmScriptEditor OpenFile(string fileName, ConnectionParams cp)
        {
            frmScriptEditor frm = Create(String.Empty, cp);

            if (!frm.OpenFile(fileName))
            {
                frm.Close();
                frm.Dispose();
                return(null);
            }
            frm.ContentPersister.ContentType = EditorContentType.File;
            return(frm);
        }
Ejemplo n.º 2
0
        public static frmScriptEditor OpenFile(string fileName, ConnectionParams cp)
        {
            frmScriptEditor frm = Create(cp);

            if (!frm.OpenFile(fileName))
            {
                _instanceCnt--;
                frm.Close();
                frm.Dispose();
                return(null);
            }
            return(frm);
        }
Ejemplo n.º 3
0
        public static frmScriptEditor OpenFile(string fileName, NodeData data)
        {
            frmScriptEditor frm = Create(data);

            if (!frm.OpenFile(fileName))
            {
                _instanceCnt--;
                frm.Close();
                frm.Dispose();
                return(null);
            }
            return(frm);
        }
Ejemplo n.º 4
0
        internal static frmScriptEditor OpenFile(string fileName, NodeData data)
        {
            ConnectionParams cp = data.ConnParams.CreateCopy();

            cp.Database = data.DBName;
            frmScriptEditor frm = Create(String.Empty, cp);

            if (!frm.OpenFile(fileName))
            {
                frm.Close();
                frm.Dispose();
                return(null);
            }
            frm.ContentPersister.ContentType = EditorContentType.File;
            return(frm);
        }