예제 #1
0
 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;
 }
예제 #2
0
        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);
        }
예제 #3
0
 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);
 }
예제 #4
0
        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;
            }
        }
예제 #5
0
 public Passwds(String f, MM o)
 {
     owner = o;
     load(f);
 }