Source

asprovider / Demo / TestMain.pas

Full commit
unit TestMain;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBClient, ASObjectProvider, StdCtrls, Provider, Grids, DBGrids, xmldom, Xmlxform, ASProvider,
  cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator, cxDBNavigator;

type
  TMainForm = class(TForm)
    ClientDataSet1: TClientDataSet;
    Button1: TButton;
    DBGrid1: TDBGrid;
    DataSource1: TDataSource;
    ASProvider1: TASProvider;
    cxDBNavigator1: TcxDBNavigator;
    Button2: TButton;
    ASComponentProvider1: TASComponentProvider;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MainForm: TMainForm;

implementation

uses
  CodeSiteLogging;

{$R *.dfm}

procedure TMainForm.Button1Click(Sender: TObject);
begin
  ASComponentProvider1.Open;
  ClientDataSet1.Open;
end;

procedure TMainForm.Button2Click(Sender: TObject);
begin
  ClientDataSet1.ApplyUpdates(0);
end;

procedure TMainForm.FormCreate(Sender: TObject);
begin
end;

procedure TMainForm.FormDestroy(Sender: TObject);
begin
end;

end.