
//
// Decompiled by Jadx - 847ms
//
package My.XuanAo.BaZiYi;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.ClipboardManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.io.InputStream;
public class SoftRegDlg extends Activity implements OnClickListener {
private Button BtoClose;
private Button BtoCopy;
private Button BtoOk;
private Button BtoPaste;
private EditText EdtReg;
private EditText EdtSer;
private TextView TxtSoftReg;
private boolean m_bFlag;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(0x7f03000f);
this.m_bFlag = getIntent().getBooleanExtra("reg", false);
this.BtoOk = (Button) findViewById(0x7f0700c7);
this.BtoClose = (Button) findViewById(0x7f0700c8);
this.EdtSer = (EditText) findViewById(0x7f0700c2);
this.EdtReg = (EditText) findViewById(0x7f0700c5);
this.BtoCopy = (Button) findViewById(0x7f0700c3);
this.BtoPaste = (Button) findViewById(0x7f0700c6);
this.BtoOk.setOnClickListener(this);
this.BtoClose.setOnClickListener(this);
this.BtoCopy.setOnClickListener(this);
this.BtoPaste.setOnClickListener(this);
if (this.m_bFlag) {
this.EdtSer.setText("已注册");
this.EdtReg.setText("已注册");
} else {
this.EdtSer.setText(main.m_chkSoft.Fsoftsn);
this.EdtReg.setText("");
}
this.TxtSoftReg = (TextView) findViewById(0x7f0700c9);
ShowText(0x7f040001, this.TxtSoftReg);
UiSetTextSize();
}
private void ShowText(int iVal, TextView view) {
try {
InputStream in = getResources().openRawResource(iVal);
int i = in.available() + 10;
byte[] buf = new byte[i];
for (i--; i >= 0; i--) {
buf[i] = (byte) 0;
}
in.read(buf);
view.setText(new String(buf).replace("\r", ""));
} catch (Exception e) {
view.setText("文件丢失,无法写入!");
}
}
public void onClick(View v) {
if (v == this.BtoClose) {
setResult(0);
finish();
}
if (v == this.BtoCopy) {
((ClipboardManager) getSystemService("clipboard")).setText(this.EdtSer.getText().toString());
Toast.makeText(this, "系列号复制完成!", 1).show();
}

if (v == this.BtoPaste) {
this.EdtReg.setText(((ClipboardManager) getSystemService("clipboard")).getText().toString());
}
if (v != this.BtoOk) {
return;
}
if (this.m_bFlag) {
setResult(0);
finish();
return;
}
String stmp = this.EdtReg.getText().toString().trim();
if (stmp.length() == 15) {
int i = 0;
while (i < 15) {
if (stmp.charAt(i) < '0' || stmp.charAt(i) > '9') {
Toast.makeText(this, "请输入数字。", 1).show();
return;
}
i++;
}
main.m_chkSoft.Fregcode = stmp;
if (main.m_chkSoft.ChkNumA() && main.m_chkSoft.ChkNumB() && main.m_chkSoft.ChkNumC()) {
main.m_chkSoft.WriteRegCode(stmp);

this.m_bFlag = true;
}
Intent iet = getIntent();
iet.putExtra("reg", this.m_bFlag);
setResult(104, iet);
finish();
return;
}
Toast.makeText(this, "请输入登录号。", 1).show();
}
private void UiSetTextSize() {
int size = getSharedPreferences("xa_bazi", 0).getInt("uisize", 5);
if (size != 5) {
TextView tZhu = (TextView) findViewById(0x7f0700);
((TextView) findViewById(0x7f0700c1)).setTextSize((float) size);
tZhu.setTextSize((float) size);
this.TxtSoftReg.setTextSize((float) size);
this.BtoOk.setTextSize((float) size);
this.BtoClose.setTextSize((float) size);
this.EdtSer.setTextSize((float) size);
this.EdtReg.setTextSize((float) size);
this.BtoCopy.setTextSize((float) size);
this.BtoPaste.setTextSize((float) size);
}
}
这是java玄奥八字7.2破解版apk玄奥八字7.2破解版apk,然后搜索什么找到csoftreg这个注册类的?在哪里搜索?
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-140596-1.html
混乱继续进行下去
整组照片最怪的就是@宋茜-fx--victoria跟女鬼似的