コード例 #1
0
 public ucInfoUser(FrmUser frmMain)
 {
     this.frmMain = frmMain;
     InitializeComponent();
     InitControls();
     locationlabel(ref lbName, pnavata_name);
     locationlabel(ref lbID, pnavata_name);
     locationpanel(ref panel1, pnavata_name);
     this.frmMain.Pncontaininfo.Controls.Add(this);
     this.Dock         = DockStyle.Top;
     pnaddfile.Visible = false;
 }
コード例 #2
0
 public ucVoicePanel(User user, FrmUser userForm)
 {
     InitializeComponent();
     InitPictureBox();
     this.user      = user;
     this.userForm  = userForm;
     voice          = new VoiceControl(user);
     voice.Path     = voice.GetNextPath();
     timer          = new Timer();
     timer.Tick    += Timer_Tick;
     timer.Interval = 1000;
     this.panelRecord.Controls.Add(pctRecord);
 }
コード例 #3
0
 private void InitUserForm()
 {
     userForm          = new FrmUser(user, this);
     userForm.TopLevel = false;
     userForm.Dock     = DockStyle.Fill;
 }