Inheritance: System.Windows.Forms.Panel
コード例 #1
0
ファイル: EntryView.cs プロジェクト: vermilion/CodeStorage
        public void Add(Entry item)
        {
            var itemHash = item.GetHashCode();

            foreach (FATabStripItem fatab in faTabStrip1.Items)
            {
                if (Convert.ToInt32(fatab.Tag) == itemHash)
                {
                    faTabStrip1.SelectedItem = fatab;
                    return;
                }
            }

            _storedEntries.Add(itemHash, item);
            var tab = new FATabStripItem
                {
                    Tag = itemHash,
                    Title = string.Format("[{0}] {1}", item.Category, item.Name)
                };
            tab.Controls.Add(new EntryEditor(item)
                {
                    Name = "EntryEditor",
                    Dock = DockStyle.Fill
                });
            faTabStrip1.AddTab(tab, true);
        }
コード例 #2
0
 public static void unflagTabAsModified(FATabStripItem tab)
 {
     if (isTagFlaggedAsModified(tab))
     {
         tab.Title = tab.Title.Remove(0, 1);
     }
 }
コード例 #3
0
 public static void flagTabAsModified(FATabStripItem tab)
 {
     if (!isTagFlaggedAsModified(tab))
     {
         tab.Title = tab.Title.Insert(0, "*");
     }
 }
コード例 #4
0
        public PlistEditControl(FATabStrip tabStrip, string title, PlistInfo p = null)
        {
            Editor = new TextEditorControl();
            Tab = new FATabStripItem();
            Tab.Title = title;
            Tab.Controls.Add(Editor);
            Editor.Dock = DockStyle.Fill;
            if (p == null)
            {
                p = new PlistInfo();
            }
            Pinfo = p;
            Editor.Text = p.Content;
            Editor.SetHighlighting("XML");
            Editor.TextChanged += Editor_TextChanged;

            tabStrip.AddTab(Tab);
            Saved = true;
        }
コード例 #5
0
ファイル: FATabStrip.cs プロジェクト: git-thinh/appel2
 internal void UnSelectItem(FATabStripItem tabItem)
 {
     //tabItem.Visible = false;
     tabItem.Selected = false;
 }
コード例 #6
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TracePropertiesForm tpf = new TracePropertiesForm();
            tpf.StartPosition = FormStartPosition.CenterScreen;

            if(tpf.ShowDialog() == DialogResult.OK)
            {
                if (!permission(tpf))
                    System.Windows.Forms.MessageBox.Show(string.Format("'{0}' has no correct permission.", tpf.Username),
                        "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                else
                {
                    Trace trace = _traceManager.RunProfiler(tpf.ServerName, tpf.Username, tpf.Password, tpf.TraceName, tpf.RawConn, tpf.EventProperties, tpf.FilterProperties);

                    TraceViewControl tvc = new TraceViewControl();
                    tvc.Name = "TraceViewControl";
                    tvc.Trace = trace;
                    tvc.Dock = DockStyle.Fill;

                    FATabStripItem item = new FATabStripItem(tvc);
                    item.Title = tpf.TraceName;
                    tabStrip.AddTab(item, true);

                    tabStrip.Enabled = true;
                }
            }
        }
コード例 #7
0
 internal void SetActivate(FATabStripItem tab)
 {
     if (controls.ContainsKey(tab))
     {
         curEditor = controls[tab];
     }
 }
コード例 #8
0
 public void AddTab(FATabStripItem tabItem)
 {
     this.AddTab(tabItem, false);
 }
コード例 #9
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
        private void OnCalcTabPage(Graphics g, FATabStripItem currentItem)
        {
            Font currentFont = Font;
            if (currentItem == SelectedItem)
                currentFont = new Font(Font, FontStyle.Bold);

            SizeF textSize = g.MeasureString(currentItem.Title, SystemFonts.DefaultFont, new SizeF(200, 10), sf);
            textSize.Width += 15;

            if (RightToLeft == RightToLeft.No)
            {
                RectangleF buttonRect = new RectangleF(DEF_START_POS - 9, 1, textSize.Width, 18);
                currentItem.StripRect = buttonRect;
                DEF_START_POS += (int) textSize.Width;
            }
            else
            {
                RectangleF buttonRect = new RectangleF(DEF_START_POS - textSize.Width + 1, 3, textSize.Width - 1, 17);
                currentItem.StripRect = buttonRect;
                DEF_START_POS -= (int) textSize.Width;
            }
        }
コード例 #10
0
 public virtual void Insert(int index, FATabStripItem item)
 {
     if (Contains(item)) return;
     List.Insert(index, item);
 }
コード例 #11
0
ファイル: FATabStrip.cs プロジェクト: git-thinh/appel2
        protected override void OnPaint(PaintEventArgs e)
        {
            SetDefaultSelected();
            Rectangle borderRc = ClientRectangle;

            borderRc.Width--;
            borderRc.Height--;

            if (RightToLeft == RightToLeft.No)
            {
                DEF_START_POS = 10;
            }
            else
            {
                DEF_START_POS = stripButtonRect.Right;
            }

            // draw border: left, top, right, bottom of tab control
            //e.Graphics.DrawRectangle(SystemPens.ControlDark, borderRc);
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;

            #region Draw Pages

            for (int i = 0; i < Items.Count; i++)
            {
                FATabStripItem currentItem = Items[i];
                if (!currentItem.Visible && !DesignMode)
                {
                    continue;
                }

                OnCalcTabPage(e.Graphics, currentItem);
                currentItem.IsDrawn = false;

                if (!AllowDraw(currentItem))
                {
                    continue;
                }

                OnDrawTabPage(e.Graphics, currentItem);
            }

            #endregion

            #region Draw UnderPage Line

            if (RightToLeft == RightToLeft.No)
            {
                if (Items.DrawnCount == 0 || Items.VisibleCount == 0)
                {
                    e.Graphics.DrawLine(SystemPens.ControlDark, new Point(0, DEF_HEADER_HEIGHT), new Point(ClientRectangle.Width, DEF_HEADER_HEIGHT));
                }
                else if (SelectedItem != null && SelectedItem.IsDrawn)
                {
                    Point end = new Point((int)SelectedItem.StripRect.Left - 9, DEF_HEADER_HEIGHT);
                    end.X += (int)SelectedItem.StripRect.Width + 10;
                    //??????????????????????????????????????????????
                    ///e.Graphics.DrawLine(SystemPens.ControlDark, end, new Point(ClientRectangle.Width, DEF_HEADER_HEIGHT));
                    e.Graphics.DrawLine(SystemPens.ControlDark, new Point(end.X + 3, end.Y), new Point(ClientRectangle.Width - 3, DEF_HEADER_HEIGHT));
                }
            }
            else
            {
                if (Items.DrawnCount == 0 || Items.VisibleCount == 0)
                {
                    e.Graphics.DrawLine(SystemPens.ControlDark, new Point(0, DEF_HEADER_HEIGHT),
                                        new Point(ClientRectangle.Width, DEF_HEADER_HEIGHT));
                }
                else if (SelectedItem != null && SelectedItem.IsDrawn)
                {
                    Point end = new Point((int)SelectedItem.StripRect.Left, DEF_HEADER_HEIGHT);
                    e.Graphics.DrawLine(SystemPens.ControlDark, new Point(0, DEF_HEADER_HEIGHT), end);
                    end.X += (int)SelectedItem.StripRect.Width + 20;
                    e.Graphics.DrawLine(SystemPens.ControlDark, end, new Point(ClientRectangle.Width, DEF_HEADER_HEIGHT));
                }
            }

            #endregion

            #region Draw Menu and Close Glyphs

            if (AlwaysShowMenuGlyph || Items.DrawnCount > Items.VisibleCount)
            {
                menuGlyph.DrawGlyph(e.Graphics);
            }

            if (AlwaysShowClose || (SelectedItem != null && SelectedItem.CanClose))
            {
                closeButton.DrawCross(e.Graphics);
            }

            #endregion
        }
コード例 #12
0
ファイル: Form1.cs プロジェクト: ku3mich/TabStrips
 private void AddTab_Click(object sender, EventArgs e)
 {
     FATabStripItem item = new FATabStripItem(string.Format("New Document {0}", RTLTabStrip.Items.Count + 1), null);
     RTLTabStrip.AddTab(item);
 }
コード例 #13
0
ファイル: Delegates.cs プロジェクト: DanWBR/dwsim3
 public TabStripItemChangedEventArgs(FATabStripItem item, FATabStripItemChangeTypes type)
 {
     changeType = type;
     itm = item;
 }
コード例 #14
0
ファイル: FATabStrip.cs プロジェクト: git-thinh/appel2
        private void OnDrawTabPage(Graphics g, FATabStripItem currentItem)
        {
            bool isFirstTab  = Items.IndexOf(currentItem) == 0;
            Font currentFont = Font;

            if (currentItem == SelectedItem)
            {
                currentFont = new Font(Font, FontStyle.Bold);
            }

            SizeF textSize = g.MeasureString(currentItem.Title, currentFont, new SizeF(200, 10), sf);

            textSize.Width += 20;
            RectangleF buttonRect = currentItem.StripRect;

            GraphicsPath        path = new GraphicsPath();
            LinearGradientBrush brush;
            int mtop = 3;

            #region Draw Not Right-To-Left Tab

            if (RightToLeft == RightToLeft.No)
            {
                if (currentItem == SelectedItem || isFirstTab)
                {
                    //??????????????????????????????????????????????
                    //path.AddLine(buttonRect.Left - 10, buttonRect.Bottom - 1, buttonRect.Left + (buttonRect.Height / 2) - 4, mtop + 4);
                    path.AddLine(buttonRect.Left - 9, buttonRect.Bottom - 1, buttonRect.Left + (buttonRect.Height / 2) - 3, mtop + 4);
                }
                else
                {
                    path.AddLine(buttonRect.Left, buttonRect.Bottom - 1, buttonRect.Left, buttonRect.Bottom - (buttonRect.Height / 2) - 2);
                    path.AddLine(buttonRect.Left, buttonRect.Bottom - (buttonRect.Height / 2) - 3, buttonRect.Left + (buttonRect.Height / 2) - 4, mtop + 3);
                }

                path.AddLine(buttonRect.Left + (buttonRect.Height / 2) + 2, mtop, buttonRect.Right - 3, mtop);
                path.AddLine(buttonRect.Right, mtop + 2, buttonRect.Right, buttonRect.Bottom - 1);
                path.AddLine(buttonRect.Right - 4, buttonRect.Bottom - 1, buttonRect.Left, buttonRect.Bottom - 1);
                path.CloseFigure();

                if (currentItem == SelectedItem)
                {
                    //??????????????????????????????????????????????
                    //brush = new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Window, LinearGradientMode.Vertical);
                    brush = new LinearGradientBrush(buttonRect, _CONST_TAB.TAB_ACTIVE_TITLE_BACKGROUND_1, _CONST_TAB.TAB_ACTIVE_TITLE_BACKGROUND_2, LinearGradientMode.Vertical);
                }
                else
                {
                    //??????????????????????????????????????????????
                    brush = new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Control, LinearGradientMode.Vertical);
                    //brush = new LinearGradientBrush(buttonRect, Color.WhiteSmoke, Color.WhiteSmoke, LinearGradientMode.Horizontal);
                }

                g.FillPath(brush, path);
                g.DrawPath(SystemPens.ControlDark, path);

                if (currentItem == SelectedItem)
                {
                    g.DrawLine(new Pen(brush), buttonRect.Left - 9, buttonRect.Height + 2, buttonRect.Left + buttonRect.Width - 1, buttonRect.Height + 2);
                }

                PointF     textLoc  = new PointF(buttonRect.Left + buttonRect.Height - 4, buttonRect.Top + (buttonRect.Height / 2) - (textSize.Height / 2) - 3);
                RectangleF textRect = buttonRect;
                textRect.Location = textLoc;
                textRect.Width    = buttonRect.Width - (textRect.Left - buttonRect.Left) - 4;
                textRect.Height   = textSize.Height + currentFont.Size / 2;

                if (currentItem == SelectedItem)
                {
                    //textRect.Y -= 2;
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }
                else
                {
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }
            }

            #endregion

            #region Draw Right-To-Left Tab

            if (RightToLeft == RightToLeft.Yes)
            {
                if (currentItem == SelectedItem || isFirstTab)
                {
                    path.AddLine(buttonRect.Right + 10, buttonRect.Bottom - 1,
                                 buttonRect.Right - (buttonRect.Height / 2) + 4, mtop + 4);
                }
                else
                {
                    path.AddLine(buttonRect.Right, buttonRect.Bottom - 1, buttonRect.Right,
                                 buttonRect.Bottom - (buttonRect.Height / 2) - 2);
                    path.AddLine(buttonRect.Right, buttonRect.Bottom - (buttonRect.Height / 2) - 3,
                                 buttonRect.Right - (buttonRect.Height / 2) + 4, mtop + 3);
                }

                path.AddLine(buttonRect.Right - (buttonRect.Height / 2) - 2, mtop, buttonRect.Left + 3, mtop);
                path.AddLine(buttonRect.Left, mtop + 2, buttonRect.Left, buttonRect.Bottom - 1);
                path.AddLine(buttonRect.Left + 4, buttonRect.Bottom - 1, buttonRect.Right, buttonRect.Bottom - 1);
                path.CloseFigure();

                if (currentItem == SelectedItem)
                {
                    brush =
                        new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Window,
                                                LinearGradientMode.Vertical);
                }
                else
                {
                    brush =
                        new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Control,
                                                LinearGradientMode.Vertical);
                }

                g.FillPath(brush, path);
                g.DrawPath(SystemPens.ControlDark, path);

                if (currentItem == SelectedItem)
                {
                    g.DrawLine(new Pen(brush), buttonRect.Right + 9, buttonRect.Height + 2,
                               buttonRect.Right - buttonRect.Width + 1, buttonRect.Height + 2);
                }

                PointF     textLoc  = new PointF(buttonRect.Left + 2, buttonRect.Top + (buttonRect.Height / 2) - (textSize.Height / 2) - 2);
                RectangleF textRect = buttonRect;
                textRect.Location = textLoc;
                textRect.Width    = buttonRect.Width - (textRect.Left - buttonRect.Left) - 10;
                textRect.Height   = textSize.Height + currentFont.Size / 2;

                if (currentItem == SelectedItem)
                {
                    textRect.Y -= 1;
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }
                else
                {
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }

                //g.FillRectangle(Brushes.Red, textRect);
            }

            #endregion

            currentItem.IsDrawn = true;
        }
コード例 #15
0
ファイル: FATabStripItem.cs プロジェクト: DanWBR/dwsim3
 public void Assign(FATabStripItem item)
 {
     Visible = item.Visible;
     Text = item.Text;
     CanClose = item.CanClose;
     Tag = item.Tag;
 }
コード例 #16
0
 internal void UnSelectItem(FATabStripItem tabItem)
 {
     tabItem.Selected = false;
 }
コード例 #17
0
 internal void SelectItem(FATabStripItem tabItem)
 {
     tabItem.Dock     = DockStyle.Fill;
     tabItem.Visible  = true;
     tabItem.Selected = true;
 }
コード例 #18
0
 public TabStripItemClosingEventArgs(FATabStripItem item)
 {
     this._item = item;
 }
コード例 #19
0
 public virtual int IndexOf(FATabStripItem item)
 {
     return List.IndexOf(item);
 }
コード例 #20
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
 /// <summary>
 /// Add a <see cref="FATabStripItem"/> to this control without selecting it.
 /// </summary>
 /// <param name="tabItem"></param>
 public void AddTab(FATabStripItem tabItem)
 {
     AddTab(tabItem, false);
 }
コード例 #21
0
 public virtual bool Contains(FATabStripItem item)
 {
     return List.Contains(item);
 }
コード例 #22
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
        /// <summary>
        /// Remove a <see cref="FATabStripItem"/> from this control.
        /// </summary>
        /// <param name="tabItem"></param>
        public void RemoveTab(FATabStripItem tabItem)
        {
            int tabIndex = Items.IndexOf(tabItem);

            if (tabIndex >= 0)
            {
                UnSelectItem(tabItem);
                Items.Remove(tabItem);
            }

            if (Items.Count > 0)
            {
                if (RightToLeft == RightToLeft.No)
                {
                    if (Items[tabIndex - 1] != null)
                    {
                        SelectedItem = Items[tabIndex - 1];
                    }
                    else
                    {
                        SelectedItem = Items.FirstVisible;
                    }
                }
                else
                {
                    if (Items[tabIndex + 1] != null)
                    {
                        SelectedItem = Items[tabIndex + 1];
                    }
                    else
                    {
                        SelectedItem = Items.LastVisible;
                    }
                }
            }
        }
コード例 #23
0
 public static bool isTagFlaggedAsModified(FATabStripItem tab)
 {
     return tab.Title.StartsWith("*");
 }
コード例 #24
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
 internal void UnSelectItem(FATabStripItem tabItem)
 {
     //tabItem.Visible = false;
     tabItem.Selected = false;
 }
コード例 #25
0
ファイル: Delegates.cs プロジェクト: DanWBR/dwsim3
 public TabStripItemClosingEventArgs(FATabStripItem item)
 {
     _item = item;
 }
コード例 #26
0
        private void OnMenuItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            FATabStripItem fatabStripItem = (FATabStripItem)e.ClickedItem.Tag;

            this.SelectedItem = fatabStripItem;
        }
コード例 #27
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
        /// <summary>
        /// Add a <see cref="FATabStripItem"/> to this control.
        /// User can make the currently selected item or not.
        /// </summary>
        /// <param name="tabItem"></param>
        public void AddTab(FATabStripItem tabItem, bool autoSelect)
        {
            tabItem.Dock = DockStyle.Fill;
            Items.Add(tabItem);

            if ((autoSelect && tabItem.Visible) || (tabItem.Visible && Items.DrawnCount < 1 ))
            {
                SelectedItem = tabItem;
                SelectItem(tabItem);
            }
        }
コード例 #28
0
ファイル: cRemote.cs プロジェクト: kisflying/kion
		private void InitializeComponent() {
			components = new Container();
			ComponentResourceManager resources = new ComponentResourceManager(typeof (cRemote));
			TreeNode treeNode1 = new TreeNode("Connections");
			conMenu = new ContextMenuStrip(components);
			menAddServer = new ToolStripMenuItem();
			menAddContainer = new ToolStripMenuItem();
			menAddLink = new ToolStripMenuItem();
			ToolStripSeparator5 = new ToolStripSeparator();
			menConnect = new ToolStripMenuItem();
			conMenSep1 = new ToolStripSeparator();
			menDelete = new ToolStripMenuItem();
			conMenSep2 = new ToolStripSeparator();
			menMoveUp = new ToolStripMenuItem();
			menMoveDown = new ToolStripMenuItem();
			toolStripSeparator1 = new ToolStripSeparator();
			duplicateToolStripMenuItem_duplicate = new ToolStripMenuItem();
			imageList_connections = new ImageList(components);
			toolTip_window = new ToolTip(components);
			button_new_credential = new Button();
			btn_del_credential = new Button();
			btn_save_credential = new Button();
			button_new_link = new Button();
			button_new_container = new Button();
			button_new_server = new Button();
			button_save_connection = new Button();
			button_win_state = new Button();
			faTabStrip_all = new FATabStrip();
			faTabStripItem_configs = new FATabStripItem();
			panel_configs = new Panel();
			panel_config_details = new Panel();
			grpConfAppearance = new GroupBox();
			lblConfResolution = new Label();
			lblConfColors = new Label();
			cmbConfResolution = new ComboBox();
			cmbConfColors = new ComboBox();
			lblConfOptions = new Label();
			chkConfWallpaper = new CheckBox();
			chkConfCacheBitmaps = new CheckBox();
			chkConfThemes = new CheckBox();
			chkConfRedKeys = new CheckBox();
			lblConfRedirect = new Label();
			chkConfRedDiskDrives = new CheckBox();
			chkConfRedPorts = new CheckBox();
			chkConfRedPrinters = new CheckBox();
			chkConfRedSmartCards = new CheckBox();
			lblConfSounds = new Label();
			cmbConfRedSounds = new ComboBox();
			grpConfProtocol = new GroupBox();
			lblConfProtocol = new Label();
			cmbConfProtocol = new ComboBox();
			lblConfPort = new Label();
			txtConfPort = new TextBox();
			chkConfConnectToConsole = new CheckBox();
			grpConfCredential = new GroupBox();
			label_linkid = new Label();
			label_mid = new Label();
			label_groupid = new Label();
			chkConfInherit = new CheckBox();
			label_credential_id = new Label();
			label1 = new Label();
			cmb_credential = new ComboBox();
			lblConfUsername = new Label();
			txtConfUsername = new TextBox();
			lblConfPassword = new Label();
			txtConfPassword = new TextBox();
			lblConfDomain = new Label();
			txtConfDomain = new TextBox();
			grpConfDisplay = new GroupBox();
			label2 = new Label();
			cmb_groups = new ComboBox();
			btnConnect = new Button();
			lblConfConnectionName = new Label();
			txtConfConnectionName = new TextBox();
			lblConfHost = new Label();
			txtConfHost = new TextBox();
			panel_connections = new Panel();
			panel_connectionlist = new Panel();
			groupBox_connections = new GroupBox();
			treeView_connections = new TreeView();
			panel_connectiontop = new Panel();
			groupBox_connection_operation = new GroupBox();
			button_delete = new Button();
			conMenu.SuspendLayout();
			faTabStrip_all.BeginInit();
			faTabStrip_all.SuspendLayout();
			faTabStripItem_configs.SuspendLayout();
			panel_configs.SuspendLayout();
			panel_config_details.SuspendLayout();
			grpConfAppearance.SuspendLayout();
			grpConfProtocol.SuspendLayout();
			grpConfCredential.SuspendLayout();
			grpConfDisplay.SuspendLayout();
			panel_connections.SuspendLayout();
			panel_connectionlist.SuspendLayout();
			groupBox_connections.SuspendLayout();
			panel_connectiontop.SuspendLayout();
			groupBox_connection_operation.SuspendLayout();
			base.SuspendLayout();
			conMenu.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			conMenu.Items.AddRange(new ToolStripItem[] {
			                                           	menAddServer, menAddContainer, menAddLink, ToolStripSeparator5,
			                                           	menConnect, conMenSep1,
			                                           	menDelete, conMenSep2, menMoveUp, menMoveDown, toolStripSeparator1,
			                                           	duplicateToolStripMenuItem_duplicate
			                                           });
			conMenu.Name = "conMenu";
			conMenu.RenderMode = ToolStripRenderMode.Professional;
			conMenu.Size = new Size(0x9c, 0xcc);
			menAddServer.Name = "menAddServer";
			menAddServer.Size = new Size(0x9b, 0x16);
			menAddServer.Text = "Add Server";
			menAddServer.Click += button_new_server_Click;
			menAddContainer.Name = "menAddContainer";
			menAddContainer.Size = new Size(0x9b, 0x16);
			menAddContainer.Text = "Add Container";
			menAddContainer.Click += button_new_container_Click;
			menAddLink.Name = "menAddLink";
			menAddLink.Size = new Size(0x9b, 0x16);
			menAddLink.Text = "Add Link";
			menAddLink.Click += button_new_link_Click;
			ToolStripSeparator5.Name = "ToolStripSeparator5";
			ToolStripSeparator5.Size = new Size(0x98, 6);
			menConnect.Name = "menConnect";
			menConnect.Size = new Size(0x9b, 0x16);
			menConnect.Text = "Connect";
			menConnect.Click += btnConnect_Click;
			conMenSep1.Name = "conMenSep1";
			conMenSep1.Size = new Size(0x98, 6);
			menDelete.Name = "menDelete";
			menDelete.Size = new Size(0x9b, 0x16);
			menDelete.Text = "Delete Item";
			menDelete.Click += menDelete_Click;
			conMenSep2.Name = "conMenSep2";
			conMenSep2.Size = new Size(0x98, 6);
			menMoveUp.Name = "menMoveUp";
			menMoveUp.Size = new Size(0x9b, 0x16);
			menMoveUp.Text = "Move Item Up";
			menMoveDown.Name = "menMoveDown";
			menMoveDown.Size = new Size(0x9b, 0x16);
			menMoveDown.Text = "Move Item Down";
			toolStripSeparator1.Name = "toolStripSeparator1";
			toolStripSeparator1.Size = new Size(0x98, 6);
			duplicateToolStripMenuItem_duplicate.Name = "duplicateToolStripMenuItem_duplicate";
			duplicateToolStripMenuItem_duplicate.Size = new Size(0x9b, 0x16);
			duplicateToolStripMenuItem_duplicate.Text = "Duplicate";
			duplicateToolStripMenuItem_duplicate.Click += duplicateToolStripMenuItem_duplicate_Click;
			//this.imageList_connections.ImageStream = (ImageListStreamer) resources.GetObject("imageList_connections.ImageStream");
			//this.imageList_connections.TransparentColor = Color.Transparent;
			//this.imageList_connections.Images.SetKeyName(0, "folderclose.ico");
			//this.imageList_connections.Images.SetKeyName(1, "36.ico");
			//this.imageList_connections.Images.SetKeyName(2, "06.ico");
			//this.imageList_connections.Images.SetKeyName(3, "disksave.ico");
			//this.imageList_connections.Images.SetKeyName(4, "program group.ico");
			//this.imageList_connections.Images.SetKeyName(5, "folder open.ico");
			//this.imageList_connections.Images.SetKeyName(6, "IE.ICO");
			//this.imageList_connections.Images.SetKeyName(7, "trash.gif");
			button_new_credential.FlatStyle = FlatStyle.Popup;
			button_new_credential.ForeColor = Color.Green;
			button_new_credential.Location = new Point(0x14f, 0x2a);
			button_new_credential.Name = "button_new_credential";
			button_new_credential.Size = new Size(0x63, 0x15);
			button_new_credential.TabIndex = 0x2724;
			button_new_credential.Text = "New Credential";
			toolTip_window.SetToolTip(button_new_credential, "New Credential");
			button_new_credential.UseVisualStyleBackColor = true;
			button_new_credential.Click += button_new_credential_Click;
			btn_del_credential.FlatStyle = FlatStyle.Popup;
			btn_del_credential.ForeColor = Color.Red;
			btn_del_credential.Location = new Point(0x14f, 0x81);
			btn_del_credential.Name = "btn_del_credential";
			btn_del_credential.Size = new Size(0x63, 0x15);
			btn_del_credential.TabIndex = 0x2720;
			btn_del_credential.Text = "Delete Credential";
			toolTip_window.SetToolTip(btn_del_credential, "Del Credential");
			btn_del_credential.UseVisualStyleBackColor = true;
			btn_save_credential.FlatStyle = FlatStyle.Popup;
			btn_save_credential.ForeColor = Color.Blue;
			btn_save_credential.Location = new Point(0x14f, 0x49);
			btn_save_credential.Name = "btn_save_credential";
			btn_save_credential.Size = new Size(0x63, 0x15);
			btn_save_credential.TabIndex = 0x271f;
			btn_save_credential.Text = "Save Credential";
			toolTip_window.SetToolTip(btn_save_credential, "Save Credential");
			btn_save_credential.UseVisualStyleBackColor = true;
			btn_save_credential.Click += btn_save_credential_Click;
			button_new_link.FlatStyle = FlatStyle.Popup;
			button_new_link.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_new_link.ForeColor = SystemColors.ControlText;
			button_new_link.ImageIndex = 2;
			button_new_link.ImageList = imageList_connections;
			button_new_link.Location = new Point(0xc5, 11);
			button_new_link.Name = "button_new_link";
			button_new_link.Size = new Size(80, 0x18);
			button_new_link.TabIndex = 0x2724;
			button_new_link.Text = "New Link";
			button_new_link.TextAlign = ContentAlignment.MiddleLeft;
			button_new_link.TextImageRelation = TextImageRelation.ImageBeforeText;
			toolTip_window.SetToolTip(button_new_link, "New Link");
			button_new_link.UseVisualStyleBackColor = true;
			button_new_link.Click += button_new_link_Click;
			button_new_container.FlatStyle = FlatStyle.Popup;
			button_new_container.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_new_container.ForeColor = SystemColors.ControlText;
			button_new_container.ImageAlign = ContentAlignment.MiddleLeft;
			button_new_container.ImageIndex = 0;
			button_new_container.ImageList = imageList_connections;
			button_new_container.Location = new Point(4, 11);
			button_new_container.Name = "button_new_container";
			button_new_container.Size = new Size(0x5c, 0x18);
			button_new_container.TabIndex = 0x2723;
			button_new_container.Text = "New Group";
			button_new_container.TextAlign = ContentAlignment.MiddleLeft;
			button_new_container.TextImageRelation = TextImageRelation.ImageBeforeText;
			toolTip_window.SetToolTip(button_new_container, "New Container");
			button_new_container.UseVisualStyleBackColor = true;
			button_new_container.Click += button_new_container_Click;
			button_new_server.FlatStyle = FlatStyle.Popup;
			button_new_server.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_new_server.ForeColor = SystemColors.ControlText;
			button_new_server.ImageIndex = 1;
			button_new_server.ImageList = imageList_connections;
			button_new_server.Location = new Point(0x63, 11);
			button_new_server.Name = "button_new_server";
			button_new_server.Size = new Size(0x5f, 0x18);
			button_new_server.TabIndex = 0x2722;
			button_new_server.Text = "New Server";
			button_new_server.TextAlign = ContentAlignment.MiddleLeft;
			button_new_server.TextImageRelation = TextImageRelation.ImageBeforeText;
			toolTip_window.SetToolTip(button_new_server, "New Server");
			button_new_server.UseVisualStyleBackColor = true;
			button_new_server.Click += button_new_server_Click;
			button_save_connection.FlatStyle = FlatStyle.Popup;
			button_save_connection.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_save_connection.ForeColor = Color.Blue;
			button_save_connection.ImageIndex = 3;
			button_save_connection.ImageList = imageList_connections;
			button_save_connection.Location = new Point(0x1af, 11);
			button_save_connection.Name = "button_save_connection";
			button_save_connection.Size = new Size(0x40, 0x18);
			button_save_connection.TabIndex = 0x2721;
			button_save_connection.Text = " Save";
			button_save_connection.TextImageRelation = TextImageRelation.ImageBeforeText;
			toolTip_window.SetToolTip(button_save_connection, "Save Connection");
			button_save_connection.UseVisualStyleBackColor = true;
			button_save_connection.Click += button_save_connection_Click;
			button_win_state.FlatStyle = FlatStyle.Popup;
			button_win_state.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_win_state.ImageAlign = ContentAlignment.MiddleLeft;
			button_win_state.ImageIndex = 7;
			button_win_state.Location = new Point(0x165, 11);
			button_win_state.Name = "button_win_state";
			button_win_state.Size = new Size(0x45, 0x18);
			button_win_state.TabIndex = 0x2720;
			button_win_state.Text = "Max/Min";
			button_win_state.TextAlign = ContentAlignment.MiddleLeft;
			toolTip_window.SetToolTip(button_win_state, "Window Max/Min");
			button_win_state.UseVisualStyleBackColor = true;
			button_win_state.Click += button_win_state_Click;
			faTabStrip_all.Dock = DockStyle.Fill;
			faTabStrip_all.Font = new Font("Tahoma", 8.25f);
			faTabStrip_all.HoverSelection = false;
			faTabStrip_all.Items.AddRange(new[] {faTabStripItem_configs});
			faTabStrip_all.Location = new Point(0, 0);
			faTabStrip_all.Name = "faTabStrip_all";
			faTabStrip_all.SelectedItem = faTabStripItem_configs;
			faTabStrip_all.ShowMinimize = true;
			faTabStrip_all.Size = new Size(0x400, 700);
			faTabStrip_all.TabIndex = 2;
			faTabStrip_all.DoubleClick += faTabStrip_all_DoubleClick;
			faTabStrip_all.Click += faTabStrip_all_Click;
			faTabStrip_all.TabStripItemSelectionChanged += faTabStrip_all_TabStripItemSelectionChanged;
			faTabStrip_all.MouseDown += faTabStrip_all_MouseDown;
			faTabStrip_all.TabIndexChanged += faTabStrip_all_TabIndexChanged;
			faTabStripItem_configs.CanClose = false;
			faTabStripItem_configs.Controls.Add(panel_configs);
			//this.faTabStripItem_configs.Image = (Image) resources.GetObject("faTabStripItem_configs.Image");
			faTabStripItem_configs.IsDrawn = true;
			faTabStripItem_configs.item_type = "CONFIG";
			faTabStripItem_configs.Name = "faTabStripItem_configs";
			faTabStripItem_configs.Selected = true;
			faTabStripItem_configs.Size = new Size(0x3fe, 0x2a7);
			faTabStripItem_configs.TabIndex = 0;
			faTabStripItem_configs.Text = "Configs";
			panel_configs.Controls.Add(panel_config_details);
			panel_configs.Controls.Add(panel_connections);
			panel_configs.Dock = DockStyle.Fill;
			panel_configs.Location = new Point(0, 0);
			panel_configs.Name = "panel_configs";
			panel_configs.Size = new Size(0x3fe, 0x2a7);
			panel_configs.TabIndex = 0x2723;
			panel_config_details.Controls.Add(grpConfAppearance);
			panel_config_details.Controls.Add(grpConfProtocol);
			panel_config_details.Controls.Add(grpConfCredential);
			panel_config_details.Controls.Add(grpConfDisplay);
			panel_config_details.Dock = DockStyle.Fill;
			panel_config_details.Location = new Point(0x1f5, 0);
			panel_config_details.Name = "panel_config_details";
			panel_config_details.Size = new Size(0x209, 0x2a7);
			panel_config_details.TabIndex = 1;
			grpConfAppearance.Controls.Add(lblConfResolution);
			grpConfAppearance.Controls.Add(lblConfColors);
			grpConfAppearance.Controls.Add(cmbConfResolution);
			grpConfAppearance.Controls.Add(cmbConfColors);
			grpConfAppearance.Controls.Add(lblConfOptions);
			grpConfAppearance.Controls.Add(chkConfWallpaper);
			grpConfAppearance.Controls.Add(chkConfCacheBitmaps);
			grpConfAppearance.Controls.Add(chkConfThemes);
			grpConfAppearance.Controls.Add(chkConfRedKeys);
			grpConfAppearance.Controls.Add(lblConfRedirect);
			grpConfAppearance.Controls.Add(chkConfRedDiskDrives);
			grpConfAppearance.Controls.Add(chkConfRedPorts);
			grpConfAppearance.Controls.Add(chkConfRedPrinters);
			grpConfAppearance.Controls.Add(chkConfRedSmartCards);
			grpConfAppearance.Controls.Add(lblConfSounds);
			grpConfAppearance.Controls.Add(cmbConfRedSounds);
			grpConfAppearance.Enabled = false;
			grpConfAppearance.FlatStyle = FlatStyle.Flat;
			grpConfAppearance.Location = new Point(6, 0x111);
			grpConfAppearance.Name = "grpConfAppearance";
			grpConfAppearance.Size = new Size(0x14f, 0xcf);
			grpConfAppearance.TabIndex = 0x271b;
			grpConfAppearance.TabStop = false;
			grpConfAppearance.Text = "Appearance and Redirection";
			lblConfResolution.AutoSize = true;
			lblConfResolution.Location = new Point(13, 0x17);
			lblConfResolution.Name = "lblConfResolution";
			lblConfResolution.Size = new Size(0x3d, 13);
			lblConfResolution.TabIndex = 0x5de;
			lblConfResolution.Text = "Resolution:";
			lblConfColors.AutoSize = true;
			lblConfColors.Location = new Point(14, 0x30);
			lblConfColors.Name = "lblConfColors";
			lblConfColors.Size = new Size(0x29, 13);
			lblConfColors.TabIndex = 0x5e1;
			lblConfColors.Text = "Colors:";
			cmbConfResolution.DropDownStyle = ComboBoxStyle.DropDownList;
			cmbConfResolution.FormattingEnabled = true;
			cmbConfResolution.Items.AddRange(new object[] {
			                                              	"Fit to window", "Fullscreen", "Smart size", "640 x 480", "800 x 600",
			                                              	"1024 x 768", "1152 x 864", "1280 x 1024", "1400 x 1050", "1440 x 900"
			                                              	, "1600 x 1024", "1600 x 1200", "1600 x 1280", "1680 x 1050",
			                                              	"1900 x 1200", "1920 x 1200",
			                                              	"2048 x 1536", "2560 x 2048", "3200 x 2400", "3840 x 2400"
			                                              });
			cmbConfResolution.Location = new Point(0x58, 0x12);
			cmbConfResolution.Name = "cmbConfResolution";
			cmbConfResolution.Size = new Size(0xed, 0x15);
			cmbConfResolution.TabIndex = 0x5df;
			cmbConfColors.DropDownStyle = ComboBoxStyle.DropDownList;
			cmbConfColors.FormattingEnabled = true;
			cmbConfColors.Items.AddRange(new object[] {"HighColor16", "Color256", "TrueColor", "HighestQuality"});
			cmbConfColors.Location = new Point(0x58, 0x2d);
			cmbConfColors.Name = "cmbConfColors";
			cmbConfColors.Size = new Size(0xed, 0x15);
			cmbConfColors.TabIndex = 0x5e6;
			lblConfOptions.AutoSize = true;
			lblConfOptions.Location = new Point(14, 0x4a);
			lblConfOptions.Name = "lblConfOptions";
			lblConfOptions.Size = new Size(0x30, 13);
			lblConfOptions.TabIndex = 0x5eb;
			lblConfOptions.Text = "Options:";
			chkConfWallpaper.AutoSize = true;
			chkConfWallpaper.FlatStyle = FlatStyle.Flat;
			chkConfWallpaper.Location = new Point(0x58, 0x47);
			chkConfWallpaper.Name = "chkConfWallpaper";
			chkConfWallpaper.Size = new Size(0x6c, 0x11);
			chkConfWallpaper.TabIndex = 0x5f0;
			chkConfWallpaper.Text = "Display Wallpaper";
			chkConfWallpaper.UseVisualStyleBackColor = true;
			chkConfCacheBitmaps.AutoSize = true;
			chkConfCacheBitmaps.FlatStyle = FlatStyle.Flat;
			chkConfCacheBitmaps.Location = new Point(0xda, 0x47);
			chkConfCacheBitmaps.Name = "chkConfCacheBitmaps";
			chkConfCacheBitmaps.Size = new Size(0x5d, 0x11);
			chkConfCacheBitmaps.TabIndex = 0x5f5;
			chkConfCacheBitmaps.Text = "Cache Bitmaps";
			chkConfCacheBitmaps.UseVisualStyleBackColor = true;
			chkConfThemes.AutoSize = true;
			chkConfThemes.FlatStyle = FlatStyle.Flat;
			chkConfThemes.Location = new Point(0x58, 0x5e);
			chkConfThemes.Name = "chkConfThemes";
			chkConfThemes.Size = new Size(0x61, 0x11);
			chkConfThemes.TabIndex = 0x5fa;
			chkConfThemes.Text = "Display Themes";
			chkConfThemes.UseVisualStyleBackColor = true;
			chkConfRedKeys.AutoSize = true;
			chkConfRedKeys.Checked = true;
			chkConfRedKeys.CheckState = CheckState.Checked;
			chkConfRedKeys.FlatStyle = FlatStyle.Flat;
			chkConfRedKeys.Location = new Point(0x58, 0x98);
			chkConfRedKeys.Name = "chkConfRedKeys";
			chkConfRedKeys.Size = new Size(0xc0, 0x11);
			chkConfRedKeys.TabIndex = 0x5ff;
			chkConfRedKeys.Text = "Key combinations (like in fullscreen)";
			chkConfRedKeys.UseVisualStyleBackColor = true;
			lblConfRedirect.AutoSize = true;
			lblConfRedirect.Location = new Point(14, 0x72);
			lblConfRedirect.Name = "lblConfRedirect";
			lblConfRedirect.Size = new Size(0x33, 13);
			lblConfRedirect.TabIndex = 0x604;
			lblConfRedirect.Text = "Redirect:";
			chkConfRedDiskDrives.AutoSize = true;
			chkConfRedDiskDrives.FlatStyle = FlatStyle.Flat;
			chkConfRedDiskDrives.Location = new Point(0x58, 0x6f);
			chkConfRedDiskDrives.Name = "chkConfRedDiskDrives";
			chkConfRedDiskDrives.Size = new Size(0x4b, 0x11);
			chkConfRedDiskDrives.TabIndex = 0x609;
			chkConfRedDiskDrives.Text = "Disk Drives";
			chkConfRedDiskDrives.UseVisualStyleBackColor = true;
			chkConfRedPorts.AutoSize = true;
			chkConfRedPorts.Checked = true;
			chkConfRedPorts.CheckState = CheckState.Checked;
			chkConfRedPorts.FlatStyle = FlatStyle.Flat;
			chkConfRedPorts.Location = new Point(0xda, 0x6f);
			chkConfRedPorts.Name = "chkConfRedPorts";
			chkConfRedPorts.Size = new Size(0x30, 0x11);
			chkConfRedPorts.TabIndex = 0x60e;
			chkConfRedPorts.Text = "Ports";
			chkConfRedPorts.UseVisualStyleBackColor = true;
			chkConfRedPrinters.AutoSize = true;
			chkConfRedPrinters.FlatStyle = FlatStyle.Flat;
			chkConfRedPrinters.Location = new Point(0x58, 0x83);
			chkConfRedPrinters.Name = "chkConfRedPrinters";
			chkConfRedPrinters.Size = new Size(60, 0x11);
			chkConfRedPrinters.TabIndex = 0x613;
			chkConfRedPrinters.Text = "Printers";
			chkConfRedPrinters.UseVisualStyleBackColor = true;
			chkConfRedSmartCards.AutoSize = true;
			chkConfRedSmartCards.FlatStyle = FlatStyle.Flat;
			chkConfRedSmartCards.Location = new Point(0xda, 0x83);
			chkConfRedSmartCards.Name = "chkConfRedSmartCards";
			chkConfRedSmartCards.Size = new Size(0x52, 0x11);
			chkConfRedSmartCards.TabIndex = 0x618;
			chkConfRedSmartCards.Text = "Smart Cards";
			chkConfRedSmartCards.UseVisualStyleBackColor = true;
			lblConfSounds.AutoSize = true;
			lblConfSounds.Location = new Point(0x10, 0xb3);
			lblConfSounds.Name = "lblConfSounds";
			lblConfSounds.Size = new Size(0x2e, 13);
			lblConfSounds.TabIndex = 0x61d;
			lblConfSounds.Text = "Sounds:";
			cmbConfRedSounds.DropDownStyle = ComboBoxStyle.DropDownList;
			cmbConfRedSounds.FormattingEnabled = true;
			cmbConfRedSounds.Items.AddRange(new object[] {"Bring to this computer", "Leave at remote computer", "Do not play"});
			cmbConfRedSounds.Location = new Point(0x58, 0xaf);
			cmbConfRedSounds.Name = "cmbConfRedSounds";
			cmbConfRedSounds.Size = new Size(0xed, 0x15);
			cmbConfRedSounds.TabIndex = 0x622;
			grpConfProtocol.Controls.Add(lblConfProtocol);
			grpConfProtocol.Controls.Add(cmbConfProtocol);
			grpConfProtocol.Controls.Add(lblConfPort);
			grpConfProtocol.Controls.Add(txtConfPort);
			grpConfProtocol.Controls.Add(chkConfConnectToConsole);
			grpConfProtocol.Enabled = false;
			grpConfProtocol.FlatStyle = FlatStyle.Flat;
			grpConfProtocol.Location = new Point(6, 0x1e6);
			grpConfProtocol.Name = "grpConfProtocol";
			grpConfProtocol.Size = new Size(0x150, 0x53);
			grpConfProtocol.TabIndex = 0x271a;
			grpConfProtocol.TabStop = false;
			grpConfProtocol.Text = "Protocol";
			lblConfProtocol.AutoSize = true;
			lblConfProtocol.Location = new Point(0x10, 0x1c);
			lblConfProtocol.Name = "lblConfProtocol";
			lblConfProtocol.Size = new Size(50, 13);
			lblConfProtocol.TabIndex = 0x3ed;
			lblConfProtocol.Text = "Protocol:";
			cmbConfProtocol.DropDownStyle = ComboBoxStyle.DropDownList;
			cmbConfProtocol.FormattingEnabled = true;
			cmbConfProtocol.Items.AddRange(new object[] {"RDP"});
			cmbConfProtocol.Location = new Point(0x58, 0x17);
			cmbConfProtocol.Name = "cmbConfProtocol";
			cmbConfProtocol.Size = new Size(0x79, 0x15);
			cmbConfProtocol.TabIndex = 0x3f2;
			lblConfPort.AutoSize = true;
			lblConfPort.Location = new Point(0xd8, 0x1c);
			lblConfPort.Name = "lblConfPort";
			lblConfPort.Size = new Size(0x1f, 13);
			lblConfPort.TabIndex = 0x3f7;
			lblConfPort.Text = "Port:";
			txtConfPort.BorderStyle = BorderStyle.FixedSingle;
			txtConfPort.Location = new Point(0xfd, 0x18);
			txtConfPort.MaxLength = 10;
			txtConfPort.Name = "txtConfPort";
			txtConfPort.Size = new Size(0x48, 0x15);
			txtConfPort.TabIndex = 0x3fc;
			txtConfPort.Text = "3389";
			chkConfConnectToConsole.AutoSize = true;
			chkConfConnectToConsole.FlatStyle = FlatStyle.Flat;
			chkConfConnectToConsole.Location = new Point(0x58, 50);
			chkConfConnectToConsole.Name = "chkConfConnectToConsole";
			chkConfConnectToConsole.Size = new Size(0x76, 0x11);
			chkConfConnectToConsole.TabIndex = 0x401;
			chkConfConnectToConsole.Text = "Use console session";
			chkConfConnectToConsole.UseVisualStyleBackColor = true;
			grpConfCredential.Controls.Add(label_linkid);
			grpConfCredential.Controls.Add(button_new_credential);
			grpConfCredential.Controls.Add(label_mid);
			grpConfCredential.Controls.Add(label_groupid);
			grpConfCredential.Controls.Add(chkConfInherit);
			grpConfCredential.Controls.Add(label_credential_id);
			grpConfCredential.Controls.Add(btn_del_credential);
			grpConfCredential.Controls.Add(btn_save_credential);
			grpConfCredential.Controls.Add(label1);
			grpConfCredential.Controls.Add(cmb_credential);
			grpConfCredential.Controls.Add(lblConfUsername);
			grpConfCredential.Controls.Add(txtConfUsername);
			grpConfCredential.Controls.Add(lblConfPassword);
			grpConfCredential.Controls.Add(txtConfPassword);
			grpConfCredential.Controls.Add(lblConfDomain);
			grpConfCredential.Controls.Add(txtConfDomain);
			grpConfCredential.Enabled = false;
			grpConfCredential.FlatStyle = FlatStyle.Flat;
			grpConfCredential.Location = new Point(6, 110);
			grpConfCredential.Name = "grpConfCredential";
			grpConfCredential.Size = new Size(0x1bb, 0x9f);
			grpConfCredential.TabIndex = 0x2719;
			grpConfCredential.TabStop = false;
			grpConfCredential.Text = "Credential";
			label_linkid.AutoSize = true;
			label_linkid.BorderStyle = BorderStyle.Fixed3D;
			label_linkid.Location = new Point(0x54, 0x84);
			label_linkid.Name = "label_linkid";
			label_linkid.Size = new Size(2, 15);
			label_linkid.TabIndex = 0x2725;
			label_linkid.Visible = false;
			label_mid.AutoSize = true;
			label_mid.BorderStyle = BorderStyle.Fixed3D;
			label_mid.Location = new Point(0x54, 0x66);
			label_mid.Name = "label_mid";
			label_mid.Size = new Size(2, 15);
			label_mid.TabIndex = 0x2723;
			label_mid.Visible = false;
			label_groupid.AutoSize = true;
			label_groupid.BorderStyle = BorderStyle.Fixed3D;
			label_groupid.Location = new Point(0x54, 0x4b);
			label_groupid.Name = "label_groupid";
			label_groupid.Size = new Size(2, 15);
			label_groupid.TabIndex = 0x2722;
			label_groupid.Visible = false;
			chkConfInherit.FlatStyle = FlatStyle.Flat;
			chkConfInherit.Location = new Point(0x13, 0x11);
			chkConfInherit.Name = "chkConfInherit";
			chkConfInherit.Size = new Size(0xcf, 0x12);
			chkConfInherit.TabIndex = 0x2720;
			chkConfInherit.Text = "Inherit settings from Parent Container";
			chkConfInherit.UseVisualStyleBackColor = true;
			label_credential_id.AutoSize = true;
			label_credential_id.BorderStyle = BorderStyle.Fixed3D;
			label_credential_id.Location = new Point(0x54, 0x30);
			label_credential_id.Name = "label_credential_id";
			label_credential_id.Size = new Size(2, 15);
			label_credential_id.TabIndex = 0x2721;
			label_credential_id.Visible = false;
			label1.AutoSize = true;
			label1.Location = new Point(0x10, 50);
			label1.Name = "label1";
			label1.Size = new Size(60, 13);
			label1.TabIndex = 0x3f4;
			label1.Text = "Credential:";
			cmb_credential.DropDownStyle = ComboBoxStyle.DropDownList;
			cmb_credential.FormattingEnabled = true;
			cmb_credential.Location = new Point(0x73, 0x2c);
			cmb_credential.Name = "cmb_credential";
			cmb_credential.Size = new Size(210, 0x15);
			cmb_credential.TabIndex = 0x3f3;
			cmb_credential.SelectionChangeCommitted += cmb_credential_SelectionChangeCommitted;
			cmb_credential.SelectedIndexChanged += cmb_credential_SelectedIndexChanged;
			lblConfUsername.AutoSize = true;
			lblConfUsername.Location = new Point(0x10, 0x4d);
			lblConfUsername.Name = "lblConfUsername";
			lblConfUsername.Size = new Size(0x3b, 13);
			lblConfUsername.TabIndex = 520;
			lblConfUsername.Text = "Username:"******"txtConfUsername";
			txtConfUsername.Size = new Size(0xd1, 0x15);
			txtConfUsername.TabIndex = 0x20d;
			lblConfPassword.AutoSize = true;
			lblConfPassword.Location = new Point(0x10, 0x68);
			lblConfPassword.Name = "lblConfPassword";
			lblConfPassword.Size = new Size(0x39, 13);
			lblConfPassword.TabIndex = 530;
			lblConfPassword.Text = "Password:"******"txtConfPassword";
			txtConfPassword.Size = new Size(0xd1, 0x15);
			txtConfPassword.TabIndex = 540;
			txtConfPassword.UseSystemPasswordChar = true;
			lblConfDomain.AutoSize = true;
			lblConfDomain.Location = new Point(0x10, 130);
			lblConfDomain.Name = "lblConfDomain";
			lblConfDomain.Size = new Size(0x2e, 13);
			lblConfDomain.TabIndex = 550;
			lblConfDomain.Text = "Domain:";
			txtConfDomain.BorderStyle = BorderStyle.FixedSingle;
			txtConfDomain.Location = new Point(0x74, 0x81);
			txtConfDomain.Name = "txtConfDomain";
			txtConfDomain.Size = new Size(0xd1, 0x15);
			txtConfDomain.TabIndex = 560;
			grpConfDisplay.Controls.Add(label2);
			grpConfDisplay.Controls.Add(cmb_groups);
			grpConfDisplay.Controls.Add(btnConnect);
			grpConfDisplay.Controls.Add(lblConfConnectionName);
			grpConfDisplay.Controls.Add(txtConfConnectionName);
			grpConfDisplay.Controls.Add(lblConfHost);
			grpConfDisplay.Controls.Add(txtConfHost);
			grpConfDisplay.FlatStyle = FlatStyle.Flat;
			grpConfDisplay.Location = new Point(6, 0);
			grpConfDisplay.Name = "grpConfDisplay";
			grpConfDisplay.Size = new Size(0x1bb, 0x68);
			grpConfDisplay.TabIndex = 0x2718;
			grpConfDisplay.TabStop = false;
			grpConfDisplay.Text = "Group / Server / Link";
			label2.AutoSize = true;
			label2.Location = new Point(0x10, 0x4a);
			label2.Name = "label2";
			label2.Size = new Size(40, 13);
			label2.TabIndex = 0x3f6;
			label2.Text = "Group:";
			cmb_groups.DropDownStyle = ComboBoxStyle.DropDownList;
			cmb_groups.FormattingEnabled = true;
			cmb_groups.Location = new Point(0x73, 0x44);
			cmb_groups.Name = "cmb_groups";
			cmb_groups.Size = new Size(210, 0x15);
			cmb_groups.TabIndex = 0x3f5;
			btnConnect.FlatStyle = FlatStyle.Popup;
			btnConnect.Font = new Font("Calibri", 14.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			btnConnect.ForeColor = Color.MediumBlue;
			btnConnect.Location = new Point(0x14f, 0x10);
			btnConnect.Name = "btnConnect";
			btnConnect.Size = new Size(0x65, 0x2a);
			btnConnect.TabIndex = 0x271e;
			btnConnect.Text = "CONNECT";
			btnConnect.UseVisualStyleBackColor = true;
			btnConnect.Click += btnConnect_Click;
			lblConfConnectionName.AutoSize = true;
			lblConfConnectionName.Location = new Point(0x10, 20);
			lblConfConnectionName.Name = "lblConfConnectionName";
			lblConfConnectionName.Size = new Size(0x26, 13);
			lblConfConnectionName.TabIndex = 15;
			lblConfConnectionName.Text = "Name:";
			txtConfConnectionName.BorderStyle = BorderStyle.FixedSingle;
			txtConfConnectionName.Location = new Point(0x74, 0x10);
			txtConfConnectionName.Name = "txtConfConnectionName";
			txtConfConnectionName.Size = new Size(0xd1, 0x15);
			txtConfConnectionName.TabIndex = 20;
			txtConfConnectionName.TextChanged += txtConfConnectionName_TextChanged;
			lblConfHost.AutoSize = true;
			lblConfHost.Location = new Point(0x10, 0x2d);
			lblConfHost.Name = "lblConfHost";
			lblConfHost.Size = new Size(100, 13);
			lblConfHost.TabIndex = 0x1f9;
			lblConfHost.Text = "Host Name/IP/URL:";
			txtConfHost.BorderStyle = BorderStyle.FixedSingle;
			txtConfHost.Location = new Point(0x74, 0x29);
			txtConfHost.Name = "txtConfHost";
			txtConfHost.Size = new Size(0xd1, 0x15);
			txtConfHost.TabIndex = 510;
			panel_connections.Controls.Add(panel_connectionlist);
			panel_connections.Controls.Add(panel_connectiontop);
			panel_connections.Dock = DockStyle.Left;
			panel_connections.Location = new Point(0, 0);
			panel_connections.Name = "panel_connections";
			panel_connections.Size = new Size(0x1f5, 0x2a7);
			panel_connections.TabIndex = 0;
			panel_connectionlist.Controls.Add(groupBox_connections);
			panel_connectionlist.Dock = DockStyle.Fill;
			panel_connectionlist.Location = new Point(0, 40);
			panel_connectionlist.Name = "panel_connectionlist";
			panel_connectionlist.Size = new Size(0x1f5, 0x27f);
			panel_connectionlist.TabIndex = 3;
			groupBox_connections.Controls.Add(treeView_connections);
			groupBox_connections.Dock = DockStyle.Fill;
			groupBox_connections.Location = new Point(0, 0);
			groupBox_connections.Name = "groupBox_connections";
			groupBox_connections.Size = new Size(0x1f5, 0x27f);
			groupBox_connections.TabIndex = 1;
			groupBox_connections.TabStop = false;
			groupBox_connections.Text = "Connections";
			treeView_connections.ContextMenuStrip = conMenu;
			treeView_connections.Dock = DockStyle.Fill;
			treeView_connections.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			treeView_connections.FullRowSelect = true;
			treeView_connections.HideSelection = false;
			treeView_connections.ImageIndex = 0;
			treeView_connections.ImageList = imageList_connections;
			treeView_connections.LabelEdit = true;
			treeView_connections.Location = new Point(3, 0x11);
			treeView_connections.Name = "treeView_connections";
			treeNode1.Name = "Node0";
			treeNode1.Tag = "G0";
			treeNode1.Text = "Connections";
			treeView_connections.Nodes.AddRange(new[] {treeNode1});
			treeView_connections.SelectedImageIndex = 0;
			treeView_connections.ShowRootLines = false;
			treeView_connections.Size = new Size(0x1ef, 0x26b);
			treeView_connections.TabIndex = 0;
			treeView_connections.Tag = "";
			treeView_connections.DoubleClick += treeView_connections_DoubleClick;
			treeView_connections.DragDrop += treeView_connections_DragDrop;
			treeView_connections.AfterSelect += treeView_connections_AfterSelect;
			treeView_connections.DragEnter += treeView_connections_DragEnter;
			treeView_connections.ItemDrag += treeView_connections_ItemDrag;
			panel_connectiontop.Controls.Add(groupBox_connection_operation);
			panel_connectiontop.Dock = DockStyle.Top;
			panel_connectiontop.Location = new Point(0, 0);
			panel_connectiontop.Name = "panel_connectiontop";
			panel_connectiontop.Size = new Size(0x1f5, 40);
			panel_connectiontop.TabIndex = 2;
			groupBox_connection_operation.Controls.Add(button_delete);
			groupBox_connection_operation.Controls.Add(button_win_state);
			groupBox_connection_operation.Controls.Add(button_new_link);
			groupBox_connection_operation.Controls.Add(button_new_container);
			groupBox_connection_operation.Controls.Add(button_new_server);
			groupBox_connection_operation.Controls.Add(button_save_connection);
			groupBox_connection_operation.Dock = DockStyle.Fill;
			groupBox_connection_operation.Location = new Point(0, 0);
			groupBox_connection_operation.Name = "groupBox_connection_operation";
			groupBox_connection_operation.Size = new Size(0x1f5, 40);
			groupBox_connection_operation.TabIndex = 0x2721;
			groupBox_connection_operation.TabStop = false;
			button_delete.FlatStyle = FlatStyle.Popup;
			button_delete.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
			button_delete.ImageAlign = ContentAlignment.MiddleLeft;
			button_delete.ImageIndex = 7;
			button_delete.ImageList = imageList_connections;
			button_delete.Location = new Point(0x119, 11);
			button_delete.Name = "button_delete";
			button_delete.Size = new Size(0x48, 0x18);
			button_delete.TabIndex = 0x2725;
			button_delete.Text = @"Delete";
			button_delete.TextAlign = ContentAlignment.MiddleLeft;
			button_delete.TextImageRelation = TextImageRelation.ImageBeforeText;
			toolTip_window.SetToolTip(button_delete, "Import Favorite");
			button_delete.UseVisualStyleBackColor = true;
			button_delete.Click += menDelete_Click;
			base.AutoScaleDimensions = new SizeF(6f, 13f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(0x400, 700);
			base.Controls.Add(faTabStrip_all);
			base.FormBorderStyle = FormBorderStyle.Sizable;
			//base.Icon = (Icon) resources.GetObject("$this.Icon");
			base.IsMdiContainer = true;
			base.KeyPreview = true;
			MaximumSize = new Size(0x400, 700);
			base.Name = "cRemote";
			Text = "cRemote";
			base.WindowState = FormWindowState.Normal;
			base.Load += cRemote_Load;
			conMenu.ResumeLayout(false);
			faTabStrip_all.EndInit();
			faTabStrip_all.ResumeLayout(false);
			faTabStripItem_configs.ResumeLayout(false);
			panel_configs.ResumeLayout(false);
			panel_config_details.ResumeLayout(false);
			grpConfAppearance.ResumeLayout(false);
			grpConfAppearance.PerformLayout();
			grpConfProtocol.ResumeLayout(false);
			grpConfProtocol.PerformLayout();
			grpConfCredential.ResumeLayout(false);
			grpConfCredential.PerformLayout();
			grpConfDisplay.ResumeLayout(false);
			grpConfDisplay.PerformLayout();
			panel_connections.ResumeLayout(false);
			panel_connectionlist.ResumeLayout(false);
			groupBox_connections.ResumeLayout(false);
			panel_connectiontop.ResumeLayout(false);
			groupBox_connection_operation.ResumeLayout(false);
			base.ResumeLayout(false);

			base.StartPosition = FormStartPosition.Manual;
			base.FormBorderStyle = FormBorderStyle.Sizable;
			base.SizeGripStyle = SizeGripStyle.Show;
		}
コード例 #29
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
 internal void SelectItem(FATabStripItem tabItem)
 {
     tabItem.Dock = DockStyle.Fill;
     tabItem.Visible = true;
     tabItem.Selected = true;
 }
コード例 #30
0
 public virtual void AddRange(FATabStripItem[] items)
 {
     BeginUpdate();
     try
     {
         foreach (FATabStripItem item in items)
         {
             List.Add(item);
         }
     }
     finally
     {
         EndUpdate();
     }
 }
コード例 #31
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
        private bool AllowDraw(FATabStripItem item)
        {
            bool result = true;

            if (RightToLeft == RightToLeft.No)
            {
                if (item.StripRect.Right >= stripButtonRect.Width)
                    result = false;
            }
            else
            {
                if (item.StripRect.Left <= stripButtonRect.Left)
                    return false;
            }

            return result;
        }
コード例 #32
0
 public virtual void Assign(FATabStripItemCollection collection)
 {
     BeginUpdate();
     try
     {
         Clear();
         for (int n = 0; n < collection.Count; n++)
         {
             FATabStripItem item = collection[n];
             FATabStripItem newItem = new FATabStripItem();
             newItem.Assign(item);
             Add(newItem);
         }
     }
     finally
     {
         EndUpdate();
     }
 }
コード例 #33
0
ファイル: FATabStrip.cs プロジェクト: DanWBR/dwsim3
        private void OnDrawTabPage(Graphics g, FATabStripItem currentItem)
        {
            bool isFirstTab = Items.IndexOf(currentItem) == 0;
            Font currentFont = Font;

            if (currentItem == SelectedItem)
                currentFont = new Font(Font, FontStyle.Bold);

            SizeF textSize = g.MeasureString(currentItem.Title, SystemFonts.DefaultFont, new SizeF(200, 10), sf);
            textSize.Width += 20;
            RectangleF buttonRect = currentItem.StripRect;

            GraphicsPath path = new GraphicsPath();
            LinearGradientBrush brush;
            int mtop = 3;

            #region Draw Not Right-To-Left Tab

            if (RightToLeft == RightToLeft.No)
            {
                //if (currentItem == SelectedItem || isFirstTab)
                //{
                //    path.AddLine(buttonRect.Left - 10, buttonRect.Bottom - 1,
                //                 buttonRect.Left + (buttonRect.Height/2) - 4, mtop + 4);
                //}
                //else
                //{
                //    path.AddLine(buttonRect.Left, buttonRect.Bottom - 1, buttonRect.Left,
                //                 buttonRect.Bottom - (buttonRect.Height/2) - 2);
                //    path.AddLine(buttonRect.Left, buttonRect.Bottom - (buttonRect.Height/2) - 3,
                //                 buttonRect.Left + (buttonRect.Height/2) - 4, mtop + 3);
                //}

                //path.AddLine(buttonRect.Left + (buttonRect.Height/2) + 2, mtop, buttonRect.Right - 3, mtop);
                //path.AddLine(buttonRect.Right, mtop + 2, buttonRect.Right, buttonRect.Bottom - 1);
                //path.AddLine(buttonRect.Right - 4, buttonRect.Bottom - 1, buttonRect.Left, buttonRect.Bottom - 1);
                path.AddRectangle(buttonRect);
                path.CloseFigure();

                if (currentItem == SelectedItem)
                {
                    brush = new LinearGradientBrush(buttonRect, SystemColors.ActiveCaption, SystemColors.ActiveCaption, LinearGradientMode.Vertical);
                }
                else
                {
                    brush = new LinearGradientBrush(buttonRect, SystemColors.InactiveCaption, SystemColors.InactiveCaption, LinearGradientMode.Vertical);
                }

                g.FillPath(brush, path);
                g.DrawPath(new Pen(brush, 1), path);

                //if (currentItem == SelectedItem)
                //{
                //    g.DrawLine(new Pen(brush), buttonRect.Left, buttonRect.Height + 2,
                //               buttonRect.Left + buttonRect.Width, buttonRect.Height + 2);
                //}

                PointF textLoc = new PointF(buttonRect.Left + buttonRect.Height - 9, buttonRect.Top + (buttonRect.Height/2) - (textSize.Height/2) - 2);
                RectangleF textRect = buttonRect;
                textRect.Location = textLoc;
                textRect.Width = buttonRect.Width - (textRect.Left - buttonRect.Left) - 4;
                textRect.Height = textSize.Height + currentFont.Size/2;

                if (currentItem == SelectedItem)
                {
                    //textRect.Y -= 2;
                    g.DrawString(currentItem.Title, SystemFonts.DefaultFont, new SolidBrush(SystemColors.ActiveCaptionText), textRect, sf);
                }
                else
                {
                    g.DrawString(currentItem.Title, SystemFonts.DefaultFont, new SolidBrush(SystemColors.ActiveCaptionText), textRect, sf);
                }
            }

            #endregion

            #region Draw Right-To-Left Tab

            if (RightToLeft == RightToLeft.Yes)
            {
                if (currentItem == SelectedItem || isFirstTab)
                {
                    path.AddLine(buttonRect.Right + 10, buttonRect.Bottom - 1,
                                 buttonRect.Right - (buttonRect.Height/2) + 4, mtop + 4);
                }
                else
                {
                    path.AddLine(buttonRect.Right, buttonRect.Bottom - 1, buttonRect.Right,
                                 buttonRect.Bottom - (buttonRect.Height/2) - 2);
                    path.AddLine(buttonRect.Right, buttonRect.Bottom - (buttonRect.Height/2) - 3,
                                 buttonRect.Right - (buttonRect.Height/2) + 4, mtop + 3);
                }

                path.AddLine(buttonRect.Right - (buttonRect.Height/2) - 2, mtop, buttonRect.Left + 3, mtop);
                path.AddLine(buttonRect.Left, mtop + 2, buttonRect.Left, buttonRect.Bottom - 1);
                path.AddLine(buttonRect.Left + 4, buttonRect.Bottom - 1, buttonRect.Right, buttonRect.Bottom - 1);
                path.CloseFigure();

                if (currentItem == SelectedItem)
                {
                    brush =
                        new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Window,
                                                LinearGradientMode.Vertical);
                }
                else
                {
                    brush =
                        new LinearGradientBrush(buttonRect, SystemColors.ControlLightLight, SystemColors.Control,
                                                LinearGradientMode.Vertical);
                }

                g.FillPath(brush, path);
                g.DrawPath(SystemPens.ControlDark, path);

                if (currentItem == SelectedItem)
                {
                    g.DrawLine(new Pen(brush), buttonRect.Right + 9, buttonRect.Height + 2,
                               buttonRect.Right - buttonRect.Width + 1, buttonRect.Height + 2);
                }

                PointF textLoc = new PointF(buttonRect.Left + 2, buttonRect.Top + (buttonRect.Height/2) - (textSize.Height/2) - 2);
                RectangleF textRect = buttonRect;
                textRect.Location = textLoc;
                textRect.Width = buttonRect.Width - (textRect.Left - buttonRect.Left) - 10;
                textRect.Height = textSize.Height + currentFont.Size/2;

                if (currentItem == SelectedItem)
                {
                    textRect.Y -= 1;
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }
                else
                {
                    g.DrawString(currentItem.Title, currentFont, new SolidBrush(ForeColor), textRect, sf);
                }

                //g.FillRectangle(Brushes.Red, textRect);
            }

            #endregion

            currentItem.IsDrawn = true;
        }
コード例 #34
0
 public virtual int Add(FATabStripItem item)
 {
     int res = IndexOf(item);
     if (res == -1) res = List.Add(item);
     return res;
 }
コード例 #35
0
        private void CloseFile(DialogData file, FATabStripItem tabPage, out bool cancel, bool ignoreChanges = false)
        {
            if (tabPage == file.TabPage)
            {
                if (file.Changed && !ignoreChanges)
                {
                    DialogResult result = MessageBox.Show(this,
                                                          LocRM.GetString("Text28.Text"),
                                                          LocRM.GetString("Text29.Text"),
                                                          MessageBoxButtons.YesNoCancel);
                    if (result == DialogResult.Cancel)
                    {
                        cancel = true;
                        return;
                    }
                    if (result == DialogResult.Yes)
                        file.Save(file.DialogItem.FullName);
                }

                //ProjectProperties.CurrentProjectPropperties.Save();
                tabStrip.RemoveTab(tabPage);
                //openFiles.Remove(file);
                file.TabPage = null;
                file.GUINode = null;
                if (file.CodeTabPage == null && file.DesignerTabPage == null)
                    file.DialogItem.OpenFileData = null;
            }
            else if (tabPage == file.CodeTabPage)
            {
                if (file.CodeChanged && !ignoreChanges)
                {
                    DialogResult result = MessageBox.Show(this,
                                                          LocRM.GetString("Text28.Text"),
                                                          LocRM.GetString("Text29.Text"),
                                                          MessageBoxButtons.YesNoCancel);
                    if (result == DialogResult.Cancel)
                    {
                        cancel = true;
                        return;
                    }
                    if (result == DialogResult.Yes)
                        file.Save(file.DialogItem.FullName);
                }

                //ProjectProperties.CurrentProjectPropperties.Save();
                tabStrip.RemoveTab(tabPage);
                //openFiles.Remove(file);
                file.CodeTabPage = null;
                file.CodeGUINode = null;
                if (file.TabPage == null && file.DesignerTabPage == null)
                    file.DialogItem.OpenFileData = null;
            }
            else if (tabPage == file.DesignerTabPage)
            {
                //ProjectProperties.CurrentProjectPropperties.Save();
                tabStrip.RemoveTab(tabPage);
                //openFiles.Remove(file);
                file.DesignerTabPage = null;
                file.DesignerGUINode = null;
                if (file.TabPage == null && file.CodeTabPage == null)
                    file.DialogItem.OpenFileData = null;
            }
            cancel = false;
        }
コード例 #36
0
 public virtual void Remove(FATabStripItem item)
 {
     if (List.Contains(item))
         List.Remove(item);
 }
コード例 #37
0
 private void CloseTab(FATabStripItem tab, bool goClose)
 {
     PlistEditControl edit = controls[tab];
     edit.Pinfo.Dispose();
     controls.Remove(tab);
     if (goClose)
     {
         ((FATabStrip)tab.Parent).RemoveTab(tab);
     }
 }
コード例 #38
0
        public virtual FATabStripItem MoveTo(int newIndex, FATabStripItem item)
        {
            int currentIndex = List.IndexOf(item);
            if (currentIndex >= 0)
            {
                RemoveAt(currentIndex);
                Insert(0, item);

                return item;
            }

            return null;
        }