Ignore:
Timestamp:
Mar 16, 2013, 12:05:33 AM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Načtení stavu účtů při startu aplikace.
  • Opraveno: Při ukládání do registrů nepoužívat UTF-8.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r12 r13  
    8181    Core.CurrentAccount := TAccount(Core.Accounts[ComboBoxAccounts.ItemIndex])
    8282    else Core.CurrentAccount := nil;
     83  LoadInterface;
    8384end;
    8485
     
    121122  ButtonMonthly.Enabled := Assigned(Core.CurrentAccount);
    122123  ButtonNew.Enabled := Assigned(Core.CurrentAccount);
     124  if ComboBoxAccounts.ItemIndex <> -1 then begin
     125    LabelBalance.Caption := FloatToStr(TAccount(ComboBoxAccounts.Items.Objects[
     126      ComboBoxAccounts.ItemIndex]).Balance) + ' Kč';
     127  end else begin
     128    LabelBalance.Caption := '? Kč';
     129  end;
    123130end;
    124131
Note: See TracChangeset for help on using the changeset viewer.