Esempio n. 1
0
        private void ToolReferencesClick(object sender, EventArgs e)
        {
            var tool = (MenuItemRelation)sender;

            toolReference.Text = tool.Text;

            if (tool.View == null)
            {
                tool.View = tool.Relation.Table.CreateItemsView("", DBViewKeys.Empty, DBStatus.Actual | DBStatus.Edit | DBStatus.New | DBStatus.Error);
            }

            tool.View.DefaultParam = new QParam(LogicType.And, tool.Relation.Column, CompareType.Equal, OwnerRow.PrimaryId);
            baseColumn             = tool.Relation.Column;
            TableView = tool.View;
            loader.LoadAsync(tool.View.Query);
            //if (ReferenceClick != null)
            //    ReferenceClick(this, new TableEditReferenceEventArgs(relation));
            //else
            //{
            //    TableEditor te = new TableEditor();
            //    te.Initialize(relation.Table.CreateRowView(DBViewInitMode.None, DBStatus.Current), Selected, relation.Column, TableFormMode.RefingTable, _access);
            //    Form f = DataCtrlService.WrapControl(te);
            //    f.ShowDialog(this);
            //}
        }
Esempio n. 2
0
 protected virtual void ToolLoadClick(object sender, EventArgs e)
 {
     loader.LoadAsync();
 }