private void CreateTimeCardTab(UC_3TimeCard Frm) { DocumentWindow DWTimeCard = new DocumentWindow(); DWTimeCard.Text = ""; DWTimeCard.Name = "DWTimeCard"; DWTimeCard.CloseAction = DockWindowCloseAction.CloseAndDispose; DWTimeCard.Disposed += new EventHandler(DWTimeCard_Disposed); Frm.DataAvailable+=new EventHandler(ListShow_DataAvailable); this.radDock1.AddDocument(DWTimeCard); this.radDock1.ActiveWindow = DWTimeCard; DWTimeCard.Controls.Add(Frm); Frm.Dock = DockStyle.Fill; Flag_DWTimeCard = true; Frm.Show(); } void DWTimeCard_Disposed(object sender, EventArgs e) { Flag_DWTimeCard = false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)