public SchemaForm(string AScript) { InitializeComponent(); FScript = AScript; SetStyle(ControlStyles.AllPaintingInWmPaint, true); // Init controls SuspendLayout(); FDesignerPage = new Crownwood.Magic.Controls.TabPage(); FDesignerPage.Title = "Designer"; FDesignerPage.TabStop = false; FEditorPage = new Crownwood.Magic.Controls.TabPage(); FEditorPage.Title = "Editor"; FEditorPage.TabStop = false; FTabControl = new Crownwood.Magic.Controls.TabControl(); FTabControl.Height = FTabControl.TabsAreaRect.Height; FTabControl.Dock = System.Windows.Forms.DockStyle.Bottom; FTabControl.TabPages.AddRange(new Crownwood.Magic.Controls.TabPage[] { FDesignerPage, FEditorPage }); FTabControl.SelectionChanging += new EventHandler(TabSelectionChanging); FTabControl.TabStop = false; Controls.Add(FTabControl); InitializeDesigner(); ResumeLayout(false); UpdateTitle(); }
private void EditorDisposed(object sender, EventArgs e) { Editor editor = (Editor)sender; if (editor is TestEditor) { editingTests.Remove(editor.Id); } else { editingQuestionSets.Remove(editor.Id); } TabPage tp = (TabPage)editor.Tag; //locate and remove the tab page for (int i = 0; i < tabbedGroups.RootSequence.Count; ++i) { TabGroupLeaf tgl = (TabGroupLeaf)tabbedGroups.RootSequence[i]; foreach (TabPage tabPage in tgl.TabPages) { if (tabPage == tp) { tgl.TabPages.Remove(tp); return; } } } }
/// /////////////////////////////////////////////////// public CResultAErreur MAJ_Champs() { CResultAErreur result = CResultAErreur.True; if (m_bIsLock) { return(result); } foreach (KeyValuePair <Crownwood.Magic.Controls.TabPage, CCreateur2iFormulaireObjetDonnee> kv in m_tableCreateurs) { CCreateur2iFormulaireObjetDonnee createur = kv.Value; Crownwood.Magic.Controls.TabPage page = kv.Key; if (m_tablePagesInit.ContainsKey(page) && m_tablePagesInit[page]) { result = createur.MAJ_Champs(); if (!result) { return(result); } } } return(result); }
private void SetImage(Crownwood.Magic.Controls.TabPage tabPage, Image image) { if (tabPage == null) { return; } try { ImageList lst = tabPage.ImageList; if (lst != null) { tabPage.ImageIndex = -1; tabPage.ImageList = null; lst.Dispose(); } if (image != null) { lst = new ImageList(); lst.ColorDepth = ColorDepth.Depth32Bit; lst.ImageSize = new Size(16, 16); Image copie = CUtilImage.CreateImageImageResizeAvecRatio( image, lst.ImageSize, Color.FromArgb(0, 0, 0, 0)); lst.Images.Add(copie); tabPage.ImageList = lst; tabPage.ImageIndex = 0; } } catch { } }
public void Close() { TabPage[] tps = new TabPage[editingQuestionSets.Values.Count]; editingQuestionSets.Values.CopyTo(tps, 0); foreach (TabPage t in tps) { try { Editor editor = (Editor)t.Controls[0]; editor.Dispose(); } catch { } } tps = new TabPage[editingTests.Values.Count]; editingTests.Values.CopyTo(tps, 0); foreach (TabPage t in tps) { Editor editor = (Editor)t.Controls[0]; editor.Dispose(); } ApplicationController.MainForm.TabControl.TabPages.Remove(tabPage); }
/// /////////////////////////////////////////////////// public CResultAErreur MAJ_Champs() { CResultAErreur result = CResultAErreur.True; if (m_bIsLock) { return(result); } foreach (DictionaryEntry entry in m_tableCreateurs) { CCreateur2iFormulaire createur = (CCreateur2iFormulaire)entry.Value; Crownwood.Magic.Controls.TabPage page = (Crownwood.Magic.Controls.TabPage)entry.Key; if (m_tablePagesInit.ContainsKey(page) && m_tablePagesInit[page]) { result = createur.MAJ_Champs(); if (!result) { return(result); } } } return(result); }
public TabPage Add(TabPage value) { // Use base class to process actual collection operation base.List.Add(value as object); return value; }
public void Navigate(string url) { // navigates to the supplied url // Web site Windows.Controls.Html webpage = new Windows.Controls.Html(url); Crownwood.Magic.Controls.TabPage website = new Crownwood.Magic.Controls.TabPage(url, webpage); MainTabs.TabPages.Add(website); }
//--------------------------------------------------------------------------- private Crownwood.Magic.Controls.TabPage CreateOngletDefaut() { Crownwood.Magic.Controls.TabPage page = new Crownwood.Magic.Controls.TabPage("Page"); m_tableTabPageToEntreeHistorique[page] = null; m_tabs.FirstLeaf().TabPages.Add(page); m_tabs.BringToFront(); return(page); }
/// /////////////////////////////////////////////////// private void CPanelChampsCustom_SelectionChanged(object sender, EventArgs e) { Crownwood.Magic.Controls.TabPage page = SelectedTab; if (!m_bIsInitializing && page != null) { InitPageWithObjetCourant(page); } }
private void SetupPage() { Crownwood.Magic.Controls.TabPage page = null; page = new Crownwood.Magic.Controls.TabPage("dddd", new TextExtractor_PageGeneral()); page.Selected = true; tabOptions.TabPages.Add(page); }
private void m_tabs_PageContextMenu(Crownwood.Magic.Controls.TabbedGroups tg, Crownwood.Magic.Controls.TGContextMenuEventArgs e) { e.ContextMenu.MenuCommands.Add(new Crownwood.Magic.Menus.MenuCommand(I.T("New tab|101"), new EventHandler(m_menuNouvelOnglet_Click))); m_pageContextMenu = e.TabPage; MenuCommand command = new Crownwood.Magic.Menus.MenuCommand(I.T("Direct new pages to this tab|102"), new EventHandler(OnOrienterNouveauxIci)); command.Checked = m_pageRecepteurUniverselle == m_pageContextMenu; e.ContextMenu.MenuCommands.Add(command); }
private void OnOrienterNouveauxIci(object sender, EventArgs args) { if (m_pageRecepteurUniverselle != m_pageContextMenu) { m_pageRecepteurUniverselle = m_pageContextMenu; } else { m_pageRecepteurUniverselle = null; } }
//--------------------------------------------------------------------------- private bool DeleteOnglet(Crownwood.Magic.Controls.TabPage pageASupprimer) { if (pageASupprimer != null && m_tabs.FirstLeaf().TabPages.Contains(pageASupprimer)) { try { m_tabs.FirstLeaf().TabPages.Remove(pageASupprimer); } catch { } return(true); } return(false); }
protected void CreateInitialPagesGroup1() { // Access the default leaf group TabGroupLeaf tgl = tabbedGroups1.RootSequence[0] as TabGroupLeaf; // Create two pages for the leaf Crownwood.Magic.Controls.TabPage tp1 = new Crownwood.Magic.Controls.TabPage("Page" + _count++, new RichTextBox(), NextImage()); Crownwood.Magic.Controls.TabPage tp2 = new Crownwood.Magic.Controls.TabPage("Page" + _count++, new RichTextBox(), NextImage()); // Add a two pages to the leaf tgl.TabPages.Add(tp1); tgl.TabPages.Add(tp2); }
public WizardPage Add(TabPage value) { // Create a WizardPage from the TabPage WizardPage wp = new WizardPage(); wp.Title = value.Title; wp.Control = value.Control; wp.ImageIndex = value.ImageIndex; wp.ImageList = value.ImageList; wp.Icon = value.Icon; wp.Selected = value.Selected; wp.StartFocus = value.StartFocus; return Add(wp); }
protected void OnRemovedPage(int index, object value) { // Cast to correct type Crownwood.Magic.Controls.TabPage page = value as Crownwood.Magic.Controls.TabPage; // Grab the content instance of the page Content c = page.Tag as Content; // Unhook from change in its properties c.PropertyChanged -= new Content.PropChangeHandler(OnContentChanged); ResizeControl(); Recalculate(); Invalidate(); }
public void EditTest(Test test) { tabPage.Selected = true; TabPage tp = (TabPage)editingTests[test.Value.Id]; if (tp == null) { TestEditor e = new TestEditor(test); tp = CreatePage(e, test.Value.Name); editingTests[test.Value.Id] = tp; } tp.Selected = true; tp.Focus(); }
public void EditQuestionSet(QuestionSet quetionSet) { tabPage.Selected = true; TabPage tp = (TabPage)editingQuestionSets[quetionSet.Value.Id]; if (tp == null) { QuestionSetEditor e = new QuestionSetEditor(quetionSet); tp = CreatePage(e, quetionSet.Value.Name); editingQuestionSets[quetionSet.Value.Id] = tp; } tp.Selected = true; tp.Focus(); }
protected void OnAddPage(object sender, EventArgs e) { Control controlToAdd = null; switch (_count) { case 0: case 2: case 4: case 6: controlToAdd = new DummyForm(); controlToAdd.BackColor = Color.White; break; case 1: case 5: RichTextBox rtb = new RichTextBox(); rtb.Text = "The quick brown fox jumped over the lazy dog."; controlToAdd = rtb; break; case 3: controlToAdd = new DummyPanel(); controlToAdd.BackColor = Color.DarkSlateBlue; break; } // Define color that match the tabControl controlToAdd.ForeColor = tabControl.ForeColor; controlToAdd.BackColor = tabControl.BackColor; Crownwood.Magic.Controls.TabPage page; // Create a new page with the appropriate control for display, title text and image page = new Crownwood.Magic.Controls.TabPage(_strings[_count], controlToAdd, null, _count); // Make this page become selected when added page.Selected = true; tabControl.TabPages.Add(page); // Update the count for creating new pages _count++; if (_count > 6) { _count = 0; } }
public void EditPassageQuestion(PassageQuestion quetion) { tabPage.Selected = true; TabPage tp = (TabPage)editingQuestionSets[quetion.Value.Id]; if (tp == null) { PassageQuestionEditor e = new PassageQuestionEditor(quetion); tp = CreatePage(e, BuisinessObjects.TypeNames[quetion.Value.TypeId]); editingQuestionSets[quetion.Value.Id] = tp; } tp.Selected = true; tp.Focus(); }
private void ExternalDrop(Crownwood.Magic.Controls.TabbedGroups tg, Crownwood.Magic.Controls.TabGroupLeaf tgl, Crownwood.Magic.Controls.TabControl tc, Crownwood.Magic.Controls.TabbedGroups.DragProvider dp) { // Create a new tab page Crownwood.Magic.Controls.TabPage tp = NewTabPage(); // Define the text in this control (tp.Control as RichTextBox).Text = "Dragged from node '" + (string)dp.Tag + "'"; // We want the new page to become selected tp.Selected = true; // Add new page into the destination tab control tgl.TabPages.Add(tp); }
private TabPage CreatePage(Editor c, string name) { c.Disposed += new EventHandler(EditorDisposed); TabPage tp = new TabPage(); tp.Dock = DockStyle.Fill; tp.Title = name; tp.ImageIndex = c is TestEditor ? 9 : 10; c.Tag = tp; tp.Controls.Add(c); TabGroupLeaf tgl = GetFirstLeaf(); tgl.TabPages.Add(tp); return(tp); }
private void m_menuNouvelOnglet_Click(object sender, System.EventArgs e) { if (m_bEnableTabs) { Crownwood.Magic.Controls.TabPage page = new Crownwood.Magic.Controls.TabPage("Page"); m_tabs.ActiveLeaf.TabPages.Add(page); m_tableTabPageToEntreeHistorique[page] = null; CEntreeHistorique entree = null; if (m_pageContextMenu != null) { entree = (CEntreeHistorique)m_tableTabPageToEntreeHistorique[m_pageContextMenu]; } ((Crownwood.Magic.Controls.TabControl)m_tabs.ActiveLeaf.GroupControl).SelectedTab = page; if (entree != null) { AffichePage(entree, true, false); } } }
/// /////////////////////////////////////////////////// private void InitPageWithObjetCourant(Crownwood.Magic.Controls.TabPage page) { if (m_tablePagesInit.ContainsKey(page) && m_tablePagesInit[page]) { return; } if (m_tableCreateurs[page] == null) { CreateControles(page); } ERestriction restrictionFormulaire = m_tablePageToRestriction[page]; CCreateur2iFormulaire createur = (CCreateur2iFormulaire)m_tableCreateurs[page]; createur.ReadOnly = (restrictionFormulaire & ERestriction.ReadOnly) == ERestriction.ReadOnly; createur.LockEdition = m_bIsLock || (restrictionFormulaire & ERestriction.ReadOnly) == ERestriction.ReadOnly; if (createur != null) { createur.ElementEdite = m_elementEdite; } m_tablePagesInit[page] = true; }
protected void OnInsertedPage(int index, object value) { // If no page is currently selected if (_selectedIndex == -1) { // Then make the inserted page selected _selectedIndex = index; } // Cast to correct type Crownwood.Magic.Controls.TabPage page = value as Crownwood.Magic.Controls.TabPage; // Grab the content instance of the page Content c = page.Tag as Content; // Hook into change in its properties c.PropertyChanged += new Content.PropChangeHandler(OnContentChanged); ResizeControl(); Recalculate(); Invalidate(); }
/// /////////////////////////////////////////////////// private void CreateControles(Crownwood.Magic.Controls.TabPage page) { if (m_tableCreateurs.ContainsKey(page) || ElementEdite == null) { return; } C2iWnd wnd = m_tablePageTo2iWnd[page]; Panel panel = new Panel(); panel.BackColor = wnd.BackColor; panel.ForeColor = wnd.ForeColor; panel.Font = wnd.Font; panel.Location = new Point(0, 0); panel.Size = wnd.Size; panel.AutoScroll = true; page.Controls.Add(panel); panel.SuspendDrawing(); CCreateur2iFormulaireObjetDonnee createur; IObjetDonneeAIdNumerique objetDonnee = ElementEdite as IObjetDonneeAIdNumerique; if (objetDonnee != null) { createur = new CCreateur2iFormulaireObjetDonnee(objetDonnee.ContexteDonnee.IdSession); } else { createur = new CCreateur2iFormulaireObjetDonnee(CSessionClient.GetSessionUnique().IdSession); } createur.CreateControlePrincipalEtChilds(panel, wnd, new CFournisseurPropDynStd(true)); panel.ResumeDrawing(); panel.Size = page.ClientSize; m_tableCreateurs[page] = createur; page.ResumeDrawing(); panel.Dock = DockStyle.Fill; }
/// /////////////////////////////////////////////////// private void CreateControles(Crownwood.Magic.Controls.TabPage page) { if (m_tableCreateurs[page] != null || ElementEdite == null) { return; } C2iWnd wnd = m_tablePageTo2iWnd[page]; Panel panel = new Panel(); panel.BackColor = wnd.BackColor; panel.ForeColor = wnd.ForeColor; panel.Font = wnd.Font; panel.Location = new Point(0, 0); panel.Size = wnd.Size; panel.AutoScroll = true; page.Controls.Add(panel); panel.SuspendLayout(); CCreateur2iFormulaire createur; IObjetDonneeAIdNumeriqueAuto objetDonnee = ElementEdite as IObjetDonneeAIdNumeriqueAuto; if (objetDonnee != null) { createur = new CCreateur2iFormulaire(objetDonnee.ContexteDonnee.IdSession, ElementEdite, page); } else { createur = new CCreateur2iFormulaire(CSessionClient.GetSessionUnique().IdSession, ElementEdite, page); } createur.CreateChilds(panel, wnd, m_champTooltip); panel.ResumeLayout(); panel.Size = page.ClientSize; m_tableCreateurs[page] = createur; page.ResumeLayout(); panel.Dock = DockStyle.Fill; }
/// /////////////////////////////////////////////////// private void InitPageWithObjetCourant(Crownwood.Magic.Controls.TabPage page) { if (m_tablePagesInit.ContainsKey(page) && m_tablePagesInit[page]) { return; } if (!m_tableCreateurs.ContainsKey(page)) { CreateControles(page); } CCreateur2iFormulaireObjetDonnee createur = null; m_tableCreateurs.TryGetValue(page, out createur); createur.LockEdition = m_bIsLock; if (createur != null) { createur.ElementEdite = m_elementEdite; } m_tablePagesInit[page] = true; AppliqueRestrictions(m_listeRestrictions, m_gestionnaireReadOnly); }
public void Insert(int index, TabPage value) { // Use base class to process actual collection operation base.List.Insert(index, value as object); }
public void AddContentIntoTabStub(Content content, TabStub ts, int index) { // Is focus leaving the entire WindowContentTabbed control? if ((_currentWCT != null) && (_currentWCT == ts.WindowContentTabbed)) { // Remove Panel/WCT from display and stop timers RemoveDisplayedWindow(); } // Create a new tab page Crownwood.Magic.Controls.TabPage page = new Crownwood.Magic.Controls.TabPage(); // Copy across the visual properties page.Title = content.Title; page.ImageList = content.ImageList; page.ImageIndex = content.ImageIndex; // Remember reference to Content it represents page.Tag = content; // Add into the stub ts.TabPages.Insert(index, page); // Mark Content as being in AutoHide mode content.AutoHidePanel = this; content.AutoHidden = true; // Add content into the WCT of the TabStub ts.WindowContentTabbed.Contents.Insert(index, content); // Make sure this AutoHidePanel is visible if (!this.Visible) this.Show(); Invalidate(); }
public void UpdateOnglets() { if (!LockEdition) { //valide les modifs car on va tout supprimer MAJ_Champs(); } m_bIsInitializing = true; Hashtable tablePagesToHide = new Hashtable(); foreach (Crownwood.Magic.Controls.TabPage page in TabPages) { m_tablePagesInit[page] = false; tablePagesToHide[page] = true; } if (m_elementEdite == null) { return; } /* YK : On obtient la session de l'objet en cours d'édition au lieur de la session par défaut */ CSessionClient session = null; IObjetDonneeAIdNumeriqueAuto objetDonnee = m_elementEdite as IObjetDonneeAIdNumeriqueAuto; if (objetDonnee != null) { session = CSessionClient.GetSessionForIdSession(objetDonnee.ContexteDonnee.IdSession); } else { session = CSessionClient.GetSessionUnique(); } ArrayList lstFormulaires = new ArrayList(m_elementEdite.GetFormulaires()); lstFormulaires.Sort(new CSorterFormulaires()); //Lit les champs liés et leurs valeurs StringBuilder bl = new StringBuilder(); foreach (CFormulaire formulaire in lstFormulaires) { bl.Append(formulaire.Id); bl.Append(","); } if (bl.Length > 0) { bl.Remove(bl.Length - 1, 1); CListeObjetsDonnees lst = new CListeObjetsDonnees(((CFormulaire)lstFormulaires[0]).ContexteDonnee, typeof(CFormulaire)); lst.Filtre = new CFiltreData(CFormulaire.c_champId + " in (" + bl.ToString() + ")"); lst.AssureLectureFaite(); lst.ReadDependances("RelationsChamps", "RelationsChamps.Champ", "RelationsChamps.Champ.ListeValeurs"); } foreach (CFormulaire formulaire in lstFormulaires) { CRestrictionUtilisateurSurType restriction = new CRestrictionUtilisateurSurType(m_elementEdite.GetType()); if (session.GetInfoUtilisateur() != null) { int?nIdVersion = null; IObjetAContexteDonnee objetAContexte = m_elementEdite as IObjetAContexteDonnee; if (objetAContexte != null) { nIdVersion = objetAContexte.ContexteDonnee.IdVersionDeTravail; } restriction = session.GetInfoUtilisateur().GetRestrictionsSurObjet(m_elementEdite, nIdVersion); } ERestriction restrictionFormulaire = restriction.GetRestriction(formulaire.CleRestriction); if ((restrictionFormulaire & ERestriction.Hide) != ERestriction.Hide) { Crownwood.Magic.Controls.TabPage page = (Crownwood.Magic.Controls.TabPage)m_tableIdFormulaireToTabPage[formulaire.Id]; CCreateur2iFormulaire createur = null; if (page == null) { C2iWndFenetre wnd = formulaire.Formulaire; if (wnd != null) { page = new Crownwood.Magic.Controls.TabPage(wnd.Text); page.SuspendLayout(); if (wnd.Text == "") { page.Title = formulaire.Libelle; } TabPages.Add(page); m_tableCreateurs[page] = null; m_tablePageTo2iWnd[page] = wnd; m_tableIdFormulaireToTabPage[formulaire.Id] = page; } } else { createur = (CCreateur2iFormulaire)m_tableCreateurs[page]; } if (page != null) { m_tablePageToRestriction[page] = restrictionFormulaire; if (!TabPages.Contains(page)) { TabPages.Add(page); } tablePagesToHide.Remove(page); } } } /*CChampCustom[] champs = ElementEdite.GetChampsHorsFormulaire(); * if ( champs.Length != 0 ) * { * UpdatePageChamps( nRest ); * if ( m_pageGrid != null ) * tablePagesToHide.Remove(m_pageGrid); * }*/ foreach (Crownwood.Magic.Controls.TabPage pageToDel in tablePagesToHide.Keys) { TabPages.Remove(pageToDel); } if (TabPages.Count == 1) { this.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.HideAlways; } else { this.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways; } if (SelectedTab != null) { InitPageWithObjetCourant(SelectedTab); } m_bIsInitializing = false; }
public DrawTab(Crownwood.Magic.Controls.TabPage tabPage, Rectangle drawRect, int index) { _index = index; _tabPage = tabPage; _drawRect = drawRect; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.MainTabs = new Crownwood.Magic.Controls.TabControl(); this.GameTab = new Crownwood.Magic.Controls.TabPage(); this.RenderTarget = new System.Windows.Forms.Panel(); this.MainMenu = new Crownwood.Magic.Menus.MenuControl(); this.FileMenu = new Crownwood.Magic.Menus.MenuCommand(); this.FileSave = new Crownwood.Magic.Menus.MenuCommand(); this.FileQuit = new Crownwood.Magic.Menus.MenuCommand(); this.ViewMenu = new Crownwood.Magic.Menus.MenuCommand(); this.ViewLog = new Crownwood.Magic.Menus.MenuCommand(); this.ViewConnect = new Crownwood.Magic.Menus.MenuCommand(); this.ViewWhoList = new Crownwood.Magic.Menus.MenuCommand(); this.ViewSkillList = new Crownwood.Magic.Menus.MenuCommand(); this.ViewChat = new Crownwood.Magic.Menus.MenuCommand(); this.ViewCommand = new Crownwood.Magic.Menus.MenuCommand(); this.ViewFirstPerson = new Crownwood.Magic.Menus.MenuCommand(); this.ViewChaseCam = new Crownwood.Magic.Menus.MenuCommand(); this.ViewMiniMap = new Crownwood.Magic.Menus.MenuCommand(); this.ViewOptions = new Crownwood.Magic.Menus.MenuCommand(); this.ViewAdmin = new Crownwood.Magic.Menus.MenuCommand(); this.MainStatus = new System.Windows.Forms.StatusBar(); this.AreaInformation = new System.Windows.Forms.StatusBarPanel(); this.Information = new System.Windows.Forms.StatusBarPanel(); this.Coords = new System.Windows.Forms.StatusBarPanel(); this.GameTab.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.AreaInformation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Information)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Coords)).BeginInit(); this.SuspendLayout(); // // MainTabs // this.MainTabs.Dock = System.Windows.Forms.DockStyle.Fill; this.MainTabs.Location = new System.Drawing.Point(2, 27); this.MainTabs.Name = "MainTabs"; this.MainTabs.SelectedIndex = 0; this.MainTabs.SelectedTab = this.GameTab; this.MainTabs.Size = new System.Drawing.Size(888, 715); this.MainTabs.TabIndex = 0; this.MainTabs.TabPages.AddRange(new Crownwood.Magic.Controls.TabPage[] { this.GameTab}); // // GameTab // this.GameTab.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.GameTab.Controls.Add(this.RenderTarget); this.GameTab.Location = new System.Drawing.Point(0, 0); this.GameTab.Name = "GameTab"; this.GameTab.Size = new System.Drawing.Size(888, 690); this.GameTab.TabIndex = 0; this.GameTab.Title = "Game"; // // RenderTarget // this.RenderTarget.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.RenderTarget.Location = new System.Drawing.Point(0, 0); this.RenderTarget.Name = "RenderTarget"; this.RenderTarget.Size = new System.Drawing.Size(782, 427); this.RenderTarget.TabIndex = 1; // // MainMenu // this.MainMenu.AnimateStyle = Crownwood.Magic.Menus.Animation.System; this.MainMenu.AnimateTime = 100; this.MainMenu.Cursor = System.Windows.Forms.Cursors.Arrow; this.MainMenu.Direction = Crownwood.Magic.Common.Direction.Horizontal; this.MainMenu.Dock = System.Windows.Forms.DockStyle.Top; this.MainMenu.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World); this.MainMenu.HighlightTextColor = System.Drawing.SystemColors.MenuText; this.MainMenu.Location = new System.Drawing.Point(2, 2); this.MainMenu.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this.FileMenu, this.ViewMenu}); this.MainMenu.Name = "MainMenu"; this.MainMenu.Size = new System.Drawing.Size(888, 25); this.MainMenu.Style = Crownwood.Magic.Common.VisualStyle.IDE; this.MainMenu.TabIndex = 0; this.MainMenu.TabStop = false; // // FileMenu // this.FileMenu.Description = "The File menu"; this.FileMenu.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this.FileSave, this.FileQuit}); this.FileMenu.Text = "&File"; // // FileSave // this.FileSave.Description = "MenuItem"; this.FileSave.Text = "Save"; this.FileSave.Click += new System.EventHandler(this.FileSave_Click); // // FileQuit // this.FileQuit.Description = "MenuItem"; this.FileQuit.Text = "Quit"; this.FileQuit.Click += new System.EventHandler(this.FileQuit_Click); // // ViewMenu // this.ViewMenu.Description = "MenuItem"; this.ViewMenu.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this.ViewLog, this.ViewConnect, this.ViewWhoList, this.ViewSkillList, this.ViewChat, this.ViewCommand, this.ViewFirstPerson, this.ViewChaseCam, this.ViewMiniMap, this.ViewOptions, this.ViewAdmin}); this.ViewMenu.Text = "&View"; // // ViewLog // this.ViewLog.Description = "MenuItem"; this.ViewLog.Text = "Log"; this.ViewLog.Click += new System.EventHandler(this.ViewLog_Click); // // ViewConnect // this.ViewConnect.Description = "MenuItem"; this.ViewConnect.Text = "Connect"; this.ViewConnect.Click += new System.EventHandler(this.ViewConnect_Click); // // ViewWhoList // this.ViewWhoList.Description = "MenuItem"; this.ViewWhoList.Text = "Who"; this.ViewWhoList.Click += new System.EventHandler(this.ViewWhoList_Click); // // ViewSkillList // this.ViewSkillList.Description = "MenuItem"; this.ViewSkillList.Text = "Skills"; this.ViewSkillList.Click += new System.EventHandler(this.ViewSkillList_Click); // // ViewChat // this.ViewChat.Description = "View Chat"; this.ViewChat.Text = "Chat"; this.ViewChat.Click += new System.EventHandler(this.ViewChat_Click); // // ViewCommand // this.ViewCommand.Description = "View Command"; this.ViewCommand.Text = "Command"; this.ViewCommand.Click += new System.EventHandler(this.ViewCommand_Click); // // ViewFirstPerson // this.ViewFirstPerson.Description = "First Person Mode"; this.ViewFirstPerson.Text = "First Person Mode"; this.ViewFirstPerson.Click += new System.EventHandler(this.ViewFirstPerson_Click); // // ViewChaseCam // this.ViewChaseCam.Description = "Chase Camera"; this.ViewChaseCam.Text = "Chase Camera"; this.ViewChaseCam.Click += new System.EventHandler(this.ViewChaseCam_Click); // // ViewMiniMap // this.ViewMiniMap.Description = "MenuItem"; this.ViewMiniMap.Text = "Mini Map"; this.ViewMiniMap.Click += new System.EventHandler(this.ViewMiniMap_Click); // // ViewOptions // this.ViewOptions.Description = "Options"; this.ViewOptions.Text = "Options"; this.ViewOptions.Click += new System.EventHandler(this.ViewOptions_Click); // // ViewAdmin // this.ViewAdmin.Description = "ViewAdmin"; this.ViewAdmin.Text = "ViewAdmin"; this.ViewAdmin.Click += new System.EventHandler(this.ViewAdmin_Click); // // MainStatus // this.MainStatus.Location = new System.Drawing.Point(2, 742); this.MainStatus.Name = "MainStatus"; this.MainStatus.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.AreaInformation, this.Information, this.Coords}); this.MainStatus.ShowPanels = true; this.MainStatus.Size = new System.Drawing.Size(888, 40); this.MainStatus.TabIndex = 1; // // AreaInformation // this.AreaInformation.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.AreaInformation.Name = "AreaInformation"; this.AreaInformation.Width = 10; // // Information // this.Information.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.Information.Name = "Information"; this.Information.Text = "statusBarPanel1"; this.Information.Width = 851; // // Coords // this.Coords.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.Coords.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.Coords.Name = "Coords"; this.Coords.Width = 10; // // Main // this.AutoScaleBaseSize = new System.Drawing.Size(6, 16); this.ClientSize = new System.Drawing.Size(892, 784); this.Controls.Add(this.MainTabs); this.Controls.Add(this.MainMenu); this.Controls.Add(this.MainStatus); this.Name = "Main"; this.Padding = new System.Windows.Forms.Padding(2); this.Text = ""; this.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing); this.Load += new System.EventHandler(this.Load_Form); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Main_KeyDown); this.GameTab.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.AreaInformation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Information)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Coords)).EndInit(); this.ResumeLayout(false); }
public void AddContentsAsGroup(ContentCollection contents, int index) { // Create new TabStub to represent the Contents TabStub ts = new TabStub(_manager.Style); // Set manager requested settings ts.Font = _manager.CaptionFont; ts.BackColor = _manager.BackColor; ts.ForeColor = _manager.InactiveTextColor; // Hook into events ts.PageOver += new TabStub.TabStubIndexHandler(OnPageOver); ts.PageClicked += new TabStub.TabStubIndexHandler(OnPageClicked); ts.PagesLeave += new TabStub.TabStubHandler(OnPagesLeave); // Add a page for each Content instance foreach(Content c in contents) { // Create page object Crownwood.Magic.Controls.TabPage page = new Crownwood.Magic.Controls.TabPage(); // Copy across the visual properties page.Title = c.Title; page.ImageList = c.ImageList; page.ImageIndex = c.ImageIndex; // Remember reference to Content it represents page.Tag = c; // Add into the stub ts.TabPages.Add(page); // Mark Content as being in AutoHide mode c.AutoHidePanel = this; c.AutoHidden = true; } State windowState = State.DockLeft; // Define stub settings based on our docking position switch(this.Dock) { case DockStyle.Left: windowState = State.DockLeft; ts.Edging = Edge.Left; ts.Dock = DockStyle.Top; break; case DockStyle.Right: windowState = State.DockRight; ts.Edging = Edge.Right; ts.Dock = DockStyle.Top; break; case DockStyle.Top: windowState = State.DockTop; ts.Edging = Edge.Top; ts.Dock = DockStyle.Left; break; case DockStyle.Bottom: windowState = State.DockBottom; ts.Edging = Edge.Bottom; ts.Dock = DockStyle.Left; break; } // Add stub into the view Controls.Add(ts); // Set correct new position Controls.SetChildIndex(ts, index); // Each TabStub has a WCT created and ready to be shown when needed WindowContentTabbed wct = _manager.CreateWindowForContent(null, new EventHandler(OnPageClose), null, new EventHandler(OnPageAutoHide), new ContextHandler(OnPageContextMenu)) as WindowContentTabbed; // Add each Content instance in turn foreach(Content c in contents) wct.Contents.Add(c); // By default the first Content added to a WCT will define the size // of the WCT control. We need to override this to use the AutoHideSize // from the first Content instead. wct.Size = contents[0].AutoHideSize; // Ensure Window caption bar reflects correct docking status wct.State = windowState; // Inform Window it should not allow user initiated redocking wct.RedockAllowed = false; // Hide tab selection from user wct.TabControl.HideTabsMode = Magic.Controls.TabControl.HideTabsModes.HideAlways; // Associate WCT with matching TabStub ts.WindowContentTabbed = wct; // Make sure this AutoHidePanel is visible if (!this.Visible) this.Show(); Invalidate(); }
protected override string Register(MemberInfo mi, object target) { if (target.GetType().IsSubclassOf(typeof(System.Windows.Forms.Control))) { Icon iconObject = FindIcon(); string realTitle = TitleInternal; if (realTitle.Length > 12) realTitle = realTitle.Remove(12); TabPage page = new TabPage(realTitle, (System.Windows.Forms.Control)target, iconObject); Core.GuiThread.InsertTab(position, page); return String.Format("Window tab '{0}' added.", title); } else { throw new RuntimeException("PhoenixWindowTabPageAttribute can be used only on types inherited from System.Windows.Forms.Control."); } }
public void Remove(TabPage value) { // Use base class to process actual collection operation base.List.Remove(value as object); }
public void AddRange(TabPage[] values) { // Use existing method to add each array entry foreach(TabPage page in values) Add(page); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormDownloads)); this.panel5 = new System.Windows.Forms.Panel(); this.paneleLink = new System.Windows.Forms.Panel(); this.label4 = new System.Windows.Forms.Label(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonAdd = new System.Windows.Forms.Button(); this.textBoxeLink = new System.Windows.Forms.TextBox(); this.downloadList = new eLePhant.Client.downloadsListView(); this.panel7 = new System.Windows.Forms.Panel(); this.buttonPasteeLink = new System.Windows.Forms.Button(); this.buttonAddeLink = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.tabControlFilter = new Crownwood.Magic.Controls.TabControl(); this.contextMenuFilter = new System.Windows.Forms.ContextMenu(); this.menuItemShowCount = new System.Windows.Forms.MenuItem(); this.menuItemShowTotalSizes = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItemAutoSort = new System.Windows.Forms.MenuItem(); this.tabPageAll = new Crownwood.Magic.Controls.TabPage(); this.tabPageStarted = new Crownwood.Magic.Controls.TabPage(); this.tabPageStopped = new Crownwood.Magic.Controls.TabPage(); this.panel6 = new System.Windows.Forms.Panel(); this.eLePhantButton1 = new eLePhant.Interface.eLePhantButton(this.components); this.imageListMaximize = new System.Windows.Forms.ImageList(this.components); this.panel9 = new System.Windows.Forms.Panel(); this.tabControlDetails = new Crownwood.Magic.Controls.TabControl(); this.tabPageDetails = new Crownwood.Magic.Controls.TabPage(); this.buttonOpenFolder = new System.Windows.Forms.Button(); this.tx_fileName = new System.Windows.Forms.TextBox(); this.tx_completeName = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.panel_fileDetails = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel(); this.groupBoxMaxSources = new System.Windows.Forms.GroupBox(); this.textBoxMaxSources = new System.Windows.Forms.TextBox(); this.radioButtonSpecificMaxSources = new System.Windows.Forms.RadioButton(); this.radioButtonUseGlobalMaxSources = new System.Windows.Forms.RadioButton(); this.textBoxCompletedAt = new System.Windows.Forms.TextBox(); this.labelCompletedAt = new System.Windows.Forms.Label(); this.labelSessionFileRateDO = new System.Windows.Forms.Label(); this.labelSessionFileRateUP = new System.Windows.Forms.Label(); this.labelSessionFileDO = new System.Windows.Forms.Label(); this.labelSessionFileUP = new System.Windows.Forms.Label(); this.FileInspector = new eLePhant.Interface.eLePhantInspector(); this.imageListIcons = new System.Windows.Forms.ImageList(this.components); this.tabPageLists = new Crownwood.Magic.Controls.TabPage(); this.listViewNames = new eLePhant.Client.fileNamesListView(this.components); this.buttonSetCommet = new System.Windows.Forms.Button(); this.textBoxComment = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.listViewComments = new eLePhant.Client.commentsListView(this.components); this.buttonRename = new System.Windows.Forms.Button(); this.textBoxName = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.tabPageSources = new Crownwood.Magic.Controls.TabPage(); this.sourcesList = new eLePhant.Client.sourcesListView(this.components); this.splitter1 = new System.Windows.Forms.Splitter(); this.imageListMinimize = new System.Windows.Forms.ImageList(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.panel5.SuspendLayout(); this.paneleLink.SuspendLayout(); this.panel7.SuspendLayout(); this.panel6.SuspendLayout(); this.panel9.SuspendLayout(); this.tabPageDetails.SuspendLayout(); this.panel1.SuspendLayout(); this.groupBoxMaxSources.SuspendLayout(); this.tabPageLists.SuspendLayout(); this.tabPageSources.SuspendLayout(); this.SuspendLayout(); // // panel5 // this.panel5.Controls.Add(this.paneleLink); this.panel5.Controls.Add(this.downloadList); this.panel5.Controls.Add(this.panel7); this.panel5.Dock = System.Windows.Forms.DockStyle.Top; this.panel5.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.panel5.Location = new System.Drawing.Point(0, 0); this.panel5.Name = "panel5"; this.panel5.Size = new System.Drawing.Size(720, 184); this.panel5.TabIndex = 3; // // paneleLink // this.paneleLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.paneleLink.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.paneleLink.Controls.Add(this.label4); this.paneleLink.Controls.Add(this.buttonCancel); this.paneleLink.Controls.Add(this.buttonAdd); this.paneleLink.Controls.Add(this.textBoxeLink); this.paneleLink.Location = new System.Drawing.Point(200, 32); this.paneleLink.Name = "paneleLink"; this.paneleLink.Size = new System.Drawing.Size(512, 26); this.paneleLink.TabIndex = 2; this.paneleLink.Visible = false; // // label4 // this.label4.Location = new System.Drawing.Point(8, 4); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(34, 16); this.label4.TabIndex = 5; this.label4.Text = "eLink:"; // // buttonCancel // this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonCancel.Location = new System.Drawing.Point(443, 2); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(61, 21); this.buttonCancel.TabIndex = 4; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonAdd // this.buttonAdd.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonAdd.Location = new System.Drawing.Point(379, 2); this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.Size = new System.Drawing.Size(61, 21); this.buttonAdd.TabIndex = 3; this.buttonAdd.Text = "Add"; this.buttonAdd.Click += new System.EventHandler(this.button2_Click); // // textBoxeLink // this.textBoxeLink.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxeLink.Location = new System.Drawing.Point(48, 3); this.textBoxeLink.Name = "textBoxeLink"; this.textBoxeLink.Size = new System.Drawing.Size(328, 20); this.textBoxeLink.TabIndex = 0; this.textBoxeLink.Text = ""; // // downloadList // this.downloadList.AllowColumnReorder = true; this.downloadList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.downloadList.AutoArrange = false; this.downloadList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.downloadList.DefaultCustomDraw = true; this.downloadList.FullRowSelect = true; this.downloadList.FullyCustomHeader = false; this.downloadList.HideSelection = false; this.downloadList.IncreaseHeaderHeight = 0; this.downloadList.Location = new System.Drawing.Point(8, 32); this.downloadList.Name = "downloadList"; this.downloadList.Size = new System.Drawing.Size(704, 152); this.downloadList.sortColumn = -1; this.downloadList.TabIndex = 1; this.downloadList.View = System.Windows.Forms.View.Details; this.downloadList.DoubleClick += new System.EventHandler(this.downloadList_DoubleClick); this.downloadList.SelectedIndexChanged += new System.EventHandler(this.downloadList_SelectedIndexChanged); // // panel7 // this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel7.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel7.Controls.Add(this.buttonPasteeLink); this.panel7.Controls.Add(this.buttonAddeLink); this.panel7.Controls.Add(this.label1); this.panel7.Controls.Add(this.tabControlFilter); this.panel7.Location = new System.Drawing.Point(8, 6); this.panel7.Name = "panel7"; this.panel7.Size = new System.Drawing.Size(704, 27); this.panel7.TabIndex = 0; // // buttonPasteeLink // this.buttonPasteeLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonPasteeLink.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonPasteeLink.Location = new System.Drawing.Point(616, 2); this.buttonPasteeLink.Name = "buttonPasteeLink"; this.buttonPasteeLink.Size = new System.Drawing.Size(80, 21); this.buttonPasteeLink.TabIndex = 3; this.buttonPasteeLink.Text = "Paste eLink"; this.buttonPasteeLink.Click += new System.EventHandler(this.buttonPasteeLink_Click); // // buttonAddeLink // this.buttonAddeLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonAddeLink.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonAddeLink.Location = new System.Drawing.Point(534, 2); this.buttonAddeLink.Name = "buttonAddeLink"; this.buttonAddeLink.Size = new System.Drawing.Size(80, 21); this.buttonAddeLink.TabIndex = 2; this.buttonAddeLink.Text = "Add eLink"; this.buttonAddeLink.Click += new System.EventHandler(this.buttonAddeLink_Click); // // label1 // this.label1.Location = new System.Drawing.Point(8, 5); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(48, 16); this.label1.TabIndex = 1; this.label1.Text = "Filter:"; // // tabControlFilter // this.tabControlFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControlFilter.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.tabControlFilter.ButtonActiveColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tabControlFilter.ButtonInactiveColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tabControlFilter.ContextMenu = this.contextMenuFilter; this.tabControlFilter.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.tabControlFilter.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways; this.tabControlFilter.HotTextColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.tabControlFilter.Location = new System.Drawing.Point(56, 1); this.tabControlFilter.Name = "tabControlFilter"; this.tabControlFilter.SelectedIndex = 0; this.tabControlFilter.SelectedTab = this.tabPageAll; this.tabControlFilter.Size = new System.Drawing.Size(472, 26); this.tabControlFilter.TabIndex = 0; this.tabControlFilter.TabPages.AddRange(new Crownwood.Magic.Controls.TabPage[] { this.tabPageAll, this.tabPageStarted, this.tabPageStopped}); this.tabControlFilter.TextColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.tabControlFilter.SelectionChanged += new System.EventHandler(this.tabControlFilter_SelectionChanged); // // contextMenuFilter // this.contextMenuFilter.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemShowCount, this.menuItemShowTotalSizes, this.menuItem1, this.menuItemAutoSort}); // // menuItemShowCount // this.menuItemShowCount.Checked = true; this.menuItemShowCount.Index = 0; this.menuItemShowCount.Text = "Show count"; // // menuItemShowTotalSizes // this.menuItemShowTotalSizes.Checked = true; this.menuItemShowTotalSizes.Index = 1; this.menuItemShowTotalSizes.Text = "Show total sizes"; // // menuItem1 // this.menuItem1.Index = 2; this.menuItem1.Text = "-"; // // menuItemAutoSort // this.menuItemAutoSort.Index = 3; this.menuItemAutoSort.Text = ""; // // tabPageAll // this.tabPageAll.Location = new System.Drawing.Point(0, 0); this.tabPageAll.Name = "tabPageAll"; this.tabPageAll.Size = new System.Drawing.Size(472, 1); this.tabPageAll.TabIndex = 2; this.tabPageAll.Title = "All"; // // tabPageStarted // this.tabPageStarted.Location = new System.Drawing.Point(0, 0); this.tabPageStarted.Name = "tabPageStarted"; this.tabPageStarted.Selected = false; this.tabPageStarted.Size = new System.Drawing.Size(472, 1); this.tabPageStarted.TabIndex = 0; this.tabPageStarted.Title = "Started"; // // tabPageStopped // this.tabPageStopped.Location = new System.Drawing.Point(0, 0); this.tabPageStopped.Name = "tabPageStopped"; this.tabPageStopped.Selected = false; this.tabPageStopped.Size = new System.Drawing.Size(472, 1); this.tabPageStopped.TabIndex = 1; this.tabPageStopped.Title = "Stopped"; // // panel6 // this.panel6.Controls.Add(this.eLePhantButton1); this.panel6.Controls.Add(this.panel9); this.panel6.Dock = System.Windows.Forms.DockStyle.Fill; this.panel6.Location = new System.Drawing.Point(0, 192); this.panel6.Name = "panel6"; this.panel6.Size = new System.Drawing.Size(720, 248); this.panel6.TabIndex = 5; // // eLePhantButton1 // this.eLePhantButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.eLePhantButton1.BackColor = System.Drawing.Color.Transparent; this.eLePhantButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.eLePhantButton1.ImageIndex = 0; this.eLePhantButton1.ImageList = this.imageListMaximize; this.eLePhantButton1.Location = new System.Drawing.Point(672, -5); this.eLePhantButton1.Name = "eLePhantButton1"; this.eLePhantButton1.Size = new System.Drawing.Size(34, 13); this.eLePhantButton1.TabIndex = 7; this.eLePhantButton1.Click += new System.EventHandler(this.eLePhantButton1_Click); // // imageListMaximize // this.imageListMaximize.ImageSize = new System.Drawing.Size(34, 9); this.imageListMaximize.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMaximize.ImageStream"))); this.imageListMaximize.TransparentColor = System.Drawing.Color.Transparent; // // panel9 // this.panel9.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel9.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel9.Controls.Add(this.tabControlDetails); this.panel9.Location = new System.Drawing.Point(8, 8); this.panel9.Name = "panel9"; this.panel9.Size = new System.Drawing.Size(704, 232); this.panel9.TabIndex = 2; // // tabControlDetails // this.tabControlDetails.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.tabControlDetails.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControlDetails.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways; this.tabControlDetails.Location = new System.Drawing.Point(0, 0); this.tabControlDetails.Name = "tabControlDetails"; this.tabControlDetails.PositionTop = true; this.tabControlDetails.SelectedIndex = 0; this.tabControlDetails.SelectedTab = this.tabPageDetails; this.tabControlDetails.Size = new System.Drawing.Size(702, 230); this.tabControlDetails.TabIndex = 0; this.tabControlDetails.TabPages.AddRange(new Crownwood.Magic.Controls.TabPage[] { this.tabPageDetails, this.tabPageLists, this.tabPageSources}); // // tabPageDetails // this.tabPageDetails.Controls.Add(this.buttonOpenFolder); this.tabPageDetails.Controls.Add(this.tx_fileName); this.tabPageDetails.Controls.Add(this.tx_completeName); this.tabPageDetails.Controls.Add(this.label6); this.tabPageDetails.Controls.Add(this.label5); this.tabPageDetails.Controls.Add(this.panel_fileDetails); this.tabPageDetails.Controls.Add(this.panel1); this.tabPageDetails.ImageIndex = 0; this.tabPageDetails.ImageList = this.imageListIcons; this.tabPageDetails.Location = new System.Drawing.Point(0, 0); this.tabPageDetails.Name = "tabPageDetails"; this.tabPageDetails.Size = new System.Drawing.Size(702, 205); this.tabPageDetails.TabIndex = 2; this.tabPageDetails.Title = "Details"; // // buttonOpenFolder // this.buttonOpenFolder.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonOpenFolder.Image = ((System.Drawing.Image)(resources.GetObject("buttonOpenFolder.Image"))); this.buttonOpenFolder.Location = new System.Drawing.Point(356, 20); this.buttonOpenFolder.Name = "buttonOpenFolder"; this.buttonOpenFolder.Size = new System.Drawing.Size(28, 19); this.buttonOpenFolder.TabIndex = 27; this.toolTip1.SetToolTip(this.buttonOpenFolder, "Open folder"); this.buttonOpenFolder.Click += new System.EventHandler(this.buttonOpenFolder_Click); // // tx_fileName // this.tx_fileName.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.tx_fileName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tx_fileName.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.tx_fileName.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.tx_fileName.Location = new System.Drawing.Point(85, 2); this.tx_fileName.Name = "tx_fileName"; this.tx_fileName.ReadOnly = true; this.tx_fileName.Size = new System.Drawing.Size(299, 19); this.tx_fileName.TabIndex = 25; this.tx_fileName.Text = ""; // // tx_completeName // this.tx_completeName.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.tx_completeName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tx_completeName.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.tx_completeName.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.tx_completeName.Location = new System.Drawing.Point(85, 20); this.tx_completeName.Name = "tx_completeName"; this.tx_completeName.ReadOnly = true; this.tx_completeName.Size = new System.Drawing.Size(273, 19); this.tx_completeName.TabIndex = 24; this.tx_completeName.Text = ""; // // label6 // this.label6.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(247))); this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.label6.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label6.ForeColor = System.Drawing.Color.Black; this.label6.Location = new System.Drawing.Point(5, 20); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(81, 19); this.label6.TabIndex = 3; this.label6.Text = "File:"; // // label5 // this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(247))); this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.label5.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label5.ForeColor = System.Drawing.Color.Black; this.label5.Location = new System.Drawing.Point(5, 2); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(81, 19); this.label5.TabIndex = 2; this.label5.Text = "File Name:"; // // panel_fileDetails // this.panel_fileDetails.AutoScroll = true; this.panel_fileDetails.Font = new System.Drawing.Font("Tahoma", 7F); this.panel_fileDetails.Location = new System.Drawing.Point(5, 38); this.panel_fileDetails.Name = "panel_fileDetails"; this.panel_fileDetails.Size = new System.Drawing.Size(379, 161); this.panel_fileDetails.TabIndex = 23; // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.AutoScroll = true; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.groupBoxMaxSources); this.panel1.Controls.Add(this.textBoxCompletedAt); this.panel1.Controls.Add(this.labelCompletedAt); this.panel1.Controls.Add(this.labelSessionFileRateDO); this.panel1.Controls.Add(this.labelSessionFileRateUP); this.panel1.Controls.Add(this.labelSessionFileDO); this.panel1.Controls.Add(this.labelSessionFileUP); this.panel1.Controls.Add(this.FileInspector); this.panel1.Location = new System.Drawing.Point(390, 3); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(307, 197); this.panel1.TabIndex = 26; // // groupBoxMaxSources // this.groupBoxMaxSources.Controls.Add(this.textBoxMaxSources); this.groupBoxMaxSources.Controls.Add(this.radioButtonSpecificMaxSources); this.groupBoxMaxSources.Controls.Add(this.radioButtonUseGlobalMaxSources); this.groupBoxMaxSources.Location = new System.Drawing.Point(5, 106); this.groupBoxMaxSources.Name = "groupBoxMaxSources"; this.groupBoxMaxSources.Size = new System.Drawing.Size(290, 69); this.groupBoxMaxSources.TabIndex = 28; this.groupBoxMaxSources.TabStop = false; this.groupBoxMaxSources.Text = "Maximum sources limit"; // // textBoxMaxSources // this.textBoxMaxSources.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxMaxSources.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxMaxSources.Location = new System.Drawing.Point(231, 39); this.textBoxMaxSources.Name = "textBoxMaxSources"; this.textBoxMaxSources.Size = new System.Drawing.Size(54, 21); this.textBoxMaxSources.TabIndex = 7; this.textBoxMaxSources.Text = ""; this.textBoxMaxSources.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxMaxSources_KeyPress); this.textBoxMaxSources.TextChanged += new System.EventHandler(this.textBoxMaxSources_TextChanged); // // radioButtonSpecificMaxSources // this.radioButtonSpecificMaxSources.Location = new System.Drawing.Point(12, 45); this.radioButtonSpecificMaxSources.Name = "radioButtonSpecificMaxSources"; this.radioButtonSpecificMaxSources.Size = new System.Drawing.Size(206, 15); this.radioButtonSpecificMaxSources.TabIndex = 1; this.radioButtonSpecificMaxSources.Text = "Specific value for this file:"; this.radioButtonSpecificMaxSources.CheckedChanged += new System.EventHandler(this.radioButtonSpecificMaxSources_CheckedChanged); // // radioButtonUseGlobalMaxSources // this.radioButtonUseGlobalMaxSources.Location = new System.Drawing.Point(11, 21); this.radioButtonUseGlobalMaxSources.Name = "radioButtonUseGlobalMaxSources"; this.radioButtonUseGlobalMaxSources.Size = new System.Drawing.Size(257, 15); this.radioButtonUseGlobalMaxSources.TabIndex = 0; this.radioButtonUseGlobalMaxSources.Text = "Use global preferences value"; this.radioButtonUseGlobalMaxSources.CheckedChanged += new System.EventHandler(this.radioButtonUseGlobalMaxSources_CheckedChanged); // // textBoxCompletedAt // this.textBoxCompletedAt.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250))); this.textBoxCompletedAt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxCompletedAt.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.textBoxCompletedAt.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.textBoxCompletedAt.Location = new System.Drawing.Point(139, 84); this.textBoxCompletedAt.Name = "textBoxCompletedAt"; this.textBoxCompletedAt.ReadOnly = true; this.textBoxCompletedAt.Size = new System.Drawing.Size(154, 19); this.textBoxCompletedAt.TabIndex = 27; this.textBoxCompletedAt.Text = ""; // // labelCompletedAt // this.labelCompletedAt.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(247))); this.labelCompletedAt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.labelCompletedAt.Font = new System.Drawing.Font("Tahoma", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelCompletedAt.ForeColor = System.Drawing.Color.Black; this.labelCompletedAt.Location = new System.Drawing.Point(6, 84); this.labelCompletedAt.Name = "labelCompletedAt"; this.labelCompletedAt.Size = new System.Drawing.Size(134, 19); this.labelCompletedAt.TabIndex = 26; this.labelCompletedAt.Text = "Completed at:"; // // labelSessionFileRateDO // this.labelSessionFileRateDO.AutoSize = true; this.labelSessionFileRateDO.BackColor = System.Drawing.Color.Transparent; this.labelSessionFileRateDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.labelSessionFileRateDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSessionFileRateDO.ForeColor = System.Drawing.Color.Green; this.labelSessionFileRateDO.Location = new System.Drawing.Point(140, 48); this.labelSessionFileRateDO.Name = "labelSessionFileRateDO"; this.labelSessionFileRateDO.Size = new System.Drawing.Size(98, 14); this.labelSessionFileRateDO.TabIndex = 12; this.labelSessionFileRateDO.Text = "Download rate: 00.0 B"; // // labelSessionFileRateUP // this.labelSessionFileRateUP.AutoSize = true; this.labelSessionFileRateUP.BackColor = System.Drawing.Color.Transparent; this.labelSessionFileRateUP.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.labelSessionFileRateUP.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSessionFileRateUP.ForeColor = System.Drawing.Color.Red; this.labelSessionFileRateUP.Location = new System.Drawing.Point(140, 66); this.labelSessionFileRateUP.Name = "labelSessionFileRateUP"; this.labelSessionFileRateUP.Size = new System.Drawing.Size(86, 14); this.labelSessionFileRateUP.TabIndex = 11; this.labelSessionFileRateUP.Text = "Upload rate: 00.0 B"; // // labelSessionFileDO // this.labelSessionFileDO.AutoSize = true; this.labelSessionFileDO.BackColor = System.Drawing.Color.Transparent; this.labelSessionFileDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.labelSessionFileDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSessionFileDO.ForeColor = System.Drawing.Color.Green; this.labelSessionFileDO.Location = new System.Drawing.Point(5, 49); this.labelSessionFileDO.Name = "labelSessionFileDO"; this.labelSessionFileDO.Size = new System.Drawing.Size(90, 14); this.labelSessionFileDO.TabIndex = 10; this.labelSessionFileDO.Text = "Downloaded: 00.0 B"; // // labelSessionFileUP // this.labelSessionFileUP.AutoSize = true; this.labelSessionFileUP.BackColor = System.Drawing.Color.Transparent; this.labelSessionFileUP.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.labelSessionFileUP.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSessionFileUP.ForeColor = System.Drawing.Color.Red; this.labelSessionFileUP.Location = new System.Drawing.Point(5, 65); this.labelSessionFileUP.Name = "labelSessionFileUP"; this.labelSessionFileUP.Size = new System.Drawing.Size(78, 14); this.labelSessionFileUP.TabIndex = 9; this.labelSessionFileUP.Text = "Uploaded: 00.0 B"; // // FileInspector // this.FileInspector.BackColor = System.Drawing.Color.Gray; // TODO: Code generation for 'this.FileInspector.BarHeight' failed because of Exception 'Invalid Primitive Type: System.UInt16. Only CLS compliant primitive types can be used. Consider using CodeObjectCreateExpression.'. // TODO: Code generation for 'this.FileInspector.BarSpacing' failed because of Exception 'Invalid Primitive Type: System.UInt16. Only CLS compliant primitive types can be used. Consider using CodeObjectCreateExpression.'. this.FileInspector.File = null; this.FileInspector.ForeColor = System.Drawing.Color.Black; this.FileInspector.Location = new System.Drawing.Point(3, 3); this.FileInspector.Name = "FileInspector"; this.FileInspector.Size = new System.Drawing.Size(286, 39); this.FileInspector.TabIndex = 0; // // imageListIcons // this.imageListIcons.ImageSize = new System.Drawing.Size(16, 16); this.imageListIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListIcons.ImageStream"))); this.imageListIcons.TransparentColor = System.Drawing.Color.Transparent; // // tabPageLists // this.tabPageLists.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabPageLists.Controls.Add(this.listViewNames); this.tabPageLists.Controls.Add(this.buttonSetCommet); this.tabPageLists.Controls.Add(this.textBoxComment); this.tabPageLists.Controls.Add(this.label3); this.tabPageLists.Controls.Add(this.listViewComments); this.tabPageLists.Controls.Add(this.buttonRename); this.tabPageLists.Controls.Add(this.textBoxName); this.tabPageLists.Controls.Add(this.label2); this.tabPageLists.ImageIndex = 1; this.tabPageLists.ImageList = this.imageListIcons; this.tabPageLists.Location = new System.Drawing.Point(0, 0); this.tabPageLists.Name = "tabPageLists"; this.tabPageLists.Selected = false; this.tabPageLists.Size = new System.Drawing.Size(702, 205); this.tabPageLists.TabIndex = 0; this.tabPageLists.Title = "Comments"; // // listViewNames // this.listViewNames.AllowColumnReorder = true; this.listViewNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.listViewNames.AutoArrange = false; this.listViewNames.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.listViewNames.DefaultCustomDraw = true; this.listViewNames.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.listViewNames.FullRowSelect = true; this.listViewNames.FullyCustomHeader = false; this.listViewNames.HideSelection = false; this.listViewNames.IncreaseHeaderHeight = 0; this.listViewNames.Location = new System.Drawing.Point(341, 20); this.listViewNames.Name = "listViewNames"; this.listViewNames.Size = new System.Drawing.Size(353, 151); this.listViewNames.sortColumn = -1; this.listViewNames.TabIndex = 11; this.listViewNames.View = System.Windows.Forms.View.Details; this.listViewNames.SelectedIndexChanged += new System.EventHandler(this.listViewNames_SelectedIndexChanged); // // buttonSetCommet // this.buttonSetCommet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonSetCommet.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonSetCommet.Location = new System.Drawing.Point(203, 176); this.buttonSetCommet.Name = "buttonSetCommet"; this.buttonSetCommet.Size = new System.Drawing.Size(135, 22); this.buttonSetCommet.TabIndex = 7; this.buttonSetCommet.Text = "Set my comment"; this.buttonSetCommet.Click += new System.EventHandler(this.buttonSetCommet_Click); // // textBoxComment // this.textBoxComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxComment.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxComment.Location = new System.Drawing.Point(7, 176); this.textBoxComment.Name = "textBoxComment"; this.textBoxComment.Size = new System.Drawing.Size(194, 21); this.textBoxComment.TabIndex = 6; this.textBoxComment.Text = ""; // // label3 // this.label3.Location = new System.Drawing.Point(3, 3); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(235, 15); this.label3.TabIndex = 5; this.label3.Text = "File comments:"; // // listViewComments // this.listViewComments.AllowColumnReorder = true; this.listViewComments.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listViewComments.AutoArrange = false; this.listViewComments.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.listViewComments.DefaultCustomDraw = true; this.listViewComments.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.listViewComments.FullRowSelect = true; this.listViewComments.FullyCustomHeader = false; this.listViewComments.HideSelection = false; this.listViewComments.IncreaseHeaderHeight = 0; this.listViewComments.Location = new System.Drawing.Point(6, 20); this.listViewComments.Name = "listViewComments"; this.listViewComments.Size = new System.Drawing.Size(333, 150); this.listViewComments.sortColumn = -1; this.listViewComments.TabIndex = 4; this.listViewComments.View = System.Windows.Forms.View.Details; // // buttonRename // this.buttonRename.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonRename.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.buttonRename.Location = new System.Drawing.Point(610, 174); this.buttonRename.Name = "buttonRename"; this.buttonRename.Size = new System.Drawing.Size(84, 23); this.buttonRename.TabIndex = 3; this.buttonRename.Text = "Rename"; this.buttonRename.Click += new System.EventHandler(this.buttonRename_Click); // // textBoxName // this.textBoxName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textBoxName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxName.Location = new System.Drawing.Point(341, 175); this.textBoxName.Name = "textBoxName"; this.textBoxName.Size = new System.Drawing.Size(267, 21); this.textBoxName.TabIndex = 2; this.textBoxName.Text = ""; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.Location = new System.Drawing.Point(342, 3); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(234, 15); this.label2.TabIndex = 1; this.label2.Text = "File names:"; // // tabPageSources // this.tabPageSources.Controls.Add(this.sourcesList); this.tabPageSources.ImageIndex = 2; this.tabPageSources.ImageList = this.imageListIcons; this.tabPageSources.Location = new System.Drawing.Point(0, 0); this.tabPageSources.Name = "tabPageSources"; this.tabPageSources.Selected = false; this.tabPageSources.Size = new System.Drawing.Size(702, 205); this.tabPageSources.TabIndex = 1; this.tabPageSources.Title = "Sources"; // // sourcesList // this.sourcesList.AllowColumnReorder = true; this.sourcesList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.sourcesList.AutoArrange = false; this.sourcesList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.sourcesList.DefaultCustomDraw = true; this.sourcesList.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151))); this.sourcesList.FullRowSelect = true; this.sourcesList.FullyCustomHeader = false; this.sourcesList.HideSelection = false; this.sourcesList.IncreaseHeaderHeight = 0; this.sourcesList.Location = new System.Drawing.Point(6, 7); this.sourcesList.Name = "sourcesList"; this.sourcesList.Size = new System.Drawing.Size(691, 191); this.sourcesList.sortColumn = -1; this.sourcesList.TabIndex = 5; this.sourcesList.View = System.Windows.Forms.View.Details; // // splitter1 // this.splitter1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(247))); this.splitter1.Dock = System.Windows.Forms.DockStyle.Top; this.splitter1.Location = new System.Drawing.Point(0, 184); this.splitter1.MinExtra = 10; this.splitter1.MinSize = 10; this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(720, 8); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; this.splitter1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitter1_SplitterMoved); // // imageListMinimize // this.imageListMinimize.ImageSize = new System.Drawing.Size(34, 9); this.imageListMinimize.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMinimize.ImageStream"))); this.imageListMinimize.TransparentColor = System.Drawing.Color.Transparent; // // FormDownloads // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(247))); this.ClientSize = new System.Drawing.Size(720, 440); this.Controls.Add(this.panel6); this.Controls.Add(this.splitter1); this.Controls.Add(this.panel5); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "FormDownloads"; this.Text = "FormDownloads"; this.SizeChanged += new System.EventHandler(this.FormDownloads_SizeChanged); this.panel5.ResumeLayout(false); this.paneleLink.ResumeLayout(false); this.panel7.ResumeLayout(false); this.panel6.ResumeLayout(false); this.panel9.ResumeLayout(false); this.tabPageDetails.ResumeLayout(false); this.panel1.ResumeLayout(false); this.groupBoxMaxSources.ResumeLayout(false); this.tabPageLists.ResumeLayout(false); this.tabPageSources.ResumeLayout(false); this.ResumeLayout(false); }
public bool Contains(TabPage value) { // Use base class to process actual collection operation return base.List.Contains(value as object); }
protected override void OnPaint(PaintEventArgs e) { // Fill background in required color if (_style == VisualStyle.IDE) { using (SolidBrush fillBrush = new SolidBrush(_backIDE)) e.Graphics.FillRectangle(fillBrush, this.ClientRectangle); } else { using (SolidBrush fillBrush = new SolidBrush(this.BackColor)) e.Graphics.FillRectangle(fillBrush, this.ClientRectangle); } // Style specific outline drawing DrawOutline(e.Graphics, true); // Draw border around area using (Pen borderPen = new Pen(ControlPaint.LightLight(this.ForeColor))) { // Draw each of the draw objects foreach (DrawTab dt in _drawTabs) { Rectangle drawRect = dt.DrawRect; AdjustRectForEdge(ref drawRect); // Style specific cell outline drawing DrawOutlineForCell(e.Graphics, borderPen, drawRect); // Draw the image in the left/top of the cell Crownwood.Magic.Controls.TabPage page = dt.TabPage; int xDraw; int yDraw; switch (_edge) { case Edge.Left: case Edge.Right: xDraw = drawRect.Left + (drawRect.Width - _imageVector) / 2; yDraw = drawRect.Top + _imageGap; break; case Edge.Top: case Edge.Bottom: case Edge.None: default: xDraw = drawRect.Left + _imageGap; yDraw = drawRect.Top + (drawRect.Height - _imageVector) / 2; break; } if ((page.Icon != null) || ((page.ImageIndex != -1) && (page.ImageList != null))) { if (page.Icon != null) { // Draw the actual icon e.Graphics.DrawIcon(page.Icon, new Rectangle(xDraw, yDraw, _imageVector, _imageVector)); } else { // Draw the actual image e.Graphics.DrawImage(page.ImageList.Images[page.ImageIndex], new Rectangle(xDraw, yDraw, _imageVector, _imageVector)); } } // Is anything currently selected if (_selectedIndex != -1) { // Is this page selected? if (page == _tabPages[_selectedIndex]) { Rectangle textRect; StringFormat drawFormat = new StringFormat(); drawFormat.FormatFlags = StringFormatFlags.NoClip | StringFormatFlags.NoWrap; drawFormat.Alignment = StringAlignment.Center; drawFormat.LineAlignment = StringAlignment.Center; // Create text drawing rectangle switch (_edge) { case Edge.Left: case Edge.Right: textRect = new Rectangle(drawRect.Left, yDraw + _imageVector + _imageGap, drawRect.Width, drawRect.Height - _imageVector - _imageGap * 2); drawFormat.FormatFlags |= StringFormatFlags.DirectionVertical; break; case Edge.Top: case Edge.Bottom: case Edge.None: default: textRect = new Rectangle(xDraw + _imageVector + _imageGap, drawRect.Top, drawRect.Width - _imageVector - _imageGap * 2, drawRect.Height); break; } Color brushColor = this.ForeColor; if (_style == VisualStyle.IDE) { brushColor = ControlPaint.Light(brushColor); } using (SolidBrush drawBrush = new SolidBrush(brushColor)) e.Graphics.DrawString(page.Title, this.Font, drawBrush, textRect, drawFormat); } } } } // Style specific outline drawing DrawOutline(e.Graphics, false); base.OnPaint(e); }
public int IndexOf(TabPage value) { // Find the 0 based index of the requested entry return base.List.IndexOf(value); }