Exemplo n.º 1
0
            public DesignedOrder(XmlElement xml, QueryDesignFrame frame)
            {
                var table = frame.FindTableFromSaveId(xml.FindElement("TableSaveId").InnerText);

                m_column = new ColWrapper(frame, table, xml.FindElement("Column").InnerText);
                this.LoadPropertiesCore(xml);
            }
Exemplo n.º 2
0
 public ConditionDesigner(Control parent, QueryDesignFrame frame)
 {
     Parent = parent;
     Frame  = frame;
     Root   = new CompoudConditionNode(this, null);
     UpdatePlacements();
 }
Exemplo n.º 3
0
 public QueryDesignJoinControl(QueryDesignFrame frame, QueryDesignTableFrame tbl1, string col1, QueryDesignTableFrame tbl2, string col2)
 {
     Initialize();
     m_leftTable  = tbl1;
     m_leftCol    = col1;
     m_rightTable = tbl2;
     m_rightCol   = col2;
     m_frame      = frame;
 }
Exemplo n.º 4
0
 public QueryDesignTableFrame(ITableStructure table, QueryDesignFrame frame, string objtype)
 {
     InitializeComponent();
     SaveId = Guid.NewGuid().ToString();
     Translating.TranslateControl(this);
     m_table    = table;
     m_frame    = frame;
     ObjectType = objtype;
     FillData();
 }
Exemplo n.º 5
0
        public static bool Run(XmlDocument context, IVirtualFile file, QueryDesignFrame designFrame, string queryCode, bool selectedDesign)
        {
            var win = new AddQueryToFavoriteForm(context, file, designFrame, queryCode);

            if (selectedDesign && win.rbtDesign.Enabled)
            {
                win.rbtDesign.Checked = true;
            }
            return(AddToFavoriteForm.RunLoop(win, win.addToFavoritesFrame1, win.UpdateFavorite));
        }
Exemplo n.º 6
0
 public DesignedColumn(QueryDesignFrame frame, DataGridViewRow row, XmlElement xml)
     : base(frame,
            frame.FindTableFromSaveId(xml.SelectSingleNode("TableSaveId").InnerText),
            xml.SelectSingleNode("ColumnName").InnerText)
 {
     m_row                = row;
     m_frame              = frame;
     m_row.Tag            = m_table;
     m_row.Cells[0].Value = m_colname;
     m_row.Cells[2].Value = m_table.GetNameTitle();
     Load(xml);
 }
Exemplo n.º 7
0
        public AddQueryToFavoriteForm(XmlDocument context, IVirtualFile file, QueryDesignFrame designFrame, string queryCode)
        {
            InitializeComponent();
            m_context     = context;
            m_file        = file;
            m_designFrame = designFrame;
            m_queryCode   = queryCode;

            rbtDesign.Enabled                 = designFrame != null && designFrame.IsDesign;
            rbtLinkToFile.Enabled             = file != null && file.DiskPath != null;
            addToFavoritesFrame1.FavoriteName = rbtLinkToFile.Enabled ? Path.GetFileNameWithoutExtension(file.DiskPath) : "SQL";;
            rbtExecute.Enabled                = context != null;
        }
Exemplo n.º 8
0
        public QueryDesignTableFrame(XmlElement xml, QueryDesignFrame frame)
        {
            InitializeComponent();
            Translating.TranslateControl(this);
            m_frame = frame;
            var tbl = new TableStructure(xml.FindElement("Structure"));

            tbl.Parent = new DatabaseStructure();
            foreach (XmlElement rx in xml.SelectNodes("Reference"))
            {
                var fk = new ForeignKey(rx.FindElement("ForeignKey"));
                fk.SetDummyTable(NameWithSchema.LoadFromXml(rx));
                tbl.AddReference(fk);
            }
            m_table = tbl;
            this.LoadPropertiesCore(xml);
            FillData();
        }
Exemplo n.º 9
0
 public QueryDesignJoinControl(XmlElement xml, QueryDesignFrame frame)
 {
     Initialize();
     m_frame = frame;
     this.LoadPropertiesCore(xml);
 }
Exemplo n.º 10
0
 public DesignedColumn(QueryDesignFrame frame, DataGridViewRow row)
     : base(frame, (QueryDesignTableFrame)row.Tag, row.Cells[0].Value.SafeToString())
 {
     m_row   = row;
     m_frame = frame;
 }
Exemplo n.º 11
0
 public ColWrapper(QueryDesignFrame frame, QueryDesignTableFrame table, string colname)
 {
     m_frame   = frame;
     m_colname = colname;
     m_table   = table;
 }
Exemplo n.º 12
0
 public DesignedJoin(QueryDesignFrame frame, QueryDesignJoinControl join)
 {
     m_join  = join;
     m_frame = frame;
 }
Exemplo n.º 13
0
 public DesignedTable(QueryDesignFrame frame, QueryDesignTableFrame table)
 {
     m_table = table;
     m_frame = frame;
 }