public MMAdd(MM mm) { InitializeComponent(); this.mm = mm; this.TopMost = true; this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width * 3 / 4 + 55, Screen.PrimaryScreen.WorkingArea.Height / 10 + 125); textBox3.PasswordChar = mm.pChar; }
public MMSet(MM mm) { InitializeComponent(); this.mm = mm; this.TopMost = true; this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width * 3 / 4 + 10, Screen.PrimaryScreen.WorkingArea.Height / 10 + 10); textBox1.Text = mm.pds.file; load(mm); }
public MMAdd(Password p, MM mm) { np = p; InitializeComponent(); this.mm = mm; this.Text = "修改账号"; textBox3.PasswordChar = mm.pChar; textBox1.Text = p.name; textBox2.Text = p.id; textBox3.Text = p.Passwd; textBox4.Text = p.descri; this.TopMost = true; this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width * 3 / 4 + 55, Screen.PrimaryScreen.WorkingArea.Height / 10 + 125); }
private void load(MM mm) { if (mm.pChar == '\0') { comboBox1.Text = "无"; } else { comboBox1.Text = "" + mm.pChar; } if (mm.zClose) { radioButton2.Checked = true; } else { radioButton1.Checked = true; } }
public Passwds(String f, MM o) { owner = o; load(f); }