public FormSetWarn(FormWarn fatherForm, string userName) { InitializeComponent(); _userName = userName; _fatherForm = fatherForm; }
private void InitView() { formStock = new FormStock(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formIn = new FormIn(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formOut = new FormOut(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formStir = new FormStir(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formWarn = new FormWarn(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formAccountMgr = new FormAccountManager() { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formLog = new FormLog() { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; formMaster = new FormMaster(_userName) { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = System.Windows.Forms.DockStyle.Fill }; this.mainPanel.Controls.Clear(); this.mainPanel.Controls.Add(formStock); formStock.Show(); }