Changeset 15


Ignore:
Timestamp:
Mar 19, 2013, 8:52:43 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Načítání stavu účtu se nyní provádí ručně namísto pro všechny účty automaticky.
  • Opraveno: Kódování při ukládání formátu výstupního souboru.
  • Opraveno: Přepínání vybraného účtu.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r14 r15  
    238238      ParentColor = False
    239239    end
     240    object ButtonGetState: TButton
     241      Left = 358
     242      Height = 25
     243      Top = 7
     244      Width = 112
     245      Caption = 'Get'
     246      OnClick = ButtonGetStateClick
     247      TabOrder = 0
     248    end
    240249  end
    241250end
  • trunk/Forms/UFormMain.lrt

    r12 r15  
    1919TFORMMAIN.LABEL6.CAPTION=Balance:
    2020TFORMMAIN.LABELBALANCE.CAPTION=   
     21TFORMMAIN.BUTTONGETSTATE.CAPTION=Get
  • trunk/Forms/UFormMain.pas

    r14 r15  
    1717    ButtonNew: TButton;
    1818    ButtonNew1: TButton;
     19    ButtonGetState: TButton;
    1920    ButtonSettings: TButton;
    2021    ButtonInterval: TButton;
     
    3839    SpinEditYear: TSpinEdit;
    3940    SpinEditId: TSpinEdit;
     41    procedure ButtonGetStateClick(Sender: TObject);
    4042    procedure ButtonIntervalClick(Sender: TObject);
    4143    procedure ButtonMonthlyClick(Sender: TObject);
     
    8284procedure TFormMain.ComboBoxAccountsChange(Sender: TObject);
    8385begin
     86  Core.SelectedAccountIndex := ComboBoxAccounts.ItemIndex;
    8487  if ComboBoxAccounts.ItemIndex <> -1 then
    8588    Core.CurrentAccount := TAccount(Core.Accounts[ComboBoxAccounts.ItemIndex])
    8689    else Core.CurrentAccount := nil;
    8790  LoadInterface;
    88   Core.SelectedAccountIndex := ComboBoxAccounts.ItemIndex;
    8991end;
    9092
     
    105107  SaveInterface;
    106108  Core.ADownloadInterval.Execute;
     109end;
     110
     111procedure TFormMain.ButtonGetStateClick(Sender: TObject);
     112begin
     113  if Assigned(Core.CurrentAccount) then begin
     114    Core.LoadAccount(Core.CurrentAccount);
     115    LoadInterface;
     116  end;
    107117end;
    108118
  • trunk/Languages/FioInfo.cs.po

    r14 r15  
    118118msgstr "Token"
    119119
     120#: tformmain.buttongetstate.caption
     121msgid "Get"
     122msgstr ""
     123
    120124#: tformmain.buttoninterval.caption
    121125msgctxt "TFORMMAIN.BUTTONINTERVAL.CAPTION"
  • trunk/Languages/FioInfo.po

    r14 r15  
    109109msgstr ""
    110110
     111#: tformmain.buttongetstate.caption
     112msgid "Get"
     113msgstr ""
     114
    111115#: tformmain.buttoninterval.caption
    112116msgctxt "TFORMMAIN.BUTTONINTERVAL.CAPTION"
  • trunk/UCore.pas

    r14 r15  
    224224    ApplicationInfo1.RegistryKey);
    225225  LoadFromRegistry(RegistryContext);
    226   LoadAccounts;
    227226end;
    228227
     
    317316    WriteInteger('ReportId', ReportId);
    318317    WriteString('Language', CoolTranslator1.Language.Code);
    319     WriteString('FileNameFormat', OutputFormat);
     318    WriteString('FileNameFormat', UTF8Decode(OutputFormat));
    320319    WriteInteger('SelectedAccountIndex', SelectedAccountIndex);
    321320  finally
Note: See TracChangeset for help on using the changeset viewer.