package com.kozen.printerhelper.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.Nullable;

import com.kozen.printerhelper.R;
import com.kozen.printerhelper.helper.KozenPrintHelper;

public class LabelActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_label);
        setMyTitle(R.string.label_title);
        setBack();
    }

    public void testOne(View view) {
        if(!KozenPrintHelper.getInstance().isLabelMode()){
            Toast.makeText(this, R.string.toast_12, Toast.LENGTH_LONG).show();
            return;
        }

        KozenPrintHelper.getInstance().printOneLabel();
    }


    public void testMore(View view) {
        if(!KozenPrintHelper.getInstance().isLabelMode()){
            Toast.makeText(this, R.string.toast_12, Toast.LENGTH_LONG).show();
            return;
        }

        KozenPrintHelper.getInstance().printMultiLabel(5);
    }
}
