private void btViewChannels_Click(object sender, EventArgs e) { var ucAllChan = new UcAllChannels(CurrentUserId); var actionForm = new ActionForm(ucAllChan) { Text = @"Loaded channels and programms", Icon = new Icon(@"icons\download-16.ico") }; if (ParentForm != null) { ParentForm.Visible = false; actionForm.ShowDialog(); ParentForm.Visible = true; } }
private void LoadControls() { AllChannelControl = new UcAllChannels(CurrentUserId); tabPan_AllChannels.Controls.Add(AllChannelControl); }