Exemple #1
0
        private KryptonPage CreatePage()
        {
            // Give each page a unique number
            string pageNumber = (_count++).ToString();

            // Create a new page and give it a name and image
            KryptonPage page = new KryptonPage();
            page.Text = "P" + pageNumber;
            page.TextTitle = "P" + pageNumber + " Title";
            page.TextDescription = "P" + pageNumber + " Description";
            page.ImageSmall = imageList.Images[_count % imageList.Images.Count];
            page.MinimumSize = new Size(200, 250);

            // Create a rich text box with some sample text inside
            KryptonRichTextBox rtb = new KryptonRichTextBox();
            rtb.Text = "This page (" + page.Text + ") contains a rich text box control as example content. Your application could place anything you like here such as data entry controls, charts, data grids etc.\n\nTry dragging the page headers in order to rearrange the workspace layout.";
            rtb.Dock = DockStyle.Fill;
            rtb.StateCommon.Border.Draw = InheritBool.False;

            // Add rich text box as the contents of the page
            page.Padding = new Padding(5);
            page.Controls.Add(rtb);

            return page;
        }
Exemple #2
0
        private void kryptonWorkspace_PageSaving(object sender, PageSavingEventArgs e)
        {
            // Get access to the text box inside the page
            KryptonRichTextBox rtb = (KryptonRichTextBox)e.Page.Controls[0];

            // Save the text in the textbox into the per-page storage
            e.XmlWriter.WriteCData(rtb.Text);
        }
Exemple #3
0
        /// <summary>
        /// Initialize a new instance of the KryptonRichTextBoxActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonRichTextBoxActionList(KryptonRichTextBoxDesigner owner)
            : base(owner.Component)
        {
            // Remember the text box instance
            _richTextBox = owner.Component as KryptonRichTextBox;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
        /// <summary>
        /// Handles the Click event of the kbtnBrowse control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void kbtnBrowse_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            string str;

            openFileDialog.Title = "Open a Existing Krypton Palette File:";

            openFileDialog.Filter = "Krypton Palette XML Files (*.xml)|*.xml";

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                int paletteFileNumber = GetPaletteFileNumber(openFileDialog.FileName);

                if (paletteFileNumber == -1)
                {
                    KryptonMessageBox.Show($"File: '{ openFileDialog.FileName }' does not contain a valid palette definition.", "Select Palette", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
                else if (paletteFileNumber < 2)
                {
                    string[] fileName = new string[] { "File '", openFileDialog.FileName, "' contains palette format version '", paletteFileNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", 2.ToString(), "' and upwards." };

                    KryptonMessageBox.Show(string.Concat(fileName), "Incompatible Version", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
                else if (paletteFileNumber <= 17)
                {
                    krtbInput.Text = openFileDialog.FileName;

                    SetInputVersionNumber(paletteFileNumber);

                    FileInfo fileInfo = new FileInfo(openFileDialog.FileName);

                    str = (fileInfo.Name.IndexOf(fileInfo.Extension) <= 0 ? fileInfo.Name : fileInfo.Name.Substring(0, fileInfo.Name.IndexOf(fileInfo.Extension)));

                    string directoryName = fileInfo.DirectoryName;

                    if (!directoryName.EndsWith("\\"))
                    {
                        directoryName = string.Concat(directoryName, "\\");
                    }

                    KryptonRichTextBox richTextBox = krtbOutput;

                    string[] strArrays = new string[] { directoryName, str, "_v", 18.ToString(), fileInfo.Extension };

                    richTextBox.Text = string.Concat(strArrays);
                }
                else
                {
                    string[] fileName1 = new string[] { "File '", openFileDialog.FileName, "' contains palette format version '", paletteFileNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", 17.ToString(), "' and below." };

                    KryptonMessageBox.Show(string.Concat(fileName1), "Incompatible Version", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }

                UpdateState();
            }
        }
        /// <summary>
        /// Initialize a new instance of the KryptonRichTextBoxActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonRichTextBoxActionList(KryptonRichTextBoxDesigner owner)
            : base(owner.Component)
        {
            // Remember the text box instance
            _richTextBox = owner.Component as KryptonRichTextBox;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
        private KryptonPage CreateNewMemo(string text,
                                          string description,
                                          string memo,
                                          bool loaded)
        {
            // Define page name and images
            KryptonPage page = new KryptonPage();

            page.Text            = text;
            page.TextTitle       = description;
            page.TextDescription = description;
            page.ImageSmall      = MemoEditor.Properties.Resources.note16;
            page.ImageMedium     = MemoEditor.Properties.Resources.note24;
            page.ImageLarge      = MemoEditor.Properties.Resources.note32;

            // Place border between page and internal controls
            page.Padding = new Padding(5);

            // Use the tag to remember if the page was loaded or is new
            page.Tag = loaded;

            // Create a close button for the page
            ButtonSpecAny bsa = new ButtonSpecAny();

            bsa.Tag    = page;
            bsa.Type   = PaletteButtonSpecStyle.Close;
            bsa.Click += new EventHandler(OnClosePage);
            page.ButtonSpecs.Add(bsa);

            // We use the rich text box as the memo editor
            KryptonRichTextBox rtb = new KryptonRichTextBox();

            rtb.StateCommon.Border.Draw = InheritBool.False;
            rtb.Dock = DockStyle.Fill;
            rtb.Text = memo;
            rtb.Tag  = page;

            // Need to know when the user makes a change to the memo text
            rtb.TextChanged += new EventHandler(kryptonRichTextBox_TextChanged);

            // Add rich text box as content
            page.Controls.Add(rtb);

            return(page);
        }
        private void kryptonRichTextBox_TextChanged(object sender, EventArgs e)
        {
            // Find the page from the sender reference
            KryptonRichTextBox rtb  = (KryptonRichTextBox)sender;
            KryptonPage        page = (KryptonPage)rtb.Tag;

            // If the page is not already marked as modified
            if (!page.Text.EndsWith("*"))
            {
                // Mark as modified by adding a star to end of text name
                page.Text            = page.Text + "*";
                page.TextTitle       = page.TextTitle + "*";
                page.TextDescription = page.TextDescription + "*";

                // Change in page requires we update button/form state
                UpdateApplicationTitle();
                UpdateOptions();
            }
        }
Exemple #8
0
        private void UpdateParent(Control parentControl)
        {
            // Is there a change in the richtextbox or a change in
            // the parent control that is hosting the control...
            if ((parentControl != LastParentControl) ||
                (LastRichTextBox != _ribbonRichTextBox.RichTextBox))
            {
                // We only modify the parent and visible state if processing for correct container
                if ((_ribbonRichTextBox.RibbonContainer.RibbonGroup.ShowingAsPopup && (parentControl is VisualPopupGroup)) ||
                    (!_ribbonRichTextBox.RibbonContainer.RibbonGroup.ShowingAsPopup && !(parentControl is VisualPopupGroup)))
                {
                    // If we have added the custrom control to a parent before
                    if ((LastRichTextBox != null) && (LastParentControl != null))
                    {
                        // If that control is still a child of the old parent
                        if (LastParentControl.Controls.Contains(LastRichTextBox))
                        {
                            // Check for a collection that is based on the read only class
                            LastParentControl.Controls.Remove(LastRichTextBox);
                        }
                    }

                    // Remember the current control and new parent
                    LastRichTextBox   = _ribbonRichTextBox.RichTextBox;
                    LastParentControl = parentControl;

                    // If we have a new richtextbox and parent
                    if ((LastRichTextBox != null) && (LastParentControl != null))
                    {
                        // Ensure the control is not in the display area when first added
                        LastRichTextBox.Location = new Point(-LastRichTextBox.Width, -LastRichTextBox.Height);

                        // Check for the correct visible state of the richtextbox
                        UpdateVisible(LastRichTextBox);
                        UpdateEnabled(LastRichTextBox);

                        // Check for a collection that is based on the read only class
                        LastParentControl.Controls.Add(LastRichTextBox);
                    }
                }
            }
        }
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupRichTextBox class.
        /// </summary>
        public KryptonRibbonGroupRichTextBox()
        {
            // Default fields
            _visible = true;
            _enabled = true;
            _itemSizeCurrent = GroupItemSize.Medium;
            _shortcutKeys = Keys.None;
            _keyTip = "X";

            // Create the actual text box control and set initial settings
            _richTextBox = new KryptonRichTextBox();
            _richTextBox.InputControlStyle = InputControlStyle.Ribbon;
            _richTextBox.AlwaysActive = false;
            _richTextBox.MinimumSize = new Size(121, 0);
            _richTextBox.MaximumSize = new Size(121, 0);
            _richTextBox.Multiline = false;
            _richTextBox.ScrollBars = RichTextBoxScrollBars.None;
            _richTextBox.TabStop = false;

            // Hook into events to expose via our container
            _richTextBox.AcceptsTabChanged += new EventHandler(OnRichTextBoxAcceptsTabChanged);
            _richTextBox.TextChanged += new EventHandler(OnRichTextBoxTextChanged);
            _richTextBox.HideSelectionChanged += new EventHandler(OnRichTextBoxHideSelectionChanged);
            _richTextBox.ModifiedChanged += new EventHandler(OnRichTextBoxModifiedChanged);
            _richTextBox.MultilineChanged += new EventHandler(OnRichTextBoxMultilineChanged);
            _richTextBox.ReadOnlyChanged += new EventHandler(OnRichTextBoxReadOnlyChanged);
            _richTextBox.GotFocus += new EventHandler(OnRichTextBoxGotFocus);
            _richTextBox.LostFocus += new EventHandler(OnRichTextBoxLostFocus);
            _richTextBox.KeyDown += new KeyEventHandler(OnRichTextBoxKeyDown);
            _richTextBox.KeyUp += new KeyEventHandler(OnRichTextBoxKeyUp);
            _richTextBox.KeyPress += new KeyPressEventHandler(OnRichTextBoxKeyPress);
            _richTextBox.PreviewKeyDown += new PreviewKeyDownEventHandler(OnRichTextBoxPreviewKeyDown);
            _richTextBox.LinkClicked += new LinkClickedEventHandler(OnRichTextBoxLinkClicked);
            _richTextBox.Protected += new EventHandler(OnRichTextBoxProtected);
            _richTextBox.SelectionChanged += new EventHandler(OnRichTextBoxSelectionChanged);
            _richTextBox.HScroll += new EventHandler(OnRichTextBoxHScroll);
            _richTextBox.VScroll += new EventHandler(OnRichTextBoxVScroll);

            // Ensure we can track mouse events on the text box
            MonitorControl(_richTextBox);
        }
        private void SaveAsMemoPage(KryptonPage page)
        {
            // We must have a page to actually save
            if (page != null)
            {
                // Set the directory/filename into the dialog box
                FileInfo extractInfo = new FileInfo(page.TextDescription.TrimEnd('*'));
                saveFileDialog.FileName = extractInfo.Name;
                if (string.IsNullOrEmpty(extractInfo.DirectoryName))
                {
                    saveFileDialog.InitialDirectory = extractInfo.DirectoryName;
                }

                // If the user entered a valid filename for saving
                if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
                {
                    // Get access to the contained rich text box
                    KryptonRichTextBox rtb = (KryptonRichTextBox)page.Controls[0];

                    // Write out the contents to the file
                    FileInfo fileInfo = new FileInfo(saveFileDialog.FileName);
                    using (FileStream fileStream = fileInfo.OpenWrite())
                        using (StreamWriter streamWriter = new StreamWriter(fileStream))
                            streamWriter.Write(rtb.Text);

                    // Remove the dirty flag on the file
                    page.Text            = fileInfo.Name;
                    page.TextTitle       = fileInfo.Name;
                    page.TextDescription = fileInfo.FullName;

                    // Mark the page as associated with a file
                    page.Tag = true;

                    // Add the new filename to the recent docs list
                    AddRecentFile(fileInfo.FullName);

                    UpdateApplicationTitle();
                    UpdateOptions();
                }
            }
        }
Exemple #11
0
        private void PageDragStart(Point pt)
        {
            if (DragPageNotify != null)
            {
                // Create a page that will be dragged
                _dragPage                 = new KryptonPage();
                _dragPage.Text            = _dragNode.Text;
                _dragPage.TextTitle       = _dragNode.Text + " Title";
                _dragPage.TextDescription = _dragNode.Text + " Description";
                _dragPage.ImageSmall      = ImageList.Images[int.Parse((string)_dragNode.Tag)];
                _dragPage.Tag             = _dragNode.Tag;

                // Create a rich text box with some sample text inside
                KryptonRichTextBox rtb = new KryptonRichTextBox();
                rtb.Text = "This page (" + _dragPage.Text + ") contains a rich text box control as example content.";
                rtb.Dock = DockStyle.Fill;
                rtb.StateCommon.Border.Draw = InheritBool.False;

                // Add rich text box as the contents of the page
                _dragPage.Padding = new Padding(5);
                _dragPage.Controls.Add(rtb);

                // Give the notify interface a chance to reject the attempt to drag
                PageDragCancelEventArgs de = new PageDragCancelEventArgs(PointToScreen(pt), Point.Empty, this, new KryptonPage[] { _dragPage });
                DragPageNotify.PageDragStart(this, null, de);

                if (de.Cancel)
                {
                    // No longer need the temporary drag page
                    _dragPage.Dispose();
                    _dragPage = null;
                }
                else
                {
                    _dragging = true;
                    Capture   = true;
                }
            }
        }
        private void kryptonWorkspace_PageLoading(object sender, PageLoadingEventArgs e)
        {
            KryptonRichTextBox rtb;

            // If a new page then it does not have any children...
            if (e.Page.Controls.Count == 0)
            {
                // Add a rich text box as the child of the page
                rtb = new KryptonRichTextBox();
                rtb.Dock = DockStyle.Fill;
                rtb.StateCommon.Border.Draw = InheritBool.False;
                e.Page.Controls.Add(rtb);
                e.Page.Padding = new Padding(5);
            }
            else
                rtb = (KryptonRichTextBox)e.Page.Controls[0];

            // Move past the current xml element to the child CData
            e.XmlReader.Read();

            // Read in the stored text and use it in the rich text box
            rtb.Text = e.XmlReader.ReadContentAsString();
        }
Exemple #13
0
        /// <summary>Searches for a selected word.
        /// Adapted from: https://www.youtube.com/watch?v=a7LUa4vjuRE
        /// </summary>
        /// <param name="wordToFind">The word to find.</param>
        /// <param name="target">The target <see cref="KryptonRichTextBox" />.</param>
        /// <param name="highlightColour">The text highlight colour.</param>
        /// <param name="pattern">The pattern to find.</param>
        public static void SearchForWord(string wordToFind, KryptonRichTextBox target, Color highlightColour, RichTextBoxFinds pattern = RichTextBoxFinds.MatchCase)
        {
            try
            {
                int start = 0, end = target.Text.LastIndexOf(wordToFind);

                target.SelectAll();

                target.SelectionBackColor = Color.White;

                while (start < end)
                {
                    target.Find(wordToFind, start, target.TextLength, pattern);

                    target.SelectionBackColor = highlightColour;

                    start = target.Text.IndexOf(wordToFind, start) + 1;
                }
            }
            catch (Exception e)
            {
                ExceptionHandler.CaptureException(e);
            }
        }
Exemple #14
0
        private KryptonPage CreatePage(string title, int imageIndex)
        {
            // Create a new page and give it a name and image
            KryptonPage page = new KryptonPage();

            page.Text            = title;
            page.TextTitle       = title + " Title";
            page.TextDescription = title + " Description";
            page.ImageSmall      = imageList.Images[imageIndex];
            page.Tag             = imageIndex.ToString();

            // Create a rich text box with some sample text inside
            KryptonRichTextBox rtb = new KryptonRichTextBox();

            rtb.Text = "This page (" + page.Text + ") contains a rich text box control as example content.";
            rtb.Dock = DockStyle.Fill;
            rtb.StateCommon.Border.Draw = InheritBool.False;

            // Add rich text box as the contents of the page
            page.Padding = new Padding(5);
            page.Controls.Add(rtb);

            return(page);
        }
        /// <summary>
        /// Initializes the designer with the specified component.
        /// </summary>
        /// <param name="component">The IComponent to associate the designer with.</param>
        public override void Initialize(IComponent component)
        {
            // Let base class do standard stuff
            base.Initialize(component);

            // The resizing handles around the control need to change depending on the
            // value of the AutoSize and AutoSizeMode properties. When in AutoSize you
            // do not get the resizing handles, otherwise you do.
            AutoResizeHandles = true;

            // Cast to correct type
            _richTextBox = component as KryptonRichTextBox;

            if (_richTextBox != null)
            {
                // Hook into rich textbox events
                _richTextBox.GetViewManager().MouseUpProcessed += new MouseEventHandler(OnTextBoxMouseUp);
                _richTextBox.GetViewManager().DoubleClickProcessed += new PointHandler(OnTextBoxDoubleClick);
            }

            // Get access to the design services
            _designerHost = (IDesignerHost)GetService(typeof(IDesignerHost));
            _changeService = (IComponentChangeService)GetService(typeof(IComponentChangeService));
            _selectionService = (ISelectionService)GetService(typeof(ISelectionService));

            // We need to know when we are being removed
            _changeService.ComponentRemoving += new ComponentEventHandler(OnComponentRemoving);
        }
        private void PageDragStart(Point pt)
        {
            if (DragPageNotify != null)
            {
                // Create a page that will be dragged
                _dragPage = new KryptonPage();
                _dragPage.Text = _dragNode.Text;
                _dragPage.TextTitle = _dragNode.Text + " Title";
                _dragPage.TextDescription = _dragNode.Text + " Description";
                _dragPage.ImageSmall = ImageList.Images[int.Parse((string)_dragNode.Tag)];
                _dragPage.Tag = _dragNode.Tag;

                // Create a rich text box with some sample text inside
                KryptonRichTextBox rtb = new KryptonRichTextBox();
                rtb.Text = "This page (" + _dragPage.Text + ") contains a rich text box control as example content.";
                rtb.Dock = DockStyle.Fill;
                rtb.StateCommon.Border.Draw = InheritBool.False;

                // Add rich text box as the contents of the page
                _dragPage.Padding = new Padding(5);
                _dragPage.Controls.Add(rtb);

                // Give the notify interface a chance to reject the attempt to drag
                PageDragCancelEventArgs de = new PageDragCancelEventArgs(PointToScreen(pt), Point.Empty, this, new KryptonPage[] { _dragPage });
                DragPageNotify.PageDragStart(this, null, de);

                if (de.Cancel)
                {
                    // No longer need the temporary drag page
                    _dragPage.Dispose();
                    _dragPage = null;
                }
                else
                {
                    _dragging = true;
                    Capture = true;
                }
            }
        }
        private void UpdateParent(Control parentControl)
        {
            // Is there a change in the richtextbox or a change in
            // the parent control that is hosting the control...
            if ((parentControl != LastParentControl) ||
                (LastRichTextBox != _ribbonRichTextBox.RichTextBox))
            {
                // We only modify the parent and visible state if processing for correct container
                if ((_ribbonRichTextBox.RibbonContainer.RibbonGroup.ShowingAsPopup && (parentControl is VisualPopupGroup)) ||
                    (!_ribbonRichTextBox.RibbonContainer.RibbonGroup.ShowingAsPopup && !(parentControl is VisualPopupGroup)))
                {
                    // If we have added the custrom control to a parent before
                    if ((LastRichTextBox != null) && (LastParentControl != null))
                    {
                        // If that control is still a child of the old parent
                        if (LastParentControl.Controls.Contains(LastRichTextBox))
                        {
                            // Check for a collection that is based on the read only class
                            LastParentControl.Controls.Remove(LastRichTextBox);
                        }
                    }

                    // Remember the current control and new parent
                    LastRichTextBox = _ribbonRichTextBox.RichTextBox;
                    LastParentControl = parentControl;

                    // If we have a new richtextbox and parent
                    if ((LastRichTextBox != null) && (LastParentControl != null))
                    {
                        // Ensure the control is not in the display area when first added
                        LastRichTextBox.Location = new Point(-LastRichTextBox.Width, -LastRichTextBox.Height);

                        // Check for the correct visible state of the richtextbox
                        UpdateVisible(LastRichTextBox);
                        UpdateEnabled(LastRichTextBox);

                        // Check for a collection that is based on the read only class
                        LastParentControl.Controls.Add(LastRichTextBox);
                    }
                }
            }
        }
Exemple #18
0
        private KryptonPage CreateNewMemo(string text, 
                                          string description, 
                                          string memo,
                                          bool loaded)
        {
            // Define page name and images
            KryptonPage page = new KryptonPage();
            page.Text = text;
            page.TextTitle = description;
            page.TextDescription = description;
            page.ImageSmall = MemoEditor.Properties.Resources.note16;
            page.ImageMedium = MemoEditor.Properties.Resources.note24;
            page.ImageLarge = MemoEditor.Properties.Resources.note32;

            // Place border between page and internal controls
            page.Padding = new Padding(5);

            // Use the tag to remember if the page was loaded or is new
            page.Tag = loaded;

            // Create a close button for the page
            ButtonSpecAny bsa = new ButtonSpecAny();
            bsa.Tag = page;
            bsa.Type = PaletteButtonSpecStyle.Close;
            bsa.Click += new EventHandler(OnClosePage);
            page.ButtonSpecs.Add(bsa);

            // We use the rich text box as the memo editor
            KryptonRichTextBox rtb = new KryptonRichTextBox();
            rtb.StateCommon.Border.Draw = InheritBool.False;
            rtb.Dock = DockStyle.Fill;
            rtb.Text = memo;
            rtb.Tag = page;

            // Need to know when the user makes a change to the memo text
            rtb.TextChanged += new EventHandler(kryptonRichTextBox_TextChanged);

            // Add rich text box as content
            page.Controls.Add(rtb);

            return page;
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KryptonAboutWindow));
     this.kryptonPanel1     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.logoPictureBox    = new System.Windows.Forms.PictureBox();
     this.klblProductName   = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblVersion       = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblCopyright     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblCompanyName   = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.krtbDescription   = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox();
     this.kbtnOk            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.tableLayoutPanel1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(587, 416);
     this.kryptonPanel1.TabIndex = 0;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.BackColor   = System.Drawing.Color.Transparent;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F));
     this.tableLayoutPanel1.Controls.Add(this.logoPictureBox, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.klblProductName, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.klblVersion, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.klblCopyright, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.klblCompanyName, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.krtbDescription, 1, 4);
     this.tableLayoutPanel1.Controls.Add(this.kbtnOk, 1, 5);
     this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 6;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 37.5F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(563, 392);
     this.tableLayoutPanel1.TabIndex = 1;
     //
     // logoPictureBox
     //
     this.logoPictureBox.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.logoPictureBox.Image    = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
     this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
     this.logoPictureBox.Name     = "logoPictureBox";
     this.tableLayoutPanel1.SetRowSpan(this.logoPictureBox, 6);
     this.logoPictureBox.Size     = new System.Drawing.Size(179, 386);
     this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.logoPictureBox.TabIndex = 13;
     this.logoPictureBox.TabStop  = false;
     //
     // klblProductName
     //
     this.klblProductName.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblProductName.Location = new System.Drawing.Point(188, 3);
     this.klblProductName.Name     = "klblProductName";
     this.klblProductName.Size     = new System.Drawing.Size(372, 43);
     this.klblProductName.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblProductName.TabIndex    = 14;
     this.klblProductName.Values.Text = "{PRODUCT-NAME}";
     //
     // klblVersion
     //
     this.klblVersion.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblVersion.Location = new System.Drawing.Point(188, 52);
     this.klblVersion.Name     = "klblVersion";
     this.klblVersion.Size     = new System.Drawing.Size(372, 43);
     this.klblVersion.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblVersion.TabIndex    = 15;
     this.klblVersion.Values.Text = "{VERSION}";
     //
     // klblCopyright
     //
     this.klblCopyright.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblCopyright.Location = new System.Drawing.Point(188, 101);
     this.klblCopyright.Name     = "klblCopyright";
     this.klblCopyright.Size     = new System.Drawing.Size(372, 43);
     this.klblCopyright.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCopyright.TabIndex    = 16;
     this.klblCopyright.Values.Text = "{COPYRIGHT}";
     //
     // klblCompanyName
     //
     this.klblCompanyName.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblCompanyName.Location = new System.Drawing.Point(188, 150);
     this.klblCompanyName.Name     = "klblCompanyName";
     this.klblCompanyName.Size     = new System.Drawing.Size(372, 43);
     this.klblCompanyName.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCompanyName.TabIndex    = 17;
     this.klblCompanyName.Values.Text = "{COMPANY-NAME}";
     //
     // krtbDescription
     //
     this.krtbDescription.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.krtbDescription.Location = new System.Drawing.Point(188, 199);
     this.krtbDescription.Name     = "krtbDescription";
     this.krtbDescription.ReadOnly = true;
     this.krtbDescription.Size     = new System.Drawing.Size(372, 141);
     this.krtbDescription.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.krtbDescription.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.krtbDescription.TabIndex = 18;
     this.krtbDescription.Text     = "{DESCRIPTION}";
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.Location = new System.Drawing.Point(450, 364);
     this.kbtnOk.Name     = "kbtnOk";
     this.kbtnOk.Size     = new System.Drawing.Size(90, 25);
     this.kbtnOk.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.TabIndex    = 21;
     this.kbtnOk.Values.Text = "&Ok";
     //
     // KryptonAboutWindow
     //
     this.ClientSize = new System.Drawing.Size(587, 416);
     this.Controls.Add(this.kryptonPanel1);
     this.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonAboutWindow";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "About {0}";
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.kryptonPanel1        = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnCancel           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1               = new System.Windows.Forms.Panel();
     this.kryptonPanel2        = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLabel1        = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.krtbStringCollection = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox();
     this.kbtnOk               = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOk);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 392);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(646, 57);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kbtnCancel
     //
     this.kbtnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.kbtnCancel.Location     = new System.Drawing.Point(543, 6);
     this.kbtnCancel.Name         = "kbtnCancel";
     this.kbtnCancel.Size         = new System.Drawing.Size(91, 39);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 0;
     this.kbtnCancel.Values.Text = "Canc&el";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 389);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(646, 3);
     this.panel1.TabIndex  = 4;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.krtbStringCollection);
     this.kryptonPanel2.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(646, 389);
     this.kryptonPanel2.TabIndex = 5;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location = new System.Drawing.Point(13, 13);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(381, 26);
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel1.TabIndex    = 0;
     this.kryptonLabel1.Values.Text = "Enter the strings in the collection (one per line):";
     //
     // krtbStringCollection
     //
     this.krtbStringCollection.Location   = new System.Drawing.Point(13, 45);
     this.krtbStringCollection.Name       = "krtbStringCollection";
     this.krtbStringCollection.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedBoth;
     this.krtbStringCollection.Size       = new System.Drawing.Size(621, 328);
     this.krtbStringCollection.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.krtbStringCollection.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.krtbStringCollection.TabIndex     = 1;
     this.krtbStringCollection.Text         = "";
     this.krtbStringCollection.TextChanged += new System.EventHandler(this.krtbStringCollection_TextChanged);
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.Location = new System.Drawing.Point(446, 6);
     this.kbtnOk.Name     = "kbtnOk";
     this.kbtnOk.Size     = new System.Drawing.Size(91, 39);
     this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.TabIndex    = 1;
     this.kbtnOk.Values.Text = "&Ok";
     this.kbtnOk.Click      += new System.EventHandler(this.kbtnOk_Click);
     //
     // KryptonStringCollectionDialog
     //
     this.AcceptButton = this.kbtnOk;
     this.CancelButton = this.kbtnCancel;
     this.ClientSize   = new System.Drawing.Size(646, 449);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonStringCollectionDialog";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "String Collection Editor";
     this.Load           += new System.EventHandler(this.KryptonStringCollectionDialog_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
Exemple #21
0
        /**************************************************************\
         * Create a new tab (for editing, NORMAL mode)                *
         *   - Add the component.                                     *
         *   - Display the content of the xml                         *
         *   - Manage the event when clicking on "Close".             *
        \**************************************************************/
        public void AddTab(String tabName, String path, string defaultMode)
        {
            KryptonPage navigatorTab = new KryptonPage();
            ButtonSpecAny closeButton = new ButtonSpecAny();
            XMLLoader.XMLForm XMLLoader = new XMLLoader.XMLForm();

            if(defaultMode.Equals("CREATION"))
            {
                try
                {
                    GC.Collect();
                    XMLLoader.Dock = DockStyle.Fill;
                    XMLLoader.init(Properties.Settings.Default.interpretation_template, _ButtonHelp);
                    XMLLoader.loadXML(path);
                    XMLLoader.Tag = path;
                    navigatorTab.Tag = true;
                    navigatorTab.Controls.Add(XMLLoader);
                    switchButtonSpec.ExtraText = "XML Mode";
                    EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.True;
                }

                // If no connection, New tab (XML mode)
                catch (Exception ex)
                {
                    var result = KryptonMessageBox.Show("Unable to access XML Template (maybe there is no network). No Creation Mode available.\n\n\n" + ex, "Error",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Warning);

                    KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                    richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                    richTextBox.Name = tabName + "RichTextBox";
                    richTextBox.Text = "";
                    richTextBox.Tag = path;
                    navigatorTab.Tag = false;
                    switchButtonSpec.ExtraText = "Creation Mode";
                    EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.False;
                    navigatorTab.Controls.Add(richTextBox);
                    DisplayXml(richTextBox);
                }
            }

            else if (defaultMode.Equals("XML"))
            {
                KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                richTextBox.Name = tabName + "RichTextBox";
                richTextBox.Text = "";
                richTextBox.Tag = path;
                navigatorTab.Tag = false;
                switchButtonSpec.ExtraText = "Creation Mode";
                EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.False;
                navigatorTab.Controls.Add(richTextBox);
                DisplayXml(richTextBox);
            }

            navigatorTab.Name = tabName + "Tab";
            navigatorTab.Text = tabName;

            closeButton.Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.PendantClose;
            navigatorTab.ButtonSpecs.AddRange(new ComponentFactory.Krypton.Toolkit.ButtonSpecAny[] {
            closeButton});

            navigatorTab.ButtonSpecs[0].Click += new EventHandler(CloseNavigatorTab);
            navigatorTab.ButtonSpecs[0].Tag = navigatorTab;

            NavigatorControl.Pages.Add(navigatorTab);
        }
Exemple #22
0
 private void InitializeComponent()
 {
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues5 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MRUExample));
     this.kryptonPanel1                    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.krtbEditor                       = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox();
     this.ms                               = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.newToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
     this.openToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator               = new System.Windows.Forms.ToolStripSeparator();
     this.saveToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.saveAsToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1              = new System.Windows.Forms.ToolStripSeparator();
     this.printToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.printPreviewToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator2              = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.editToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.undoToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.redoToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator3              = new System.Windows.Forms.ToolStripSeparator();
     this.cutToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
     this.copyToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.pasteToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator4              = new System.Windows.Forms.ToolStripSeparator();
     this.selectAllToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this.toolsToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.customizeToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this.optionsToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.contentsToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.indexToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.searchToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator5              = new System.Windows.Forms.ToolStripSeparator();
     this.aboutToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.recentDocumentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.ms.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.krtbEditor);
     this.kryptonPanel1.Controls.Add(this.ms);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1451, 864);
     this.kryptonPanel1.TabIndex = 0;
     //
     // krtbEditor
     //
     this.krtbEditor.Location                      = new System.Drawing.Point(12, 41);
     this.krtbEditor.Name                          = "krtbEditor";
     this.krtbEditor.Size                          = new System.Drawing.Size(1447, 811);
     this.krtbEditor.TabIndex                      = 0;
     this.krtbEditor.Text                          = "kryptonRichTextBox1";
     popupPositionValues5.PlacementMode            = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom;
     this.krtbEditor.ToolTipValues.ToolTipPosition = popupPositionValues5;
     //
     // ms
     //
     this.ms.Dock = System.Windows.Forms.DockStyle.None;
     this.ms.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.ms.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem,
         this.editToolStripMenuItem,
         this.toolsToolStripMenuItem,
         this.helpToolStripMenuItem
     });
     this.ms.Location = new System.Drawing.Point(0, 0);
     this.ms.Name     = "ms";
     this.ms.Size     = new System.Drawing.Size(295, 24);
     this.ms.TabIndex = 1;
     this.ms.Text     = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.newToolStripMenuItem,
         this.openToolStripMenuItem,
         this.toolStripSeparator,
         this.saveToolStripMenuItem,
         this.saveAsToolStripMenuItem,
         this.recentDocumentsToolStripMenuItem,
         this.toolStripSeparator1,
         this.printToolStripMenuItem,
         this.printPreviewToolStripMenuItem,
         this.toolStripSeparator2,
         this.exitToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "&File";
     //
     // newToolStripMenuItem
     //
     this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image")));
     this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.newToolStripMenuItem.Name         = "newToolStripMenuItem";
     this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     this.newToolStripMenuItem.Size         = new System.Drawing.Size(180, 22);
     this.newToolStripMenuItem.Text         = "&New";
     //
     // openToolStripMenuItem
     //
     this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image")));
     this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.openToolStripMenuItem.Name         = "openToolStripMenuItem";
     this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this.openToolStripMenuItem.Size         = new System.Drawing.Size(180, 22);
     this.openToolStripMenuItem.Text         = "&Open";
     this.openToolStripMenuItem.Click       += new System.EventHandler(this.OpenToolStripMenuItem_Click);
     //
     // toolStripSeparator
     //
     this.toolStripSeparator.Name = "toolStripSeparator";
     this.toolStripSeparator.Size = new System.Drawing.Size(177, 6);
     //
     // saveToolStripMenuItem
     //
     this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
     this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.saveToolStripMenuItem.Name         = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     this.saveToolStripMenuItem.Size         = new System.Drawing.Size(180, 22);
     this.saveToolStripMenuItem.Text         = "&Save";
     this.saveToolStripMenuItem.Click       += new System.EventHandler(this.SaveToolStripMenuItem_Click);
     //
     // saveAsToolStripMenuItem
     //
     this.saveAsToolStripMenuItem.Name   = "saveAsToolStripMenuItem";
     this.saveAsToolStripMenuItem.Size   = new System.Drawing.Size(180, 22);
     this.saveAsToolStripMenuItem.Text   = "Save &As";
     this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.SaveAsToolStripMenuItem_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6);
     //
     // printToolStripMenuItem
     //
     this.printToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripMenuItem.Image")));
     this.printToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.printToolStripMenuItem.Name         = "printToolStripMenuItem";
     this.printToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
     this.printToolStripMenuItem.Size         = new System.Drawing.Size(180, 22);
     this.printToolStripMenuItem.Text         = "&Print";
     //
     // printPreviewToolStripMenuItem
     //
     this.printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewToolStripMenuItem.Image")));
     this.printPreviewToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.printPreviewToolStripMenuItem.Name = "printPreviewToolStripMenuItem";
     this.printPreviewToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.printPreviewToolStripMenuItem.Text = "Print Pre&view";
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.exitToolStripMenuItem.Text = "E&xit";
     //
     // editToolStripMenuItem
     //
     this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.undoToolStripMenuItem,
         this.redoToolStripMenuItem,
         this.toolStripSeparator3,
         this.cutToolStripMenuItem,
         this.copyToolStripMenuItem,
         this.pasteToolStripMenuItem,
         this.toolStripSeparator4,
         this.selectAllToolStripMenuItem
     });
     this.editToolStripMenuItem.Name = "editToolStripMenuItem";
     this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
     this.editToolStripMenuItem.Text = "&Edit";
     //
     // undoToolStripMenuItem
     //
     this.undoToolStripMenuItem.Name         = "undoToolStripMenuItem";
     this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
     this.undoToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.undoToolStripMenuItem.Text         = "&Undo";
     //
     // redoToolStripMenuItem
     //
     this.redoToolStripMenuItem.Name         = "redoToolStripMenuItem";
     this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
     this.redoToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.redoToolStripMenuItem.Text         = "&Redo";
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(141, 6);
     //
     // cutToolStripMenuItem
     //
     this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image")));
     this.cutToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.cutToolStripMenuItem.Name         = "cutToolStripMenuItem";
     this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
     this.cutToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.cutToolStripMenuItem.Text         = "Cu&t";
     //
     // copyToolStripMenuItem
     //
     this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image")));
     this.copyToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.copyToolStripMenuItem.Name         = "copyToolStripMenuItem";
     this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
     this.copyToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.copyToolStripMenuItem.Text         = "&Copy";
     //
     // pasteToolStripMenuItem
     //
     this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image")));
     this.pasteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.pasteToolStripMenuItem.Name         = "pasteToolStripMenuItem";
     this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
     this.pasteToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.pasteToolStripMenuItem.Text         = "&Paste";
     //
     // toolStripSeparator4
     //
     this.toolStripSeparator4.Name = "toolStripSeparator4";
     this.toolStripSeparator4.Size = new System.Drawing.Size(141, 6);
     //
     // selectAllToolStripMenuItem
     //
     this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
     this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(144, 22);
     this.selectAllToolStripMenuItem.Text = "Select &All";
     //
     // toolsToolStripMenuItem
     //
     this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.customizeToolStripMenuItem,
         this.optionsToolStripMenuItem
     });
     this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
     this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
     this.toolsToolStripMenuItem.Text = "&Tools";
     //
     // customizeToolStripMenuItem
     //
     this.customizeToolStripMenuItem.Name = "customizeToolStripMenuItem";
     this.customizeToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
     this.customizeToolStripMenuItem.Text = "&Customize";
     //
     // optionsToolStripMenuItem
     //
     this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
     this.optionsToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
     this.optionsToolStripMenuItem.Text = "&Options";
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.contentsToolStripMenuItem,
         this.indexToolStripMenuItem,
         this.searchToolStripMenuItem,
         this.toolStripSeparator5,
         this.aboutToolStripMenuItem
     });
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
     this.helpToolStripMenuItem.Text = "&Help";
     //
     // contentsToolStripMenuItem
     //
     this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem";
     this.contentsToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
     this.contentsToolStripMenuItem.Text = "&Contents";
     //
     // indexToolStripMenuItem
     //
     this.indexToolStripMenuItem.Name = "indexToolStripMenuItem";
     this.indexToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
     this.indexToolStripMenuItem.Text = "&Index";
     //
     // searchToolStripMenuItem
     //
     this.searchToolStripMenuItem.Name = "searchToolStripMenuItem";
     this.searchToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
     this.searchToolStripMenuItem.Text = "&Search";
     //
     // toolStripSeparator5
     //
     this.toolStripSeparator5.Name = "toolStripSeparator5";
     this.toolStripSeparator5.Size = new System.Drawing.Size(119, 6);
     //
     // aboutToolStripMenuItem
     //
     this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
     this.aboutToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
     this.aboutToolStripMenuItem.Text = "&About...";
     //
     // recentDocumentsToolStripMenuItem
     //
     this.recentDocumentsToolStripMenuItem.Name = "recentDocumentsToolStripMenuItem";
     this.recentDocumentsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.recentDocumentsToolStripMenuItem.Text = "Re&cent Documents";
     //
     // MRUExample
     //
     this.ClientSize = new System.Drawing.Size(1451, 864);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip   = this.ms;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "MRUExample";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Most Recentlty Used Example";
     this.Load           += new System.EventHandler(this.MRUExample_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.ms.ResumeLayout(false);
     this.ms.PerformLayout();
     this.ResumeLayout(false);
 }
Exemple #23
0
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
     this.statusStrip1  = new System.Windows.Forms.StatusStrip();
     this.tslInfo       = new System.Windows.Forms.ToolStripStatusLabel();
     this.tspbProgress  = new System.Windows.Forms.ToolStripProgressBar();
     this.panel1        = new System.Windows.Forms.Panel();
     this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
     this.kryptonCancelDialogButton1 = new Krypton.Toolkit.Suite.Extended.Dialogs.KryptonCancelDialogButton();
     this.kbtnLessDetails            = new Krypton.Toolkit.KryptonButton();
     this.kbtnCopy              = new Krypton.Toolkit.KryptonButton();
     this.kbtnSave              = new Krypton.Toolkit.KryptonButton();
     this.kbtnSend              = new Krypton.Toolkit.KryptonButton();
     this.kryptonPanel3         = new Krypton.Toolkit.KryptonPanel();
     this.kryptonNavigator1     = new Krypton.Navigator.KryptonNavigator();
     this.kryptonPage1          = new Krypton.Navigator.KryptonPage();
     this.krtbUserExpanation    = new Krypton.Toolkit.KryptonRichTextBox();
     this.kryptonLabel6         = new Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel4         = new Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel5         = new Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel3         = new Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel2         = new Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel1         = new Krypton.Toolkit.KryptonLabel();
     this.krtbExceptionMessage  = new Krypton.Toolkit.KryptonRichTextBox();
     this.picGeneral            = new System.Windows.Forms.PictureBox();
     this.kryptonPage2          = new Krypton.Navigator.KryptonPage();
     this.krtbExceptionLarge    = new Krypton.Toolkit.KryptonRichTextBox();
     this.kryptonPage3          = new Krypton.Navigator.KryptonPage();
     this.lvAssemblies          = new System.Windows.Forms.ListView();
     this.kryptonPage4          = new Krypton.Navigator.KryptonPage();
     this.ktvEnvironment        = new Krypton.Toolkit.KryptonTreeView();
     this.kryptonBorderedLabel1 = new Krypton.Toolkit.Suite.Extended.Base.KryptonBorderedLabel();
     this.kryptonBorderedLabel2 = new Krypton.Toolkit.Suite.Extended.Base.KryptonBorderedLabel();
     this.kryptonBorderedLabel3 = new Krypton.Toolkit.Suite.Extended.Base.KryptonBorderedLabel();
     this.kryptonBorderedLabel4 = new Krypton.Toolkit.Suite.Extended.Base.KryptonBorderedLabel();
     this.kryptonBorderedLabel5 = new Krypton.Toolkit.Suite.Extended.Base.KryptonBorderedLabel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
     this.kryptonPanel3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
     this.kryptonNavigator1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit();
     this.kryptonPage1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picGeneral)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).BeginInit();
     this.kryptonPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage3)).BeginInit();
     this.kryptonPage3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage4)).BeginInit();
     this.kryptonPage4.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.statusStrip1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 566);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(613, 22);
     this.kryptonPanel1.TabIndex = 0;
     //
     // statusStrip1
     //
     this.statusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tslInfo,
         this.tspbProgress
     });
     this.statusStrip1.Location   = new System.Drawing.Point(0, 0);
     this.statusStrip1.Name       = "statusStrip1";
     this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode;
     this.statusStrip1.Size       = new System.Drawing.Size(613, 22);
     this.statusStrip1.TabIndex   = 0;
     this.statusStrip1.Text       = "statusStrip1";
     //
     // tslInfo
     //
     this.tslInfo.Name      = "tslInfo";
     this.tslInfo.Size      = new System.Drawing.Size(496, 17);
     this.tslInfo.Spring    = true;
     this.tslInfo.Text      = "Loading system information...";
     this.tslInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // tspbProgress
     //
     this.tspbProgress.Name = "tspbProgress";
     this.tspbProgress.Size = new System.Drawing.Size(100, 16);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 522);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(613, 3);
     this.panel1.TabIndex  = 2;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.kryptonCancelDialogButton1);
     this.kryptonPanel2.Controls.Add(this.kbtnLessDetails);
     this.kryptonPanel2.Controls.Add(this.kbtnCopy);
     this.kryptonPanel2.Controls.Add(this.kbtnSave);
     this.kryptonPanel2.Controls.Add(this.kbtnSend);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 525);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(613, 41);
     this.kryptonPanel2.TabIndex = 3;
     //
     // kryptonCancelDialogButton1
     //
     this.kryptonCancelDialogButton1.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.kryptonCancelDialogButton1.Location     = new System.Drawing.Point(515, 7);
     this.kryptonCancelDialogButton1.Name         = "kryptonCancelDialogButton1";
     this.kryptonCancelDialogButton1.ParentWindow = null;
     this.kryptonCancelDialogButton1.Size         = new System.Drawing.Size(90, 25);
     this.kryptonCancelDialogButton1.TabIndex     = 9;
     this.kryptonCancelDialogButton1.Values.Text  = "C&ancel";
     //
     // kbtnLessDetails
     //
     this.kbtnLessDetails.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnLessDetails.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnLessDetails.Location     = new System.Drawing.Point(130, 7);
     this.kbtnLessDetails.Name         = "kbtnLessDetails";
     this.kbtnLessDetails.Size         = new System.Drawing.Size(90, 25);
     this.kbtnLessDetails.TabIndex     = 8;
     this.kbtnLessDetails.Values.Text  = "Less &Details";
     //
     // kbtnCopy
     //
     this.kbtnCopy.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCopy.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnCopy.Location     = new System.Drawing.Point(226, 7);
     this.kbtnCopy.Name         = "kbtnCopy";
     this.kbtnCopy.Size         = new System.Drawing.Size(90, 25);
     this.kbtnCopy.TabIndex     = 7;
     this.kbtnCopy.Values.Text  = "&Copy";
     //
     // kbtnSave
     //
     this.kbtnSave.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnSave.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnSave.Location     = new System.Drawing.Point(322, 7);
     this.kbtnSave.Name         = "kbtnSave";
     this.kbtnSave.Size         = new System.Drawing.Size(90, 25);
     this.kbtnSave.TabIndex     = 6;
     this.kbtnSave.Values.Text  = "S&ave";
     //
     // kbtnSend
     //
     this.kbtnSend.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnSend.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnSend.Location     = new System.Drawing.Point(418, 7);
     this.kbtnSend.Name         = "kbtnSend";
     this.kbtnSend.Size         = new System.Drawing.Size(90, 25);
     this.kbtnSend.TabIndex     = 5;
     this.kbtnSend.Values.Text  = "S&end";
     //
     // kryptonPanel3
     //
     this.kryptonPanel3.Controls.Add(this.kryptonNavigator1);
     this.kryptonPanel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel3.Name     = "kryptonPanel3";
     this.kryptonPanel3.Size     = new System.Drawing.Size(613, 522);
     this.kryptonPanel3.TabIndex = 4;
     //
     // kryptonNavigator1
     //
     this.kryptonNavigator1.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
     this.kryptonNavigator1.Location = new System.Drawing.Point(12, 12);
     this.kryptonNavigator1.Name     = "kryptonNavigator1";
     this.kryptonNavigator1.Pages.AddRange(new Krypton.Navigator.KryptonPage[] {
         this.kryptonPage1,
         this.kryptonPage2,
         this.kryptonPage3,
         this.kryptonPage4
     });
     this.kryptonNavigator1.SelectedIndex = 0;
     this.kryptonNavigator1.Size          = new System.Drawing.Size(591, 500);
     this.kryptonNavigator1.TabIndex      = 0;
     this.kryptonNavigator1.Text          = "kryptonNavigator1";
     //
     // kryptonPage1
     //
     this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage1.Controls.Add(this.kryptonBorderedLabel5);
     this.kryptonPage1.Controls.Add(this.kryptonBorderedLabel4);
     this.kryptonPage1.Controls.Add(this.kryptonBorderedLabel3);
     this.kryptonPage1.Controls.Add(this.kryptonBorderedLabel2);
     this.kryptonPage1.Controls.Add(this.kryptonBorderedLabel1);
     this.kryptonPage1.Controls.Add(this.krtbUserExpanation);
     this.kryptonPage1.Controls.Add(this.kryptonLabel6);
     this.kryptonPage1.Controls.Add(this.kryptonLabel4);
     this.kryptonPage1.Controls.Add(this.kryptonLabel5);
     this.kryptonPage1.Controls.Add(this.kryptonLabel3);
     this.kryptonPage1.Controls.Add(this.kryptonLabel2);
     this.kryptonPage1.Controls.Add(this.kryptonLabel1);
     this.kryptonPage1.Controls.Add(this.krtbExceptionMessage);
     this.kryptonPage1.Controls.Add(this.picGeneral);
     this.kryptonPage1.Flags          = 65534;
     this.kryptonPage1.LastVisibleSet = true;
     this.kryptonPage1.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage1.Name           = "kryptonPage1";
     this.kryptonPage1.Size           = new System.Drawing.Size(589, 473);
     this.kryptonPage1.Text           = "General";
     this.kryptonPage1.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage1.UniqueName     = "08a4072e2e444d618f93b1769d0f5934";
     //
     // krtbUserExpanation
     //
     this.krtbUserExpanation.Location = new System.Drawing.Point(22, 265);
     this.krtbUserExpanation.Name     = "krtbUserExpanation";
     this.krtbUserExpanation.Size     = new System.Drawing.Size(552, 195);
     this.krtbUserExpanation.StateCommon.Back.Color1 = System.Drawing.Color.Cornsilk;
     this.krtbUserExpanation.TabIndex = 39;
     this.krtbUserExpanation.Text     = "";
     //
     // kryptonLabel6
     //
     this.kryptonLabel6.Location    = new System.Drawing.Point(22, 238);
     this.kryptonLabel6.Name        = "kryptonLabel6";
     this.kryptonLabel6.Size        = new System.Drawing.Size(390, 20);
     this.kryptonLabel6.TabIndex    = 38;
     this.kryptonLabel6.Values.Text = "Please enter a brief explanation of events leading up to this exception";
     //
     // kryptonLabel4
     //
     this.kryptonLabel4.Location    = new System.Drawing.Point(288, 196);
     this.kryptonLabel4.Name        = "kryptonLabel4";
     this.kryptonLabel4.Size        = new System.Drawing.Size(40, 20);
     this.kryptonLabel4.TabIndex    = 36;
     this.kryptonLabel4.Values.Text = "Time:";
     //
     // kryptonLabel5
     //
     this.kryptonLabel5.Location    = new System.Drawing.Point(22, 196);
     this.kryptonLabel5.Name        = "kryptonLabel5";
     this.kryptonLabel5.Size        = new System.Drawing.Size(39, 20);
     this.kryptonLabel5.TabIndex    = 34;
     this.kryptonLabel5.Values.Text = "Date:";
     //
     // kryptonLabel3
     //
     this.kryptonLabel3.Location    = new System.Drawing.Point(288, 154);
     this.kryptonLabel3.Name        = "kryptonLabel3";
     this.kryptonLabel3.Size        = new System.Drawing.Size(52, 20);
     this.kryptonLabel3.TabIndex    = 32;
     this.kryptonLabel3.Values.Text = "Region:";
     //
     // kryptonLabel2
     //
     this.kryptonLabel2.Location    = new System.Drawing.Point(22, 154);
     this.kryptonLabel2.Name        = "kryptonLabel2";
     this.kryptonLabel2.Size        = new System.Drawing.Size(54, 20);
     this.kryptonLabel2.TabIndex    = 30;
     this.kryptonLabel2.Values.Text = "Version:";
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location    = new System.Drawing.Point(22, 107);
     this.kryptonLabel1.Name        = "kryptonLabel1";
     this.kryptonLabel1.Size        = new System.Drawing.Size(75, 20);
     this.kryptonLabel1.TabIndex    = 28;
     this.kryptonLabel1.Values.Text = "Application:";
     //
     // krtbExceptionMessage
     //
     this.krtbExceptionMessage.Location   = new System.Drawing.Point(92, 20);
     this.krtbExceptionMessage.Name       = "krtbExceptionMessage";
     this.krtbExceptionMessage.ReadOnly   = true;
     this.krtbExceptionMessage.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
     this.krtbExceptionMessage.Size       = new System.Drawing.Size(482, 64);
     this.krtbExceptionMessage.TabIndex   = 27;
     this.krtbExceptionMessage.Text       = "";
     //
     // picGeneral
     //
     this.picGeneral.BackColor = System.Drawing.Color.Transparent;
     this.picGeneral.Image     = global::Krypton.Toolkit.Suite.Extended.Error.Reporting.Properties.Resources.Warning_64_x_58;
     this.picGeneral.Location  = new System.Drawing.Point(22, 20);
     this.picGeneral.Name      = "picGeneral";
     this.picGeneral.Size      = new System.Drawing.Size(64, 64);
     this.picGeneral.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picGeneral.TabIndex  = 26;
     this.picGeneral.TabStop   = false;
     //
     // kryptonPage2
     //
     this.kryptonPage2.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage2.Controls.Add(this.krtbExceptionLarge);
     this.kryptonPage2.Flags          = 65534;
     this.kryptonPage2.LastVisibleSet = true;
     this.kryptonPage2.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage2.Name           = "kryptonPage2";
     this.kryptonPage2.Size           = new System.Drawing.Size(589, 473);
     this.kryptonPage2.Text           = "Exceptions";
     this.kryptonPage2.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage2.UniqueName     = "694cc14036a848cf80adc36d768d2a0a";
     //
     // krtbExceptionLarge
     //
     this.krtbExceptionLarge.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.krtbExceptionLarge.Location = new System.Drawing.Point(0, 0);
     this.krtbExceptionLarge.Name     = "krtbExceptionLarge";
     this.krtbExceptionLarge.ReadOnly = true;
     this.krtbExceptionLarge.Size     = new System.Drawing.Size(589, 473);
     this.krtbExceptionLarge.TabIndex = 0;
     this.krtbExceptionLarge.Text     = "";
     //
     // kryptonPage3
     //
     this.kryptonPage3.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage3.Controls.Add(this.lvAssemblies);
     this.kryptonPage3.Flags          = 65534;
     this.kryptonPage3.LastVisibleSet = true;
     this.kryptonPage3.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage3.Name           = "kryptonPage3";
     this.kryptonPage3.Size           = new System.Drawing.Size(589, 473);
     this.kryptonPage3.Text           = "Assemblies";
     this.kryptonPage3.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage3.UniqueName     = "fde488a4932e4ef29bd2bcb5e3a9d6fd";
     //
     // lvAssemblies
     //
     this.lvAssemblies.Activation     = System.Windows.Forms.ItemActivation.OneClick;
     this.lvAssemblies.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.lvAssemblies.FullRowSelect  = true;
     this.lvAssemblies.HideSelection  = false;
     this.lvAssemblies.HotTracking    = true;
     this.lvAssemblies.HoverSelection = true;
     this.lvAssemblies.Location       = new System.Drawing.Point(0, 0);
     this.lvAssemblies.Name           = "lvAssemblies";
     this.lvAssemblies.Size           = new System.Drawing.Size(589, 473);
     this.lvAssemblies.TabIndex       = 0;
     this.lvAssemblies.UseCompatibleStateImageBehavior = false;
     this.lvAssemblies.View = System.Windows.Forms.View.Details;
     //
     // kryptonPage4
     //
     this.kryptonPage4.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage4.Controls.Add(this.ktvEnvironment);
     this.kryptonPage4.Flags          = 65534;
     this.kryptonPage4.LastVisibleSet = true;
     this.kryptonPage4.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage4.Name           = "kryptonPage4";
     this.kryptonPage4.Size           = new System.Drawing.Size(589, 473);
     this.kryptonPage4.Text           = "System";
     this.kryptonPage4.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage4.UniqueName     = "c6c80bc57dec4d9f974905ba7ac0c48a";
     //
     // ktvEnvironment
     //
     this.ktvEnvironment.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.ktvEnvironment.Location = new System.Drawing.Point(0, 0);
     this.ktvEnvironment.Name     = "ktvEnvironment";
     this.ktvEnvironment.Size     = new System.Drawing.Size(589, 473);
     this.ktvEnvironment.TabIndex = 0;
     //
     // kryptonBorderedLabel1
     //
     this.kryptonBorderedLabel1.AutoSize    = false;
     this.kryptonBorderedLabel1.BackColor   = System.Drawing.Color.Transparent;
     this.kryptonBorderedLabel1.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(192)))), ((int)(((byte)(214)))));
     this.kryptonBorderedLabel1.Location    = new System.Drawing.Point(104, 106);
     this.kryptonBorderedLabel1.Name        = "kryptonBorderedLabel1";
     this.kryptonBorderedLabel1.Size        = new System.Drawing.Size(470, 25);
     this.kryptonBorderedLabel1.TabIndex    = 40;
     this.kryptonBorderedLabel1.Values.Text = "kryptonBorderedLabel1";
     //
     // kryptonBorderedLabel2
     //
     this.kryptonBorderedLabel2.AutoSize    = false;
     this.kryptonBorderedLabel2.BackColor   = System.Drawing.Color.Transparent;
     this.kryptonBorderedLabel2.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(192)))), ((int)(((byte)(214)))));
     this.kryptonBorderedLabel2.Location    = new System.Drawing.Point(92, 149);
     this.kryptonBorderedLabel2.Name        = "kryptonBorderedLabel2";
     this.kryptonBorderedLabel2.Size        = new System.Drawing.Size(165, 25);
     this.kryptonBorderedLabel2.TabIndex    = 41;
     this.kryptonBorderedLabel2.Values.Text = "kryptonBorderedLabel2";
     //
     // kryptonBorderedLabel3
     //
     this.kryptonBorderedLabel3.AutoSize    = false;
     this.kryptonBorderedLabel3.BackColor   = System.Drawing.Color.Transparent;
     this.kryptonBorderedLabel3.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(192)))), ((int)(((byte)(214)))));
     this.kryptonBorderedLabel3.Location    = new System.Drawing.Point(92, 191);
     this.kryptonBorderedLabel3.Name        = "kryptonBorderedLabel3";
     this.kryptonBorderedLabel3.Size        = new System.Drawing.Size(165, 25);
     this.kryptonBorderedLabel3.TabIndex    = 42;
     this.kryptonBorderedLabel3.Values.Text = "kryptonBorderedLabel3";
     //
     // kryptonBorderedLabel4
     //
     this.kryptonBorderedLabel4.AutoSize    = false;
     this.kryptonBorderedLabel4.BackColor   = System.Drawing.Color.Transparent;
     this.kryptonBorderedLabel4.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(192)))), ((int)(((byte)(214)))));
     this.kryptonBorderedLabel4.Location    = new System.Drawing.Point(361, 149);
     this.kryptonBorderedLabel4.Name        = "kryptonBorderedLabel4";
     this.kryptonBorderedLabel4.Size        = new System.Drawing.Size(165, 25);
     this.kryptonBorderedLabel4.TabIndex    = 43;
     this.kryptonBorderedLabel4.Values.Text = "kryptonBorderedLabel4";
     //
     // kryptonBorderedLabel5
     //
     this.kryptonBorderedLabel5.AutoSize    = false;
     this.kryptonBorderedLabel5.BackColor   = System.Drawing.Color.Transparent;
     this.kryptonBorderedLabel5.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(192)))), ((int)(((byte)(214)))));
     this.kryptonBorderedLabel5.Location    = new System.Drawing.Point(361, 191);
     this.kryptonBorderedLabel5.Name        = "kryptonBorderedLabel5";
     this.kryptonBorderedLabel5.Size        = new System.Drawing.Size(165, 25);
     this.kryptonBorderedLabel5.TabIndex    = 44;
     this.kryptonBorderedLabel5.Values.Text = "kryptonBorderedLabel5";
     //
     // KryptonFullReportView
     //
     this.ClientSize = new System.Drawing.Size(613, 588);
     this.Controls.Add(this.kryptonPanel3);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "KryptonFullReportView";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Load           += new System.EventHandler(this.KryptonFullReportView_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
     this.kryptonPanel3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit();
     this.kryptonNavigator1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit();
     this.kryptonPage1.ResumeLayout(false);
     this.kryptonPage1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picGeneral)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).EndInit();
     this.kryptonPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage3)).EndInit();
     this.kryptonPage3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage4)).EndInit();
     this.kryptonPage4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_richTextBox != null)
                {
                    UnmonitorControl(_richTextBox);
                    _richTextBox.Dispose();
                    _richTextBox = null;
                }
            }

            base.Dispose(disposing);
        }
Exemple #25
0
        private void kryptonWorkspace_PageLoading(object sender, PageLoadingEventArgs e)
        {
            KryptonRichTextBox rtb;

            // If a new page then it does not have any children...
            if (e.Page.Controls.Count == 0)
            {
                // Add a rich text box as the child of the page
                rtb = new KryptonRichTextBox();
                rtb.Dock = DockStyle.Fill;
                rtb.StateCommon.Border.Draw = InheritBool.False;
                e.Page.Controls.Add(rtb);
                e.Page.Padding = new Padding(5);
            }
            else
                rtb = (KryptonRichTextBox)e.Page.Controls[0];

            // Move past the current xml element to the child CData
            e.XmlReader.Read();

            // Read in the stored text and use it in the rich text box
            rtb.Text = e.XmlReader.ReadContentAsString();
        }
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
     this.krtbApplicationDescription = new Krypton.Toolkit.KryptonRichTextBox();
     this.klblCompanyName            = new Krypton.Toolkit.KryptonLabel();
     this.klblCopyright            = new Krypton.Toolkit.KryptonLabel();
     this.klblApplicationBuildDate = new Krypton.Toolkit.KryptonLabel();
     this.klblApplicationVersion   = new Krypton.Toolkit.KryptonLabel();
     this.klblApplicationName      = new Krypton.Toolkit.KryptonLabel();
     this.pbxApplicationIcon       = new System.Windows.Forms.PictureBox();
     this.kryptonPanel2            = new Krypton.Toolkit.KryptonPanel();
     this.kbtnTechnicalDetails     = new Krypton.Toolkit.KryptonButton();
     this.kdbOk  = new Krypton.Toolkit.Suite.Extended.Dialogs.KryptonOKDialogButton();
     this.panel1 = new System.Windows.Forms.Panel();
     this.kbtnCheckForUpdates = new Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbxApplicationIcon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.krtbApplicationDescription);
     this.kryptonPanel1.Controls.Add(this.klblCompanyName);
     this.kryptonPanel1.Controls.Add(this.klblCopyright);
     this.kryptonPanel1.Controls.Add(this.klblApplicationBuildDate);
     this.kryptonPanel1.Controls.Add(this.klblApplicationVersion);
     this.kryptonPanel1.Controls.Add(this.klblApplicationName);
     this.kryptonPanel1.Controls.Add(this.pbxApplicationIcon);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(557, 313);
     this.kryptonPanel1.TabIndex = 0;
     //
     // krtbApplicationDescription
     //
     this.krtbApplicationDescription.Location   = new System.Drawing.Point(83, 143);
     this.krtbApplicationDescription.Name       = "krtbApplicationDescription";
     this.krtbApplicationDescription.ReadOnly   = true;
     this.krtbApplicationDescription.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal;
     this.krtbApplicationDescription.Size       = new System.Drawing.Size(462, 117);
     this.krtbApplicationDescription.TabIndex   = 6;
     this.krtbApplicationDescription.Text       = "kryptonRichTextBox1";
     //
     // klblCompanyName
     //
     this.klblCompanyName.Location    = new System.Drawing.Point(83, 117);
     this.klblCompanyName.Name        = "klblCompanyName";
     this.klblCompanyName.Size        = new System.Drawing.Size(146, 20);
     this.klblCompanyName.TabIndex    = 5;
     this.klblCompanyName.Values.Text = "<##Company-Name##>";
     //
     // klblCopyright
     //
     this.klblCopyright.Location    = new System.Drawing.Point(83, 91);
     this.klblCopyright.Name        = "klblCopyright";
     this.klblCopyright.Size        = new System.Drawing.Size(111, 20);
     this.klblCopyright.TabIndex    = 4;
     this.klblCopyright.Values.Text = "<##Copyright##>";
     //
     // klblApplicationBuildDate
     //
     this.klblApplicationBuildDate.Location    = new System.Drawing.Point(83, 65);
     this.klblApplicationBuildDate.Name        = "klblApplicationBuildDate";
     this.klblApplicationBuildDate.Size        = new System.Drawing.Size(102, 20);
     this.klblApplicationBuildDate.TabIndex    = 3;
     this.klblApplicationBuildDate.Values.Text = "<##Built-On##>";
     //
     // klblApplicationVersion
     //
     this.klblApplicationVersion.Location    = new System.Drawing.Point(83, 39);
     this.klblApplicationVersion.Name        = "klblApplicationVersion";
     this.klblApplicationVersion.Size        = new System.Drawing.Size(98, 20);
     this.klblApplicationVersion.TabIndex    = 2;
     this.klblApplicationVersion.Values.Text = "<##Version##>";
     //
     // klblApplicationName
     //
     this.klblApplicationName.Location    = new System.Drawing.Point(83, 13);
     this.klblApplicationName.Name        = "klblApplicationName";
     this.klblApplicationName.Size        = new System.Drawing.Size(156, 20);
     this.klblApplicationName.TabIndex    = 1;
     this.klblApplicationName.Values.Text = "<##Application-Name##>";
     //
     // pbxApplicationIcon
     //
     this.pbxApplicationIcon.BackColor = System.Drawing.Color.Transparent;
     this.pbxApplicationIcon.Location  = new System.Drawing.Point(12, 12);
     this.pbxApplicationIcon.Name      = "pbxApplicationIcon";
     this.pbxApplicationIcon.Size      = new System.Drawing.Size(64, 64);
     this.pbxApplicationIcon.TabIndex  = 0;
     this.pbxApplicationIcon.TabStop   = false;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.kbtnCheckForUpdates);
     this.kryptonPanel2.Controls.Add(this.kbtnTechnicalDetails);
     this.kryptonPanel2.Controls.Add(this.kdbOk);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 269);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(557, 44);
     this.kryptonPanel2.TabIndex = 0;
     //
     // kbtnTechnicalDetails
     //
     this.kbtnTechnicalDetails.Location    = new System.Drawing.Point(319, 7);
     this.kbtnTechnicalDetails.Name        = "kbtnTechnicalDetails";
     this.kbtnTechnicalDetails.Size        = new System.Drawing.Size(130, 25);
     this.kbtnTechnicalDetails.TabIndex    = 3;
     this.kbtnTechnicalDetails.Values.Text = "&Technical Details...";
     this.kbtnTechnicalDetails.Click      += new System.EventHandler(this.kbtnTechnicalDetails_Click);
     //
     // kdbOk
     //
     this.kdbOk.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kdbOk.Location     = new System.Drawing.Point(455, 7);
     this.kdbOk.Name         = "kdbOk";
     this.kdbOk.ParentWindow = this;
     this.kdbOk.Size         = new System.Drawing.Size(90, 25);
     this.kdbOk.TabIndex     = 2;
     this.kdbOk.Values.Text  = "&OK";
     this.kdbOk.Click       += new System.EventHandler(this.kdbOk_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 266);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(557, 3);
     this.panel1.TabIndex  = 1;
     //
     // kbtnCheckForUpdates
     //
     this.kbtnCheckForUpdates.Location    = new System.Drawing.Point(12, 7);
     this.kbtnCheckForUpdates.Name        = "kbtnCheckForUpdates";
     this.kbtnCheckForUpdates.Size        = new System.Drawing.Size(130, 25);
     this.kbtnCheckForUpdates.TabIndex    = 4;
     this.kbtnCheckForUpdates.Values.Text = "Check for &Updates";
     this.kbtnCheckForUpdates.Click      += new System.EventHandler(this.kbtnCheckForUpdates_Click);
     //
     // KryptonAboutDialog
     //
     this.AcceptButton = this.kdbOk;
     this.ClientSize   = new System.Drawing.Size(557, 313);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonAboutDialog";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Load           += new System.EventHandler(this.KryptonAboutDialog_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbxApplicationIcon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #27
0
 private void InitializeComponent()
 {
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues1  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues2  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues3  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues4  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues10 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues5  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues6  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues7  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues8  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues9  = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
     this.kryptonPanel1     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLabel1     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pictureBox1       = new System.Windows.Forms.PictureBox();
     this.kryptonPanel2     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLinkLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel();
     this.kryptonButton2    = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonButton1    = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1            = new System.Windows.Forms.Panel();
     this.kryptonPanel3     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
     this.kryptonPage1      = new ComponentFactory.Krypton.Navigator.KryptonPage();
     this.krtbDescription   = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox();
     this.kryptonLabel4     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.ktbEMailAddress   = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kryptonLabel3     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel2     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonPage2      = new ComponentFactory.Krypton.Navigator.KryptonPage();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
     this.kryptonPanel3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
     this.kryptonNavigator1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit();
     this.kryptonPage1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel1.Controls.Add(this.pictureBox1);
     this.kryptonPanel1.Dock           = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanel1.Location       = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name           = "kryptonPanel1";
     this.kryptonPanel1.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.ControlCustom1;
     this.kryptonPanel1.Size           = new System.Drawing.Size(794, 100);
     this.kryptonPanel1.TabIndex       = 0;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonLabel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(694, 100);
     this.kryptonLabel1.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel1.TabIndex                      = 1;
     popupPositionValues1.PlacementRectangle          = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues1.PlacementTarget             = null;
     this.kryptonLabel1.ToolTipValues.ToolTipPosition = popupPositionValues1;
     this.kryptonLabel1.Values.Text                   = "{0} has encountered a problem, and needs to close. \r\nWe apologise for the inconve" +
                                                        "nience that this may have caused.";
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
     this.pictureBox1.Dock      = System.Windows.Forms.DockStyle.Right;
     this.pictureBox1.Image     = global::ExtendedControls.Properties.Resources.Error_Report_48_x_48;
     this.pictureBox1.Location  = new System.Drawing.Point(694, 0);
     this.pictureBox1.Name      = "pictureBox1";
     this.pictureBox1.Size      = new System.Drawing.Size(100, 100);
     this.pictureBox1.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex  = 0;
     this.pictureBox1.TabStop   = false;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.kryptonLinkLabel1);
     this.kryptonPanel2.Controls.Add(this.kryptonButton2);
     this.kryptonPanel2.Controls.Add(this.kryptonButton1);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 702);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(794, 62);
     this.kryptonPanel2.TabIndex = 1;
     //
     // kryptonLinkLabel1
     //
     this.kryptonLinkLabel1.Location = new System.Drawing.Point(11, 19);
     this.kryptonLinkLabel1.Name     = "kryptonLinkLabel1";
     this.kryptonLinkLabel1.Size     = new System.Drawing.Size(103, 24);
     this.kryptonLinkLabel1.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLinkLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLinkLabel1.TabIndex         = 2;
     popupPositionValues2.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues2.PlacementTarget    = null;
     this.kryptonLinkLabel1.ToolTipValues.ToolTipPosition = popupPositionValues2;
     this.kryptonLinkLabel1.Values.Text = "&Privacy Policy";
     //
     // kryptonButton2
     //
     this.kryptonButton2.Location = new System.Drawing.Point(504, 15);
     this.kryptonButton2.Name     = "kryptonButton2";
     this.kryptonButton2.Size     = new System.Drawing.Size(182, 35);
     this.kryptonButton2.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonButton2.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonButton2.TabIndex                      = 1;
     popupPositionValues3.PlacementRectangle           = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues3.PlacementTarget              = null;
     this.kryptonButton2.ToolTipValues.ToolTipPosition = popupPositionValues3;
     this.kryptonButton2.Values.Text                   = "Send R&eport && Close";
     //
     // kryptonButton1
     //
     this.kryptonButton1.Location = new System.Drawing.Point(692, 15);
     this.kryptonButton1.Name     = "kryptonButton1";
     this.kryptonButton1.Size     = new System.Drawing.Size(90, 35);
     this.kryptonButton1.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonButton1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonButton1.TabIndex                      = 0;
     popupPositionValues4.PlacementRectangle           = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues4.PlacementTarget              = null;
     this.kryptonButton1.ToolTipValues.ToolTipPosition = popupPositionValues4;
     this.kryptonButton1.Values.Text                   = "&Cancel";
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 699);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(794, 3);
     this.panel1.TabIndex  = 2;
     //
     // kryptonPanel3
     //
     this.kryptonPanel3.Controls.Add(this.kryptonNavigator1);
     this.kryptonPanel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel3.Location = new System.Drawing.Point(0, 100);
     this.kryptonPanel3.Name     = "kryptonPanel3";
     this.kryptonPanel3.Size     = new System.Drawing.Size(794, 599);
     this.kryptonPanel3.TabIndex = 3;
     //
     // kryptonNavigator1
     //
     this.kryptonNavigator1.Bar.TabBorderStyle        = ComponentFactory.Krypton.Toolkit.TabBorderStyle.OneNote;
     this.kryptonNavigator1.Button.CloseButtonAction  = ComponentFactory.Krypton.Navigator.CloseButtonAction.None;
     this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
     this.kryptonNavigator1.Location = new System.Drawing.Point(11, 20);
     this.kryptonNavigator1.Name     = "kryptonNavigator1";
     this.kryptonNavigator1.Pages.AddRange(new ComponentFactory.Krypton.Navigator.KryptonPage[] {
         this.kryptonPage1,
         this.kryptonPage2
     });
     this.kryptonNavigator1.SelectedIndex                 = 1;
     this.kryptonNavigator1.Size                          = new System.Drawing.Size(771, 561);
     this.kryptonNavigator1.TabIndex                      = 0;
     this.kryptonNavigator1.Text                          = "kryptonNavigator1";
     popupPositionValues10.PlacementRectangle             = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues10.PlacementTarget                = null;
     this.kryptonNavigator1.ToolTipValues.ToolTipPosition = popupPositionValues10;
     //
     // kryptonPage1
     //
     this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage1.Controls.Add(this.krtbDescription);
     this.kryptonPage1.Controls.Add(this.kryptonLabel4);
     this.kryptonPage1.Controls.Add(this.ktbEMailAddress);
     this.kryptonPage1.Controls.Add(this.kryptonLabel3);
     this.kryptonPage1.Controls.Add(this.kryptonLabel2);
     this.kryptonPage1.Flags          = 65534;
     this.kryptonPage1.LastVisibleSet = true;
     this.kryptonPage1.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage1.Name           = "kryptonPage1";
     this.kryptonPage1.Size           = new System.Drawing.Size(769, 530);
     this.kryptonPage1.Text           = "kryptonPage1";
     this.kryptonPage1.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage1.UniqueName     = "e785ffa321ae493da8cc7176dd254426";
     //
     // krtbDescription
     //
     this.krtbDescription.Location   = new System.Drawing.Point(19, 296);
     this.krtbDescription.MaxLength  = 250;
     this.krtbDescription.Name       = "krtbDescription";
     this.krtbDescription.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
     this.krtbDescription.Size       = new System.Drawing.Size(732, 223);
     this.krtbDescription.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.krtbDescription.TabIndex                      = 9;
     this.krtbDescription.Text                          = "";
     popupPositionValues5.PlacementRectangle            = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues5.PlacementTarget               = null;
     this.krtbDescription.ToolTipValues.ToolTipPosition = popupPositionValues5;
     //
     // kryptonLabel4
     //
     this.kryptonLabel4.Location = new System.Drawing.Point(19, 266);
     this.kryptonLabel4.Name     = "kryptonLabel4";
     this.kryptonLabel4.Size     = new System.Drawing.Size(221, 24);
     this.kryptonLabel4.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel4.TabIndex                      = 8;
     popupPositionValues6.PlacementRectangle          = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues6.PlacementTarget             = null;
     this.kryptonLabel4.ToolTipValues.ToolTipPosition = popupPositionValues6;
     this.kryptonLabel4.Values.Text                   = "Your e-mail address (optional):";
     //
     // ktbEMailAddress
     //
     this.ktbEMailAddress.Location  = new System.Drawing.Point(19, 229);
     this.ktbEMailAddress.MaxLength = 50;
     this.ktbEMailAddress.Name      = "ktbEMailAddress";
     this.ktbEMailAddress.Size      = new System.Drawing.Size(732, 27);
     this.ktbEMailAddress.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktbEMailAddress.TabIndex                      = 7;
     popupPositionValues7.PlacementRectangle            = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues7.PlacementTarget               = null;
     this.ktbEMailAddress.ToolTipValues.ToolTipPosition = popupPositionValues7;
     //
     // kryptonLabel3
     //
     this.kryptonLabel3.Location = new System.Drawing.Point(19, 199);
     this.kryptonLabel3.Name     = "kryptonLabel3";
     this.kryptonLabel3.Size     = new System.Drawing.Size(221, 24);
     this.kryptonLabel3.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel3.TabIndex                      = 6;
     popupPositionValues8.PlacementRectangle          = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues8.PlacementTarget             = null;
     this.kryptonLabel3.ToolTipValues.ToolTipPosition = popupPositionValues8;
     this.kryptonLabel3.Values.Text                   = "Your e-mail address (optional):";
     //
     // kryptonLabel2
     //
     this.kryptonLabel2.Location = new System.Drawing.Point(19, 13);
     this.kryptonLabel2.Name     = "kryptonLabel2";
     this.kryptonLabel2.Size     = new System.Drawing.Size(738, 164);
     this.kryptonLabel2.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel2.TabIndex                      = 5;
     popupPositionValues9.PlacementRectangle          = new System.Drawing.Rectangle(0, 0, 0, 0);
     popupPositionValues9.PlacementTarget             = null;
     this.kryptonLabel2.ToolTipValues.ToolTipPosition = popupPositionValues9;
     this.kryptonLabel2.Values.Text                   = resources.GetString("kryptonLabel2.Values.Text");
     //
     // kryptonPage2
     //
     this.kryptonPage2.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
     this.kryptonPage2.Flags          = 65534;
     this.kryptonPage2.LastVisibleSet = true;
     this.kryptonPage2.MinimumSize    = new System.Drawing.Size(50, 50);
     this.kryptonPage2.Name           = "kryptonPage2";
     this.kryptonPage2.Size           = new System.Drawing.Size(769, 530);
     this.kryptonPage2.Text           = "kryptonPage2";
     this.kryptonPage2.ToolTipTitle   = "Page ToolTip";
     this.kryptonPage2.UniqueName     = "22073fe462004e44ace939648bbb9bfa";
     //
     // MainWindow
     //
     this.ClientSize = new System.Drawing.Size(794, 764);
     this.Controls.Add(this.kryptonPanel3);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "MainWindow";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "{0) Error";
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
     this.kryptonPanel3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit();
     this.kryptonNavigator1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit();
     this.kryptonPage1.ResumeLayout(false);
     this.kryptonPage1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).EndInit();
     this.ResumeLayout(false);
 }
Exemple #28
0
 public KryptonRichTextBoxProxy(KryptonRichTextBox textBox)
 {
     _richTextBox = textBox;
 }
 private void UnmonitorControl(KryptonRichTextBox c)
 {
     c.MouseEnter -= new EventHandler(OnControlEnter);
     c.MouseLeave -= new EventHandler(OnControlLeave);
     c.TrackMouseEnter -= new EventHandler(OnControlEnter);
     c.TrackMouseLeave -= new EventHandler(OnControlLeave);
 }
Exemple #30
0
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbeClose      = new ExtendedStandardControls.KryptonButtonExtended();
     this.panel1        = new System.Windows.Forms.Panel();
     this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.krtLicense    = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbeClose);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 611);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1022, 50);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kbeClose
     //
     this.kbeClose.AutoSize         = true;
     this.kbeClose.Image            = null;
     this.kbeClose.Location         = new System.Drawing.Point(464, 10);
     this.kbeClose.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.Name             = "kbeClose";
     this.kbeClose.OverrideDefault.Content.LongText.Font  = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.OverrideDefaultBackGroundColourOne     = System.Drawing.Color.Empty;
     this.kbeClose.OverrideDefaultBackGroundColourTwo     = System.Drawing.Color.Empty;
     this.kbeClose.OverrideDefaultLongTextColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.OverrideDefaultLongTextColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.OverrideDefaultShortTextColourOne      = System.Drawing.Color.Empty;
     this.kbeClose.OverrideDefaultShortTextColourTwo      = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocus.Content.LongText.Font    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.OverrideFocus.Content.ShortText.Font   = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.OverrideFocusBackGroundColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocusBackGroundColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocusLongTextColourOne         = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocusLongTextColourTwo         = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocusShortTextColourOne        = System.Drawing.Color.Empty;
     this.kbeClose.OverrideFocusShortTextColourTwo        = System.Drawing.Color.Empty;
     this.kbeClose.ShortTextTypeface = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.Size = new System.Drawing.Size(90, 28);
     this.kbeClose.StateCommon.Content.LongText.Font    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.StateCommon.Content.ShortText.Font   = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.StateCommonBackGroundColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.StateCommonBackGroundColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.StateCommonLongTextColourOne         = System.Drawing.Color.Empty;
     this.kbeClose.StateCommonLongTextColourTwo         = System.Drawing.Color.Empty;
     this.kbeClose.StateCommonShortTextColourOne        = System.Drawing.Color.Empty;
     this.kbeClose.StateCommonShortTextColourTwo        = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabled.Content.LongText.Font  = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.StateDisabledBackGroundColourOne     = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabledBackGroundColourTwo     = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabledLongTextColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabledLongTextColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabledShortTextColourOne      = System.Drawing.Color.Empty;
     this.kbeClose.StateDisabledShortTextColourTwo      = System.Drawing.Color.Empty;
     this.kbeClose.StateNormal.Content.LongText.Font    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.StateNormal.Content.ShortText.Font   = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.StateNormalBackGroundColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.StateNormalBackGroundColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.StateNormalLongTextColourOne         = System.Drawing.Color.Empty;
     this.kbeClose.StateNormalLongTextColourTwo         = System.Drawing.Color.Empty;
     this.kbeClose.StateNormalShortTextColourOne        = System.Drawing.Color.Empty;
     this.kbeClose.StateNormalShortTextColourTwo        = System.Drawing.Color.Empty;
     this.kbeClose.StatePressed.Content.LongText.Font   = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.StatePressed.Content.ShortText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.StatePressedBackGroundColourOne      = System.Drawing.Color.Empty;
     this.kbeClose.StatePressedBackGroundColourTwo      = System.Drawing.Color.Empty;
     this.kbeClose.StatePressedLongTextColourOne        = System.Drawing.Color.Empty;
     this.kbeClose.StatePressedLongTextColourTwo        = System.Drawing.Color.Empty;
     this.kbeClose.StatePressedShortTextColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.StatePressedShortTextColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.StateTracking.Content.LongText.Font  = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.kbeClose.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbeClose.StateTrackingBackGroundColourOne     = System.Drawing.Color.Empty;
     this.kbeClose.StateTrackingBackGroundColourTwo     = System.Drawing.Color.Empty;
     this.kbeClose.StateTrackingLongTextColourOne       = System.Drawing.Color.Empty;
     this.kbeClose.StateTrackingLongTextColourTwo       = System.Drawing.Color.Empty;
     this.kbeClose.StateTrackingShortTextColourOne      = System.Drawing.Color.Empty;
     this.kbeClose.StateTrackingShortTextColourTwo      = System.Drawing.Color.Empty;
     this.kbeClose.TabIndex    = 0;
     this.kbeClose.Values.Text = "Cl&ose";
     this.kbeClose.Click      += new System.EventHandler(this.kbeClose_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 608);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(1022, 3);
     this.panel1.TabIndex  = 2;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.krtLicense);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(1022, 608);
     this.kryptonPanel2.TabIndex = 3;
     //
     // krtLicense
     //
     this.krtLicense.Location   = new System.Drawing.Point(12, 12);
     this.krtLicense.Name       = "krtLicense";
     this.krtLicense.ReadOnly   = true;
     this.krtLicense.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
     this.krtLicense.Size       = new System.Drawing.Size(994, 570);
     this.krtLicense.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.krtLicense.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.krtLicense.TabIndex = 0;
     this.krtLicense.Text     = "";
     //
     // LicenseInformationDialog
     //
     this.ClientSize = new System.Drawing.Size(1022, 661);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "LicenseInformationDialog";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #31
0
        private KryptonPage CreatePage()
        {
            // Give each page a unique number
            string pageNumber = (_count++).ToString();

            // Create a new page and give it a name and image
            KryptonPage page = new KryptonPage();
            page.Text = "P" + pageNumber;
            page.TextTitle = "P" + pageNumber + " Title";
            page.TextDescription = "P" + pageNumber + " Description";
            page.ImageSmall = imageList.Images[_count % imageList.Images.Count];
            page.MinimumSize = new Size(200, 250);

            // Create a rich text box with some sample text inside
            KryptonRichTextBox rtb = new KryptonRichTextBox();
            rtb.Text = "This page (" + page.Text + ") contains a rich text box control as example content.\n\nTry saving the layout and then dragging the page headers in order to rearrange the workspace layout. Once altered you can use the load button to get back to the original state.";
            rtb.Dock = DockStyle.Fill;
            rtb.StateCommon.Border.Draw = InheritBool.False;

            // Add rich text box as the contents of the page
            page.Padding = new Padding(5);
            page.Controls.Add(rtb);

            return page;
        }
Exemple #32
0
        /**************************************************************\
         * Method for displaying a XML                                *
         *   - Display the xml with coloration.                       *
        \**************************************************************/
        private void DisplayXml(KryptonRichTextBox richTextBox)
        {
            XmlTextReader reader = new XmlTextReader(richTextBox.Tag.ToString());

            try
            {
                while (reader.Read())
                {
                    switch (reader.NodeType)
                    {
                        case XmlNodeType.XmlDeclaration:

                            richTextBox.SelectionColor = Color.Blue;
                            richTextBox.AppendText("<?xml " + reader.Value + "?>\n");

                            break;

                        case XmlNodeType.Element:

                            String nodeName = reader.Name;
                            if (nodeName.Equals("Field"))
                                richTextBox.AppendText("    ");
                            else if (!nodeName.Equals("region"))
                                richTextBox.AppendText("  ");

                            richTextBox.SelectionColor = Color.Blue;
                            richTextBox.AppendText("<");
                            richTextBox.SelectionColor = Color.Brown;
                            richTextBox.AppendText(reader.Name);

                            for (int attIndex = 0; attIndex < reader.AttributeCount; attIndex++)
                            {
                                reader.MoveToAttribute(attIndex);
                                richTextBox.SelectionColor = Color.Brown;
                                richTextBox.AppendText(" " + reader.Name);
                                richTextBox.SelectionColor = Color.Blue;
                                richTextBox.AppendText("=\"");
                                richTextBox.SelectionColor = Color.Black;
                                richTextBox.SelectionFont = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                                richTextBox.AppendText(reader.Value);
                                richTextBox.SelectionFont = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                                richTextBox.SelectionColor = Color.Blue;
                                richTextBox.AppendText("\"");
                            }

                            richTextBox.SelectionColor = Color.Blue;
                            if (nodeName.Equals("region") || nodeName.Equals("Function"))
                                richTextBox.AppendText(">\n");
                            else richTextBox.AppendText(" />\n");
                            if (nodeName.Equals("Encoding_OUTPUT"))
                                richTextBox.AppendText("\n");
                            break;

                        case XmlNodeType.Comment:

                            richTextBox.SelectionColor = Color.Gray;
                            richTextBox.AppendText("  <!--" + reader.Value + "-->\n"); // To put if comment.
                            break;

                        case XmlNodeType.EndElement:

                            richTextBox.SelectionColor = Color.Blue;
                            if (reader.Name.Equals("Function"))
                                richTextBox.AppendText("  ");
                            richTextBox.AppendText("</");
                            richTextBox.SelectionColor = Color.Brown;
                            richTextBox.AppendText(reader.Name);
                            richTextBox.SelectionColor = Color.Blue;
                            richTextBox.AppendText(">\n");
                            if (reader.Name.Equals("Function"))
                                richTextBox.AppendText("\n");
                            break;
                    }
                }

                reader.Close();
            }

            catch(Exception ex)
            {
                KryptonMessageBox.Show(ex.ToString());
            }
        }
Exemple #33
0
        /**************************************************************\
         * Event for clicking on the switch button of the navigator : *
         *    - Switch to creation mode if it's normal mode           *
         *    - and vice & versa                                      *
        \**************************************************************/
        private void switchButtonSpec_Click(object sender, EventArgs e)
        {
            if (!NavigatorControl.SelectedPage.Text.Equals("Summary"))
            {
                // If creation mode, switch to normal mode
                if ((Boolean)NavigatorControl.SelectedPage.Tag)
                {
                    // Get path
                    string path = "";
                    var childrens = NavigatorControl.SelectedPage.Controls.OfType<XMLLoader.XMLForm>().ToList();
                    foreach (XMLLoader.XMLForm element in childrens)
                    {
                        path = (string)element.Tag;
                    }

                    NavigatorControl.SelectedPage.Tag = false;
                    switchButtonSpec.ExtraText = "Creation Mode";
                    NavigatorControl.SelectedPage.Controls.Clear();

                    // Set New Control
                    KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                    richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                    richTextBox.Text = "";
                    richTextBox.Tag = path;

                    NavigatorControl.SelectedPage.Controls.Add(richTextBox);
                    DisplayXml(richTextBox);
                }

                // If normal mode, switch to creation mode
                else if (!(Boolean)NavigatorControl.SelectedPage.Tag)
                {
                    // Get path
                    string path = "";
                    var childrens = NavigatorControl.SelectedPage.Controls.OfType<KryptonRichTextBox>().ToList();
                    foreach (KryptonRichTextBox element in childrens)
                    {
                        path = (string)element.Tag;
                    }

                    NavigatorControl.SelectedPage.Tag = true;
                    switchButtonSpec.ExtraText = "XML Mode";
                    EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.True;
                    NavigatorControl.SelectedPage.Controls.Clear();

                    try
                    {
                        // Set New Control
                        XMLLoader.XMLForm XMLLoader = new XMLLoader.XMLForm();
                        XMLLoader.Dock = DockStyle.Fill;
                        XMLLoader.init(Properties.Settings.Default.interpretation_template, _ButtonHelp);
                        XMLLoader.loadXML(path);
                        XMLLoader.Tag = path;
                        NavigatorControl.SelectedPage.Controls.Add(XMLLoader);
                    }

                    // If no connection, stay in XML mode
                    catch
                    {
                        var result = KryptonMessageBox.Show("Unable to access XML Template (maybe there is no network). No Creation Mode available.", "No network",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Warning);

                        KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                        richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                        richTextBox.Text = "";
                        richTextBox.Tag = path;
                        NavigatorControl.SelectedPage.Tag = false;
                        switchButtonSpec.ExtraText = "Creation Mode";
                        EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.False;

                        NavigatorControl.SelectedPage.Controls.Add(richTextBox);
                        DisplayXml(richTextBox);
                    }
                }
            }
        }
Exemple #34
0
        /**************************************************************\
         * Display Batch Summary                                     *
        \**************************************************************/
        public void DisplayBatchSummary(Batch batch)
        {
            _ProcessHeaderGroupList.Clear();
            _ProcessHeaderGroupList = new List<KryptonHeaderGroup>();
            this.SummarySplitContainer1.Panel1.Controls.Clear();

            // Display the name of the batch
            KryptonHeader header = new KryptonHeader();
            header.Dock = System.Windows.Forms.DockStyle.Top;
            header.Text = "Batch : " + batch.Get_Name();
            header.Values.Description = null;
            header.Values.Image = null;

            // Display all batch elements
            if (batch.Get_BatchElements().Count > 0)
            {
                foreach (KeyValuePair<string, Tuple<string, string, string>> element in batch.Get_BatchElements())
                {
                    KryptonHeaderGroup headerGroup = new KryptonHeaderGroup();
                    ButtonSpecHeaderGroup buttonSpecHeaderGroup = new ButtonSpecHeaderGroup();
                    headerGroup.Dock = System.Windows.Forms.DockStyle.Top;
                    headerGroup.HeaderPositionSecondary = ComponentFactory.Krypton.Toolkit.VisualOrientation.Left;
                    headerGroup.ValuesPrimary.Image = null;
                    headerGroup.HeaderStylePrimary = ComponentFactory.Krypton.Toolkit.HeaderStyle.Secondary;
                    headerGroup.ValuesSecondary.Heading = "Target";
                    headerGroup.Text = element.Value.Item1;
                    buttonSpecHeaderGroup.Tag = headerGroup;
                    headerGroup.ButtonSpecs.AddRange(new ComponentFactory.Krypton.Toolkit.ButtonSpecHeaderGroup[] { buttonSpecHeaderGroup });
                    headerGroup.ButtonSpecs[0].Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.RibbonExpand;
                    headerGroup.Size = new System.Drawing.Size(150, 23);

                    KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                    richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                    richTextBox.ReadOnly = true;
                    richTextBox.Text = element.Key + "\n\n FTP : " + element.Value.Item3;

                    headerGroup.Panel.Controls.Add(richTextBox);
                    _ProcessHeaderGroupList.Add(headerGroup);
                }
            }

            else if (batch.Get_BatchElementsMulti().Count > 0)
            {
                foreach (KeyValuePair<Tuple<string, string>, List<Tuple<string, string>>> element in batch.Get_BatchElementsMulti())
                {
                    KryptonHeaderGroup headerGroup = new KryptonHeaderGroup();
                    ButtonSpecHeaderGroup buttonSpecHeaderGroup = new ButtonSpecHeaderGroup();
                    headerGroup.Dock = System.Windows.Forms.DockStyle.Top;
                    headerGroup.HeaderPositionSecondary = ComponentFactory.Krypton.Toolkit.VisualOrientation.Left;
                    headerGroup.ValuesPrimary.Image = null;
                    headerGroup.HeaderStylePrimary = ComponentFactory.Krypton.Toolkit.HeaderStyle.Secondary;
                    headerGroup.ValuesSecondary.Heading = "Target";
                    headerGroup.Text = element.Value[0].Item1;
                    buttonSpecHeaderGroup.Tag = headerGroup;
                    headerGroup.ButtonSpecs.AddRange(new ComponentFactory.Krypton.Toolkit.ButtonSpecHeaderGroup[] { buttonSpecHeaderGroup });
                    headerGroup.ButtonSpecs[0].Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.RibbonExpand;
                    headerGroup.Size = new System.Drawing.Size(150, 23);

                    KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                    richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                    richTextBox.ReadOnly = true;
                    richTextBox.AppendText( "FTP : " + element.Key.Item2 + "\n\n");
                    richTextBox.AppendText("Target path : " + element.Key.Item1 + "\n\n");
                    richTextBox.AppendText("Configs :\n");

                    foreach (Tuple<string, string> config in element.Value)
                        richTextBox.AppendText(config.Item1 + "\n");

                    headerGroup.Panel.Controls.Add(richTextBox);
                    _ProcessHeaderGroupList.Add(headerGroup);
                }
            }

            _ProcessHeaderGroupList.Reverse();
            foreach (KryptonHeaderGroup element in _ProcessHeaderGroupList)
                this.SummarySplitContainer1.Panel1.Controls.Add(element);

            this.SummarySplitContainer1.Panel1.Controls.Add(header);
        }
Exemple #35
0
 protected override Control InitialControl()
 {
     KryptonRichTextBox ctl = new KryptonRichTextBox();
     ctl.Height = Height;
     return ctl;
 }
 public KryptonRichTextBoxProxy(KryptonRichTextBox textBox)
 {
     _richTextBox = textBox;
 }
Exemple #37
0
        /**************************************************************\
         * Display Config Summary                                     *
         *   - The Name of the config (KryptonHeader).                *
         *   - Each process used in the config (KryptonHeaderGroup).  *
        \**************************************************************/
        public void DisplayConfigSummary(String name, List<Process>processList, String warning)
        {
            _ProcessHeaderGroupList.Clear();
            _ProcessHeaderGroupList = new List<KryptonHeaderGroup>();
            this.SummarySplitContainer1.Panel1.Controls.Clear();

            // Display the name of the config
            KryptonHeader header = new KryptonHeader();
            header.Dock = System.Windows.Forms.DockStyle.Top;
            header.Text = name;
            header.Values.Description = null;
            header.Values.Image = null;

            // Display each process
            foreach (Process element in processList)
            {
                KryptonHeaderGroup headerGroup = new KryptonHeaderGroup();
                ButtonSpecHeaderGroup buttonSpecHeaderGroup = new ButtonSpecHeaderGroup();
                headerGroup.Dock = System.Windows.Forms.DockStyle.Top;
                headerGroup.HeaderPositionSecondary = ComponentFactory.Krypton.Toolkit.VisualOrientation.Left;
                headerGroup.ValuesPrimary.Image = null;
                headerGroup.HeaderStylePrimary = ComponentFactory.Krypton.Toolkit.HeaderStyle.Secondary;
                headerGroup.ValuesSecondary.Heading = "Comments";
                headerGroup.Text = element.Get_Name() + " - ID : " + element.Get_OrderId();
                buttonSpecHeaderGroup.Tag = headerGroup;
                headerGroup.ButtonSpecs.AddRange(new ComponentFactory.Krypton.Toolkit.ButtonSpecHeaderGroup[] { buttonSpecHeaderGroup });
                headerGroup.ButtonSpecs[0].Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.RibbonExpand;
                headerGroup.Size = new System.Drawing.Size(150, 23);

                KryptonRichTextBox richTextBox = new KryptonRichTextBox();
                richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
                richTextBox.ReadOnly = true;
                richTextBox.Text = element.Get_Comment();

                headerGroup.Panel.Controls.Add(richTextBox);
                _ProcessHeaderGroupList.Add(headerGroup);

            }

            _ProcessHeaderGroupList.Reverse();
            foreach(KryptonHeaderGroup element in _ProcessHeaderGroupList)
                this.SummarySplitContainer1.Panel1.Controls.Add(element);

            var tmp = _WarningGroupBox.Panel.Controls.OfType<RichTextBox>();
            foreach (RichTextBox element in tmp)
            {
                element.Text = warning;
                if (!element.Text.Equals(""))
                    this.SummarySplitContainer1.Panel1.Controls.Add(_WarningGroupBox);
            }

            this.SummarySplitContainer1.Panel1.Controls.Add(header);
        }