loadFromFile() public method

AGRファイルを読み込む
public loadFromFile ( string path ) : bool
path string AGRファイルパス
return bool
Ejemplo n.º 1
0
        // AGRファイル処理
        private void processAgrFile(string filepath)
        {
            AgrFile agr = new AgrFile();

            try
            {
                if (agr.loadFromFile(filepath) == false)
                {
                    MessageBox.Show("フォーマットエラー");
                    return;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Properties.Resources.Error);
                return;
            }
            generateOfx(agr.accounts);
        }
Ejemplo n.º 2
0
        // AGRファイル処理
        private void processAgrFile(string filepath)
        {
            AgrFile agr = new AgrFile();

            try
            {
                if (agr.loadFromFile(filepath) == false)
                {
                    MessageBox.Show("フォーマットエラー");
                    return;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Properties.Resources.Error);
                return;
            }
            generateOfx(agr.accounts);
        }