Browse Source

Cosmetics: Enlist Account -> Confirmation

Herman Schoenfeld 7 years ago
parent
commit
64fb11a84b

+ 28 - 20
src/gui/wizards/operations/UWIZEnlistAccountForSale_Confirmation.lfm

@@ -8,19 +8,19 @@ object WIZEnlistAccountForSale_Confirmation: TWIZEnlistAccountForSale_Confirmati
   ClientWidth = 511
   ClientWidth = 511
   Visible = False
   Visible = False
   object GroupBox1: TGroupBox
   object GroupBox1: TGroupBox
-    Left = 10
-    Height = 299
-    Top = 8
+    Left = 4
+    Height = 308
+    Top = 4
     Width = 490
     Width = 490
     Anchors = [akTop, akLeft, akRight, akBottom]
     Anchors = [akTop, akLeft, akRight, akBottom]
-    Caption = 'Confirm Account Sale Transaction'
-    ClientHeight = 279
+    Caption = 'Confirm Sale'
+    ClientHeight = 288
     ClientWidth = 486
     ClientWidth = 486
     TabOrder = 0
     TabOrder = 0
     object paGrid: TPanel
     object paGrid: TPanel
       Left = 8
       Left = 8
-      Height = 123
-      Top = 48
+      Height = 120
+      Top = 56
       Width = 464
       Width = 464
       Anchors = [akTop, akLeft, akRight, akBottom]
       Anchors = [akTop, akLeft, akRight, akBottom]
       BevelOuter = bvNone
       BevelOuter = bvNone
@@ -30,15 +30,17 @@ object WIZEnlistAccountForSale_Confirmation: TWIZEnlistAccountForSale_Confirmati
     object Label1: TLabel
     object Label1: TLabel
       Left = 8
       Left = 8
       Height = 15
       Height = 15
-      Top = 2
-      Width = 84
-      Caption = 'Signer Account:'
+      Top = 8
+      Width = 36
+      Caption = 'Signer'
+      Font.Style = [fsBold]
       ParentColor = False
       ParentColor = False
+      ParentFont = False
     end
     end
     object lblSgnAcc: TLabel
     object lblSgnAcc: TLabel
-      Left = 112
+      Left = 80
       Height = 15
       Height = 15
-      Top = 2
+      Top = 8
       Width = 53
       Width = 53
       Caption = 'lblSgnAcc'
       Caption = 'lblSgnAcc'
       ParentColor = False
       ParentColor = False
@@ -46,15 +48,17 @@ object WIZEnlistAccountForSale_Confirmation: TWIZEnlistAccountForSale_Confirmati
     object Label2: TLabel
     object Label2: TLabel
       Left = 8
       Left = 8
       Height = 15
       Height = 15
-      Top = 24
-      Width = 79
-      Caption = 'Seller Account:'
+      Top = 32
+      Width = 32
+      Caption = 'Seller'
+      Font.Style = [fsBold]
       ParentColor = False
       ParentColor = False
+      ParentFont = False
     end
     end
     object lblSellerAcc: TLabel
     object lblSellerAcc: TLabel
-      Left = 112
+      Left = 80
       Height = 15
       Height = 15
-      Top = 24
+      Top = 32
       Width = 61
       Width = 61
       Caption = 'lblSellerAcc'
       Caption = 'lblSellerAcc'
       ParentColor = False
       ParentColor = False
@@ -62,16 +66,20 @@ object WIZEnlistAccountForSale_Confirmation: TWIZEnlistAccountForSale_Confirmati
     object lblPayload: TLabel
     object lblPayload: TLabel
       Left = 8
       Left = 8
       Height = 15
       Height = 15
-      Top = 172
+      Top = 181
       Width = 42
       Width = 42
+      Anchors = [akLeft, akBottom]
       Caption = 'Payload'
       Caption = 'Payload'
+      Font.Style = [fsBold]
       ParentColor = False
       ParentColor = False
+      ParentFont = False
     end
     end
     object mmoPayload: TMemo
     object mmoPayload: TMemo
       Left = 8
       Left = 8
       Height = 82
       Height = 82
-      Top = 192
-      Width = 464
+      Top = 201
+      Width = 472
+      Anchors = [akLeft, akRight, akBottom]
       Enabled = False
       Enabled = False
       ScrollBars = ssBoth
       ScrollBars = ssBoth
       TabOrder = 1
       TabOrder = 1

+ 9 - 11
src/gui/wizards/operations/UWIZEnlistAccountForSale_Confirmation.pas

@@ -23,10 +23,8 @@ type
     GroupBox1: TGroupBox;
     GroupBox1: TGroupBox;
     Label1: TLabel;
     Label1: TLabel;
     Label2: TLabel;
     Label2: TLabel;
-    lblPayload: TLabel;
     lblSgnAcc: TLabel;
     lblSgnAcc: TLabel;
     lblSellerAcc: TLabel;
     lblSellerAcc: TLabel;
-    mmoPayload: TMemo;
     paGrid: TPanel;
     paGrid: TPanel;
   private
   private
     FEnlistAccountsGrid : TVisualGrid;
     FEnlistAccountsGrid : TVisualGrid;
@@ -40,7 +38,8 @@ implementation
 
 
 {$R *.lfm}
 {$R *.lfm}
 
 
-uses UAccounts, UWallet, UUserInterface, UDataSources, UCommon, UCommon.UI, Generics.Collections;
+uses UAccounts, UWallet, UUserInterface, UDataSources, UCommon, UCommon.UI,
+  Generics.Collections, UCoreUtils;
 
 
 type
 type
 
 
@@ -80,7 +79,7 @@ begin
     DataFontStyles := [fsBold];
     DataFontStyles := [fsBold];
   end;
   end;
 
 
-   with FEnlistAccountsGrid.AddColumn('Sale Price') do begin
+  with FEnlistAccountsGrid.AddColumn('Sale Price') do begin
     Binding := 'SalePriceDecimal';
     Binding := 'SalePriceDecimal';
     SortBinding := 'SalePrice';
     SortBinding := 'SalePrice';
     DisplayBinding := 'SalePrice';
     DisplayBinding := 'SalePrice';
@@ -102,13 +101,12 @@ begin
     DataAlignment := taRightJustify;
     DataAlignment := taRightJustify;
   end;
   end;
 
 
-   data := TAccountSenderDataSource.Create(FEnlistAccountsGrid);
-   data.Model := Model;
-   FEnlistAccountsGrid.DataSource := data;
-   paGrid.AddControlDockCenter(FEnlistAccountsGrid);
-   lblSgnAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.Signer.SignerAccount.account);
-   lblSellerAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.EnlistAccountForSale.SellerAccount.account);
-   mmoPayload.Lines.Text := Model.Payload.Content;
+  data := TAccountSenderDataSource.Create(FEnlistAccountsGrid);
+  data.Model := Model;
+  FEnlistAccountsGrid.DataSource := data;
+  paGrid.AddControlDockCenter(FEnlistAccountsGrid);
+  lblSgnAcc.Caption := Model.Signer.SignerAccount.DisplayText;
+  lblSellerAcc.Caption := Model.EnlistAccountForSale.SellerAccount.DisplayText;
 end;
 end;
 
 
 procedure TWIZEnlistAccountForSale_Confirmation.OnNext;
 procedure TWIZEnlistAccountForSale_Confirmation.OnNext;