void visualTablePanel1_JoinChanged(object sender, JoinEventArgs args) { if (JoinChanged != null) { JoinChanged(this, args); } }
/// <summary> /// Join foi Eliminado /// </summary> /// <param name="sender">VisualJoin</param> /// <param name="args">Argumentos</param> void visualJoin_JoinDeleted(object sender, JoinEventArgs args) { _query.Joins.Remove(args.Join); if (sender is VisualJoin) { _visualJoins.Remove((VisualJoin)sender); } this.RenderSQL(); this.splitContainerWork.Panel1.Invalidate(); }
/// <summary> /// Ao alterar o Join /// </summary> /// <param name="args">Colunas que participam do Join</param> void _newVisualTable_JoinChanged(object sender, JoinEventArgs args) { // Se for adição de Join if (args.Action == JoinEventAction.Add) { AddVisualJoin(args.Join); } // redesenha o SQL this.RenderSQL(); this.splitContainerWork.Refresh(); }
void _tb_DragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(typeof(Column))) { Column _col = (Column)e.Data.GetData(typeof(Column)); Column _this = _columns[((TextBox)sender).Tag.ToString()]; if (_col.Table.Alias != _this.Table.Alias) { JoinEventArgs _args = new JoinEventArgs(_col, _this, JoinEventAction.Add); if (JoinChanged != null) { JoinChanged(sender, _args); } } } }
/// <summary> /// Alteração no tipo do Join /// </summary> /// <param name="sender">VisualJoin</param> /// <param name="args">Argumentos</param> void visualJoin_JoinChanged(object sender, JoinEventArgs args) { this.RenderSQL(); }