Esempio n. 1
0
        private void CreateTab(string file)
        {
            var viewTab = new PacketViewTab(file);
            viewTab.Dock = DockStyle.Fill;

            var tabPage = new TabPage(viewTab.Text);
            tabPage.Controls.Add(viewTab);

            tabControl1.Controls.Add(tabPage);
            tabControl1.SelectedTab = tabPage;

            if (!tabControl1.Visible)
                tabControl1.Visible = true;
        }
Esempio n. 2
0
        private void CreateTab(string file)
        {
            var viewTab = new PacketViewTab(file);

            viewTab.Dock = DockStyle.Fill;

            var tabPage = new TabPage(viewTab.Text);

            tabPage.Controls.Add(viewTab);

            tabControl1.Controls.Add(tabPage);
            tabControl1.SelectedTab = tabPage;

            if (!tabControl1.Visible)
            {
                tabControl1.Visible = true;
            }
        }
Esempio n. 3
0
        private void CreateTab(string file)
        {
            var viewTab = new PacketViewTab(file);

            viewTab.SetColors(Settings.Default.PacketViewForeColor, Settings.Default.PacketViewBackColor,
                              Settings.Default.HexViewForeColor, Settings.Default.HexViewBackColor,
                              Settings.Default.ParsedViewForeColor, Settings.Default.ParsedViewBackColor);

            viewTab.Dock = DockStyle.Fill;

            var tabPage = new TabPage(viewTab.Text);

            tabPage.Controls.Add(viewTab);

            tabControl1.Controls.Add(tabPage);
            tabControl1.SelectedTab = tabPage;

            if (!tabControl1.Visible)
            {
                tabControl1.Visible = true;
            }
        }
Esempio n. 4
0
        private void CreateTab(string file)
        {
            var viewTab = new PacketViewTab(file);

            viewTab.SetColors(Settings.Default.PacketViewForeColor, Settings.Default.PacketViewBackColor,
                Settings.Default.HexViewForeColor, Settings.Default.HexViewBackColor,
                Settings.Default.ParsedViewForeColor, Settings.Default.ParsedViewBackColor);

            viewTab.Dock = DockStyle.Fill;

            var tabPage = new TabPage(viewTab.Text);
            tabPage.Controls.Add(viewTab);

            tabControl1.Controls.Add(tabPage);
            tabControl1.SelectedTab = tabPage;

            if (!tabControl1.Visible)
                tabControl1.Visible = true;
        }