Esempio n. 1
0
        private void MenuItemFontChange_Clicked(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
            fontDialog.Font = new System.Drawing.Font(EditText1.FontFamily.ToString(), (float)EditText1.FontSize);

            if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FontFamilyConverter ffc = new FontFamilyConverter();

                EditText1.FontSize   = (double)fontDialog.Font.Size;
                EditText1.FontFamily = (FontFamily)ffc.ConvertFromString(fontDialog.Font.Name);

                /*
                 * if (fontDialog.Font.Bold)
                 *  textAnnotation.FontWeight = FontWeights.Bold;
                 * else
                 *  textAnnotation.FontWeight = FontWeights.Normal;
                 *
                 * if (fontDialog.Font.Italic)
                 *  textAnnotation.FontStyle = FontStyles.Italic;
                 * else
                 *  textAnnotation.FontStyle = FontStyles.Normal;
                 */
            }
        }
Esempio n. 2
0
        /// <summary>Called when the change font button is clicked</summary>
        private void OnChangeFont(object sender, EventArgs e)
        {
            System.Windows.Forms.FontDialog dlg = new System.Windows.Forms.FontDialog();

            // Show the dialog
            dlg.FontMustExist = true;
            dlg.Font          = currentFont;

            // Make the framework go back to windowed if it isn't
            if (!sampleFramework.IsWindowed)
            {
                sampleFramework.ToggleFullscreen();
            }

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) // We selected something
            {
                currentFont = dlg.Font;
                if (firstFont != null)
                {
                    firstFont.Dispose();
                }

                // Set the new font
                firstFont = new Font(sampleFramework.Device, currentFont);

                if (mesh3DText != null)
                {
                    mesh3DText.Dispose();
                }

                // Create our 3d text mesh
                mesh3DText = Mesh.TextFromFont(sampleFramework.Device, currentFont
                                               , "This is calling Mesh.TextFromFont", 0.001f, 0.4f);
            }
        }
Esempio n. 3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog();

            System.Drawing.FontStyle style = System.Drawing.FontStyle.Regular;

            if (Settings.Default.SystemFontStyle == FontStyles.Italic)
            {
                style |= System.Drawing.FontStyle.Italic;
            }

            if (Settings.Default.SystemFontWeight == FontWeights.Bold)
            {
                style |= System.Drawing.FontStyle.Bold;
            }

            System.Drawing.Font font = new System.Drawing.Font(
                Settings.Default.SystemFontFamily.ToString(),
                (float)Settings.Default.SystemFontSize * 72.0f / 96.0f,
                style);

            fd.Font = font;

            System.Windows.Forms.DialogResult dr = fd.ShowDialog();
            if (dr != System.Windows.Forms.DialogResult.Cancel)
            {
                Settings.Default.SystemFontFamily = new System.Windows.Media.FontFamily(fd.Font.Name);
                Settings.Default.SystemFontSize   = fd.Font.Size * 96.0 / 72.0;
                Settings.Default.SystemFontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
                Settings.Default.SystemFontStyle  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;
            }
        }
Esempio n. 4
0
        private void ButtonFont_OnClick(object sender, RoutedEventArgs e)
        {
            var fontDialog   = new System.Windows.Forms.FontDialog();
            var dialogResult = fontDialog.ShowDialog();

            ListBoxResult.Items.Add($"DialogResult is {dialogResult}.");
        }
Esempio n. 5
0
        /// <summary>
        /// Handles font change
        /// </summary>
        private void ChangeFontClick(object sender, EventArgs e)
        {
            System.Windows.Forms.FontDialog dlg = new System.Windows.Forms.FontDialog();

            // Show the dialog
            dlg.FontMustExist = true;
            dlg.Font          = ourFont;

            if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)             // We selected something
            {
                ourFont = dlg.Font;
                if (firstFont != null)
                {
                    firstFont.Dispose();
                }
                if (secondFont != null)
                {
                    secondFont.Dispose();
                }

                // Set the new font
                LoadFonts(ourFont.Name);

                // Create our 3d text mesh
                mesh3DText = Mesh.TextFromFont(device, ourFont, "Mesh.TextFromFont", 0.001f, 0.4f);
            }
        }
Esempio n. 6
0
        /* ----------------------------------------------------------------- */
        ///
        /// OnClick
        ///
        /// <summary>
        /// ボタンがクリックされた時に実行されます。
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            var dialog = new System.Windows.Forms.FontDialog();

            dialog.AllowScriptChange  = AllowScriptChange;
            dialog.AllowSimulations   = AllowSimulations;
            dialog.AllowVectorFonts   = AllowVectorFonts;
            dialog.AllowVerticalFonts = AllowVerticalFonts;
            dialog.FixedPitchOnly     = FixedPitchOnly;
            dialog.FontMustExist      = FontMustExist;
            dialog.MaxSize            = MaxSize;
            dialog.MinSize            = MinSize;
            dialog.ScriptsOnly        = ScriptsOnly;
            dialog.ShowApply          = ShowApply;
            dialog.ShowColor          = ShowColor;
            dialog.ShowEffects        = ShowEffects;
            dialog.Apply -= WhenApply;
            dialog.Apply += WhenApply;

            dialog.Color = ForeColor;
            dialog.Font  = Font;

            var result = dialog.ShowDialog();

            dialog.Apply -= WhenApply;
            if (result == System.Windows.Forms.DialogResult.Cancel)
            {
                return;
            }

            ForeColor = dialog.Color;
            Font      = dialog.Font;
        }
Esempio n. 7
0
        void FontChooserClick(object sender, RoutedEventArgs e)
        {
            var chooser = new System.Windows.Forms.FontDialog();

            if (sender == offsetFontButton)
            {
                chooser.Font = offsetFont;
            }
            if (sender == dataFontButton)
            {
                chooser.Font = dataFont;
            }
            if (chooser.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            if (sender == offsetFontButton)
            {
                offsetFont = chooser.Font;
                SetPreview(offsetPreview, offsetFont);
                offsetFontButton.Content = offsetFont;
            }
            if (sender == dataFontButton)
            {
                dataFont = chooser.Font;
                SetPreview(dataPreview, dataFont);
                dataFontButton.Content = dataFont;
            }
        }
Esempio n. 8
0
        /// <summary>
        /// 폰트 선택 버튼
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FontButton_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new System.Windows.Forms.FontDialog();

            dlg.ShowColor = true;
            dlg.Font      = m_chatFont;
            dlg.Color     = m_chatColor;

            var result = dlg.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                rtbxInput.FontFamily = new System.Windows.Media.FontFamily(dlg.Font.FontFamily.Name);
                rtbxInput.FontSize   = dlg.Font.Size;
                if (dlg.Font.Bold)
                {
                    rtbxInput.FontWeight = FontWeights.Bold;
                }
                rtbxInput.Selection.Select(rtbxInput.Document.ContentStart, rtbxInput.Document.ContentEnd);
                if (dlg.Font.Underline)
                {
                    rtbxInput.Selection.ApplyPropertyValue(Inline.TextDecorationsProperty, TextDecorations.Underline);
                }
                if (dlg.Font.Italic)
                {
                    rtbxInput.FontStyle = FontStyles.Italic;
                }
                rtbxInput.Foreground = new SolidColorBrush(System.Windows.Media.Color.FromArgb(dlg.Color.A, dlg.Color.R, dlg.Color.G, dlg.Color.B));

                m_chatFont  = dlg.Font;
                m_chatColor = dlg.Color;
            }
        }
Esempio n. 9
0
        public void ShowFontDialog()
        {
            var fd     = new System.Windows.Forms.FontDialog();
            var result = fd.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                var tr = new TextRange(textBox.Selection.Start, textBox.Selection.End);

                tr.ApplyPropertyValue(TextElement.FontFamilyProperty, new FontFamily(fd.Font.Name));
                tr.ApplyPropertyValue(TextElement.FontSizeProperty, fd.Font.Size * 96.0 / 72.0);
                tr.ApplyPropertyValue(TextElement.FontWeightProperty, textBox.FontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular);
                tr.ApplyPropertyValue(TextElement.FontStyleProperty, fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal);

                TextDecorationCollection tdc = new TextDecorationCollection();
                if (fd.Font.Underline)
                {
                    tdc.Add(TextDecorations.Underline);
                }
                else
                {
                    tr.ApplyPropertyValue(Inline.TextDecorationsProperty, null);
                }
                if (fd.Font.Strikeout)
                {
                    tdc.Add(TextDecorations.Strikethrough);
                }
                else
                {
                    tr.ApplyPropertyValue(Inline.TextDecorationsProperty, null);
                }
                tr.ApplyPropertyValue(Inline.TextDecorationsProperty, tdc);
            }
        }
        /// <summary>
        /// Evento asociado al boton de opciones avanzadas
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bPropiedadesAvanzadas_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fD = new System.Windows.Forms.FontDialog();
            fD.ShowEffects = false;
            fD.ShowHelp    = true;
            if (fD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                tipoLetra = new FontFamily(fD.Font.FontFamily.Name);
                switch (fD.Font.Style.ToString())
                {
                case "Normal":
                    estiloFuente = FontStyles.Normal;
                    break;

                case "Italic":
                    estiloFuente = FontStyles.Italic;
                    break;

                case "Bold":
                    estiloFuente = FontStyles.Normal;
                    break;

                default:
                    estiloFuente = FontStyles.Italic;
                    break;
                }
                tamañoFuente = fD.Font.Size;
            }
        }
Esempio n. 11
0
 private void button8_Click(object sender, RoutedEventArgs e)
 {
     if (selTB != null)
     {
         selTB.Foreground = ChooseColor();
         using (System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog())
         {
             try
             {
                 fd.AllowScriptChange = false;
                 fd.AllowSimulations  = false;
                 if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {
                     FontFamilyConverter ffc = new FontFamilyConverter();
                     selTB.FontSize   = fd.Font.Size;
                     selTB.FontFamily = (FontFamily)ffc.ConvertFromString(fd.Font.Name);
                 }
             }
             catch
             {
                 //Not a truetype font
                 MessageBox.Show("Шрифт не изменен");
             }
         }
     }
 }
Esempio n. 12
0
        private void btnFontFamily_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog()
            {
                ShowColor   = false,
                ShowEffects = false,
                Font        = m_lastSelectedFont
            };
            System.Windows.Forms.DialogResult dr = fd.ShowDialog();
            if (dr != System.Windows.Forms.DialogResult.Cancel)
            {
                lblFontFamilyName.Content =
                    fntstlInvatedToStart.FontFamilyName                        =
                        fntstlJustRecievedResult.FontFamilyName                =
                            fntstlNextRoundMembersCount.FontFamilyName         =
                                fntstlPreparing.FontFamilyName                 =
                                    fntstlStayOnStart.FontFamilyName           =
                                        fntstlPlainResults.FontFamilyName      =
                                            fntstlFalsestart.FontFamilyName    =
                                                fntstlGridLines.FontFamilyName = fd.Font.Name;

                m_lastSelectedFont = fd.Font;

                Modified = true;
            }
        }
Esempio n. 13
0
        private void Button_Screen_Typing_ChangeFont_Click(object sender, RoutedEventArgs e)
        {
            var cFont = new Font(this.textblock_Screen_Typing.FontFamily.FamilyNames.Last().Value,
                                 (float)this.textblock_Screen_Typing.FontSize);

            fontDialog = new System.Windows.Forms.FontDialog
            {
                AllowVerticalFonts = false,
                AllowScriptChange  = false,
                MinSize            = 8,
                ShowEffects        = false,
                ShowColor          = false,
                ShowHelp           = false,
                ShowApply          = false,
                FontMustExist      = true,
                Font = cFont
            };

            fontDialog.ShowDialog();
            if (fontDialog.Font.Name != cFont.Name || Math.Abs(fontDialog.Font.Size - cFont.Size) >= 1)
            {
                this.textblock_Screen_Typing.FontFamily = new System.Windows.Media.FontFamily(fontDialog.Font.Name);
                this.textblock_Screen_Typing.FontSize   = fontDialog.Font.Size;
            }
        }
Esempio n. 14
0
        private void FontStyleButton_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog();
            var result = fd.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                editTextBox.FontFamily = new FontFamily(fd.Font.Name);
                editTextBox.FontSize   = fd.Font.Size * 96.0 / 72.0;
                editTextBox.FontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
                editTextBox.FontStyle  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;

                TextDecorationCollection tdc = new TextDecorationCollection();
                if (fd.Font.Underline)
                {
                    tdc.Add(TextDecorations.Underline);
                }
                if (fd.Font.Strikeout)
                {
                    tdc.Add(TextDecorations.Strikethrough);
                }
                editTextBox.TextDecorations = tdc;

                fontFamily = editTextBox.FontFamily;
                fontSize   = editTextBox.FontSize;
                fontWeight = editTextBox.FontWeight;
                fontStyle  = editTextBox.FontStyle;
                Serialize();
            }
        }
        private void OpenChangeFontDialog()
        {
            var fd = new System.Windows.Forms.FontDialog();

            //Select current font
            if (this.model.FontFamily != null)
            {
                var isBold      = this.model.FontWeight == FontWeights.Bold ? true : false;
                var isItalic    = this.model.FontStyle == FontStyles.Italic ? true : false;
                var fdFontSize  = (float)((this.model.FontSize * 72.0) / 96.0);
                var fdFontStyle = System.Drawing.FontStyle.Regular;
                if (isBold)
                {
                    fdFontStyle = fdFontStyle | System.Drawing.FontStyle.Bold;
                }
                if (isItalic)
                {
                    fdFontStyle = fdFontStyle | System.Drawing.FontStyle.Italic;
                }

                if (fdFontSize <= 0)
                {
                    fdFontSize = 9;
                }

                string fdFontName = this.model.FontFamily == null ? null : this.model.FontFamily.Source;

                var fdFont = new System.Drawing.Font(fdFontName, fdFontSize, fdFontStyle);

                fd.Font = fdFont;
            }

            var result = fd.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                var fontFamily = new FontFamily(fd.Font.Name);
                var fontSize   = fd.Font.Size * 96.0 / 72.0;
                var fontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
                var fontStyle  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;

                TextDecorationCollection tdc = new TextDecorationCollection();
                if (fd.Font.Underline)
                {
                    tdc.Add(TextDecorations.Underline);
                }
                if (fd.Font.Strikeout)
                {
                    tdc.Add(TextDecorations.Strikethrough);
                }
                var textDecorations = tdc;

                this.model.FontFamily      = fontFamily;
                this.model.FontSize        = fontSize;
                this.model.FontWeight      = fontWeight;
                this.model.FontStyle       = fontStyle;
                this.model.TextDecorations = textDecorations;
            }
        }
Esempio n. 16
0
 private void FDM_Get_Font_Button_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog GetFont = new System.Windows.Forms.FontDialog();
     if (GetFont.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         MessageBox.Show("해당 폰트의 이름은 " + GetFont.Font.Name + " 입니다");
     }
 }
Esempio n. 17
0
 internal void ChooseFont()
 {
     System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     fontDialog.Font = new System.Drawing.Font(Model.BackCoverFontModel.FontFamily, (float)Model.BackCoverFontModel.Size * 2);
     if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Model.BackCoverFontModel.Size = fontDialog.Font.Size / 2;
     }
 }
Esempio n. 18
0
        private void fontButton_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog();

               if (fd.ShowDialog() != System.Windows.Forms.DialogResult.Cancel)
               {
               font = fd.Font;
               lableFontname.Content = font.Name;
               }
        }
Esempio n. 19
0
 private void mmFormatFont_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog font = new System.Windows.Forms.FontDialog();
     font.ShowEffects = false;
     font.Font        = options.TextFont;
     if (font.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         options.TextFont = font.Font;
     }
 }
Esempio n. 20
0
        private void OnFontButtonClicked(object sender, RoutedEventArgs e)
        {
            var fontDialog   = new System.Windows.Forms.FontDialog();
            var dialogResult = fontDialog.ShowDialog();

            if (dialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // get the values out of the fontDialog instance
            }
        }
 private void Font_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         richTextBox.Selection.ApplyPropertyValue(Inline.FontSizeProperty, fontDialog.Font.Size.ToString());
         richTextBox.Selection.ApplyPropertyValue(Inline.FontFamilyProperty, fontDialog.Font.FontFamily.Name);
         //richTextBox.Selection.ApplyPropertyValue(Inline.FontStyleProperty, fontDialog.Font.Style);
     }
 }
Esempio n. 22
0
 private void Button_Click_Font(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog   fd = new System.Windows.Forms.FontDialog();
     System.Windows.Forms.DialogResult dr = fd.ShowDialog();
     if (dr != System.Windows.Forms.DialogResult.Cancel)
     {
         FontSetting = MainWindow.FontDialogToFontSetting(fd);
         Globals.FontManager.InsertNewSetting(FontSetting);
     }
 }
Esempio n. 23
0
 private void ButtonSetFont_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     fontDialog.Font = GetFont(textContent);
     if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         SetFont(this.textContent, fontDialog.Font);
         ((AnnouncementViewModel)this.DataContext).Font = GetFont(this.textContent);
     }
 }
Esempio n. 24
0
 private void Button_Click_Screen2RightTitle(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     fontDialog.ShowColor = true;
     if (System.Windows.Forms.DialogResult.OK == fontDialog.ShowDialog())
     {
         screen2Param.RightTitleFontSize  = (int)fontDialog.Font.Size;
         screen2Param.RightTitleFontName  = fontDialog.Font.FontFamily.Name;
         screen2Param.RightTitleFontColor = fontDialog.Color.ToArgb().ToString();
     }
 }
Esempio n. 25
0
        private void EnglishFontButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new System.Windows.Forms.FontDialog();

            if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.Cancel)
            {
                SettingsManager.EnglishFont = new System.Drawing.Font(dialog.Font.Name, dialog.Font.Size);
            }

            EnglishFontName.Content = SettingsManager.EnglishFont.Name + ", " + SettingsManager.EnglishFont.Size;
        }
Esempio n. 26
0
 private void fontDialogAufrufen()
 {
     System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Tbox.FontFamily = new System.Windows.Media.FontFamily(fontDialog.Font.Name);
         Tbox.FontSize   = fontDialog.Font.Size;
         Tbox.FontWeight = fontDialog.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
         Tbox.FontStyle  = fontDialog.Font.Italic ? FontStyles.Italic : FontStyles.Normal;
     }
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listViewVirtualEffects = new System.Windows.Forms.ListView();
     this.buttonRemove = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.SuspendLayout();
     //
     // listViewVirtualEffects
     //
     this.listViewVirtualEffects.Location = new System.Drawing.Point(12, 12);
     this.listViewVirtualEffects.Name = "listViewVirtualEffects";
     this.listViewVirtualEffects.Size = new System.Drawing.Size(260, 184);
     this.listViewVirtualEffects.TabIndex = 0;
     this.listViewVirtualEffects.UseCompatibleStateImageBehavior = false;
     this.listViewVirtualEffects.View = System.Windows.Forms.View.List;
     this.listViewVirtualEffects.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.listViewVirtualEffects_ItemSelectionChanged);
     //
     // buttonRemove
     //
     this.buttonRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonRemove.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.buttonRemove.Enabled = false;
     this.buttonRemove.Location = new System.Drawing.Point(197, 226);
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.Size = new System.Drawing.Size(75, 23);
     this.buttonRemove.TabIndex = 1;
     this.buttonRemove.Text = "Remove";
     this.buttonRemove.UseVisualStyleBackColor = true;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Location = new System.Drawing.Point(116, 226);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new System.Drawing.Size(75, 23);
     this.buttonCancel.TabIndex = 2;
     this.buttonCancel.Text = "Cancel";
     this.buttonCancel.UseVisualStyleBackColor = true;
     //
     // VirtualEffectRemoveDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(284, 261);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonRemove);
     this.Controls.Add(this.listViewVirtualEffects);
     this.Name = "VirtualEffectRemoveDialog";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Remove Virtual Effect";
     this.ResumeLayout(false);
 }
Esempio n. 28
0
 private void Button_Click_Font(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog   fd = new System.Windows.Forms.FontDialog();
     System.Windows.Forms.DialogResult dr = fd.ShowDialog();
     if (dr != System.Windows.Forms.DialogResult.Cancel)
     {
         GeneralSettings.FontFamily  = new System.Windows.Media.FontFamily(fd.Font.Name);
         GeneralSettings.FontSize    = fd.Font.Size * 96.0 / 72.0;
         GeneralSettings.FontWeight_ = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
         GeneralSettings.FontStyle_  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;
     }
 }
Esempio n. 29
0
 private void font_Click(object sender, RoutedEventArgs e)
 {
     fontDialog = new System.Windows.Forms.FontDialog {
         ShowApply = true,
         ShowColor = true
     };
     fontDialog.Apply += fontDialog_Apply;
     if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         fontDialog_Apply(sender, e);
     }
 }
Esempio n. 30
0
        private void Image_Btn_SetFont_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.RightButton == MouseButtonState.Pressed)
            {
                return;
            }
            var fontDialog = new System.Windows.Forms.FontDialog
            {
                AllowVerticalFonts = false,
                AllowScriptChange  = false,
                MinSize            = 8,
                ShowEffects        = false,
                ShowColor          = false,
                ShowHelp           = false,
                ShowApply          = false,
                FontMustExist      = true
            };

            var dr = fontDialog.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.Cancel)
            {
                return;
            }

            var newFontName = fontDialog.Font.Name;
            var newFontSize = fontDialog.Font.Size;

            try
            {
                this.Label_FontName.Content    = newFontName;
                this.Label_FontName.FontSize   = newFontSize;
                this.Label_FontName.FontFamily = new FontFamily(newFontName);
            }
            catch (Exception fe)
            {
                LogUtils.LogLine("cannot load user custom font: " + fe.ToString(), nameof(LHSettingsPage), LogLevel.Error);
                GlobalConfigContext.GAME_FONT_NAME     = this.startupDefaultFontName;
                GlobalConfigContext.GAME_FONT_FONTSIZE = this.startupDefaultFontSize;
                Director.GetInstance().GetMainRender().MsgLayerOpt(0, "fontname", this.startupDefaultFontName);
                Director.GetInstance().GetMainRender().MsgLayerOpt(0, "fontsize", this.startupDefaultFontSize.ToString());
                return;
            }

            Director.GetInstance().GetMainRender().MsgLayerOpt(0, "fontname", newFontName);
            Director.GetInstance().GetMainRender().MsgLayerOpt(0, "fontsize", newFontSize.ToString());

            PersistContextDAO.Assign("system_config_userfont_name", newFontName);
            PersistContextDAO.Assign("system_config_userfont_size", newFontSize);

            GlobalConfigContext.GAME_FONT_NAME     = newFontName;
            GlobalConfigContext.GAME_FONT_FONTSIZE = Convert.ToInt32(newFontSize);
        }
        private void fontButton_Click(object sender, RoutedEventArgs e)
        {
            var fontDialog = new System.Windows.Forms.FontDialog();

            fontDialog.Font = new Font(_config.FontFamily, _config.FontSize);
            if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _config.FontSize   = fontDialog.Font.Size;
                _config.FontFamily = fontDialog.Font.FontFamily.Name;
                _config.FontWeight = fontDialog.Font.Bold ? 800 : 400;
            }
        }
Esempio n. 32
0
 private void Font_MenuItem(object sender, RoutedEventArgs e)
 {
     ///System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
     System.Windows.Forms.FontDialog   fd = new System.Windows.Forms.FontDialog();
     System.Windows.Forms.DialogResult dr = fd.ShowDialog();
     if (dr != System.Windows.Forms.DialogResult.Cancel)
     {
         txtDocument.FontFamily = new System.Windows.Media.FontFamily(fd.Font.Name);
         txtDocument.FontSize   = fd.Font.Size * 96.0 / 72.0;
         txtDocument.FontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
         txtDocument.FontStyle  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;
     }
 }
        private void txtFont_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            try
            {
                System.Windows.Forms.FontDialog dlgFont = null;
                dlgFont = new System.Windows.Forms.FontDialog();

                //dlgFont.Font = set your font here

                if (dlgFont.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    txtFont.Text = dlgFont.Font.FontFamily.Name;
                    txtSize.Text = dlgFont.Font.Size.ToString();
                }
            }
            catch (Exception ex)
            {

            }
        }
		void FontChooserClick(object sender, RoutedEventArgs e)
		{
			var chooser = new System.Windows.Forms.FontDialog();
			if (sender == offsetFontButton) {
				chooser.Font = offsetFont;
			}
			if (sender == dataFontButton) {
				chooser.Font = dataFont;
			}
			if (chooser.ShowDialog() != System.Windows.Forms.DialogResult.OK)
				return;
			if (sender == offsetFontButton) {
				offsetFont = chooser.Font;
				SetPreview(offsetPreview, offsetFont);
				offsetFontButton.Content = offsetFont;
			}
			if (sender == dataFontButton) {
				dataFont = chooser.Font;
				SetPreview(dataPreview, dataFont);
				dataFontButton.Content = dataFont;
			}
		}
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextChatControl));
     this.panel1 = new System.Windows.Forms.Panel();
     this.chatBox_send = new ESFramework.Boost.Controls.ChatBox();
     this.button_send = new System.Windows.Forms.Button();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton_cut = new System.Windows.Forms.ToolStripButton();
     this.colorDialog1 = new System.Windows.Forms.ColorDialog();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.chatBox_his = new ESFramework.Boost.Controls.ChatBox();
     this.panel1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.chatBox_send);
     this.panel1.Controls.Add(this.button_send);
     this.panel1.Controls.Add(this.toolStrip1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 124);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(334, 112);
     this.panel1.TabIndex = 6;
     //
     // chatBox_send
     //
     this.chatBox_send.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chatBox_send.ContextMenuMode = ESFramework.Boost.Controls.ChatBoxContextMenuMode.None;
     this.chatBox_send.Location = new System.Drawing.Point(1, 28);
     this.chatBox_send.Name = "chatBox_send";
     this.chatBox_send.PopoutImageWhenDoubleClick = false;
     this.chatBox_send.Size = new System.Drawing.Size(331, 53);
     this.chatBox_send.TabIndex = 11;
     this.chatBox_send.Text = "";
     //
     // button_send
     //
     this.button_send.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button_send.Location = new System.Drawing.Point(281, 87);
     this.button_send.Name = "button_send";
     this.button_send.Size = new System.Drawing.Size(50, 22);
     this.button_send.TabIndex = 10;
     this.button_send.Text = "发送";
     this.button_send.UseVisualStyleBackColor = true;
     this.button_send.Click += new System.EventHandler(this.button_send_Click);
     //
     // toolStrip1
     //
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripButton1,
     this.toolStripButton_cut});
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new System.Drawing.Size(334, 25);
     this.toolStrip1.TabIndex = 5;
     this.toolStrip1.Text = "toolStrip1";
     //
     // toolStripButton1
     //
     this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
     this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton1.Name = "toolStripButton1";
     this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton1.Text = "表情";
     this.toolStripButton1.MouseEnter += new System.EventHandler(this.toolStripButton1_MouseEnter);
     this.toolStripButton1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.toolStripButton1_MouseUp);
     //
     // toolStripButton_cut
     //
     this.toolStripButton_cut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton_cut.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton_cut.Image")));
     this.toolStripButton_cut.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton_cut.Name = "toolStripButton_cut";
     this.toolStripButton_cut.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton_cut.Text = "截屏";
     this.toolStripButton_cut.Click += new System.EventHandler(this.toolStripButton_cut_Click);
     //
     // fontDialog1
     //
     this.fontDialog1.Color = System.Drawing.SystemColors.ControlText;
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 121);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(334, 3);
     this.splitter1.TabIndex = 7;
     this.splitter1.TabStop = false;
     //
     // chatBox_his
     //
     this.chatBox_his.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chatBox_his.ContextMenuMode = ESFramework.Boost.Controls.ChatBoxContextMenuMode.ForOutput;
     this.chatBox_his.Location = new System.Drawing.Point(1, 3);
     this.chatBox_his.Name = "chatBox_his";
     this.chatBox_his.PopoutImageWhenDoubleClick = true;
     this.chatBox_his.Size = new System.Drawing.Size(331, 121);
     this.chatBox_his.TabIndex = 8;
     this.chatBox_his.Text = "";
     //
     // TextChatControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.chatBox_his);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.Name = "TextChatControl";
     this.Size = new System.Drawing.Size(334, 236);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
 }
Esempio n. 36
0
        private void MenuItemFontChange_Clicked(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
            fontDialog.Font = new System.Drawing.Font(EditText1.FontFamily.ToString(), (float)EditText1.FontSize);

            if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FontFamilyConverter ffc = new FontFamilyConverter();

                EditText1.FontSize = (double)fontDialog.Font.Size;
                EditText1.FontFamily = (FontFamily)ffc.ConvertFromString(fontDialog.Font.Name);

                /*
                if (fontDialog.Font.Bold)
                    textAnnotation.FontWeight = FontWeights.Bold;
                else
                    textAnnotation.FontWeight = FontWeights.Normal;

                if (fontDialog.Font.Italic)
                    textAnnotation.FontStyle = FontStyles.Italic;
                else
                    textAnnotation.FontStyle = FontStyles.Normal;
                */
            }
        }
Esempio n. 37
0
        private void ChangeContextEditorFont()
        {
            string selectedtext = contextEditor.SelectedText;
            int selectionstart = contextEditor.SelectionStart;

            System.Windows.Forms.FontDialog fontdialog = new System.Windows.Forms.FontDialog();
            if (fontdialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                bool done = false;
                if (selectedtext.StartsWith("<font "))
                {
                    int end = selectedtext.IndexOf('>');
                    if (end > 0)
                    {
                        string font = selectedtext.Substring(0, end);
                        if (font.Contains(" color=") && !font.Contains("face="))
                        {
                            var start = selectedtext.IndexOf(" color=", StringComparison.Ordinal);
                            selectedtext = selectedtext.Insert(start, string.Format(" face=\"{0}\"", fontdialog.Font.Name));
                            done = true;
                        }
                        else if (font.Contains(" face="))
                        {
                            int facestart = font.IndexOf(" face=", StringComparison.Ordinal);
                            if (selectedtext.IndexOf('"', facestart + " face=".Length + 1) > 0)
                                end = selectedtext.IndexOf('"', facestart + " face=".Length + 1);
                            selectedtext = selectedtext.Substring(0, facestart) + string.Format(" face=\"{0}", fontdialog.Font.Name) + selectedtext.Substring(end);
                            done = true;
                        }


                    }
                }
                if (!done)
                    selectedtext = string.Format("<font face=\"{0}\">{1}</font>", fontdialog.Font.Name, selectedtext);
                contextEditor.SelectedText = selectedtext;
                contextEditor.SelectionStart = selectionstart;
                contextEditor.SelectionLength = selectedtext.Length;
            }
        }
Esempio n. 38
0
 private void btnFont_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new System.Windows.Forms.FontDialog();
     if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         ttv.currFont = new FontFamily(dialog.Font.Name);
     }
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.groupBoxTheme = new System.Windows.Forms.GroupBox();
            this.label1 = new System.Windows.Forms.Label();
            this.pictureBoxPreview = new System.Windows.Forms.PictureBox();
            this.labelFolderNameFont = new System.Windows.Forms.Label();
            this.listBoxApplicationStyles = new System.Windows.Forms.ListBox();
            this.fontDialog = new System.Windows.Forms.FontDialog();
            this.groupBoxTheme.SuspendLayout();
            this.SuspendLayout();
            //
            // groupBoxTheme
            //
            this.groupBoxTheme.Controls.Add(this.label1);
            this.groupBoxTheme.Controls.Add(this.pictureBoxPreview);
            this.groupBoxTheme.Controls.Add(this.labelFolderNameFont);
            this.groupBoxTheme.Controls.Add(this.listBoxApplicationStyles);
            this.groupBoxTheme.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.groupBoxTheme.Location = new System.Drawing.Point(8, 32);
            this.groupBoxTheme.Name = "groupBoxTheme";
            this.groupBoxTheme.Size = new System.Drawing.Size(354, 282);
            this.groupBoxTheme.TabIndex = 1;
            this.groupBoxTheme.TabStop = false;
            this.groupBoxTheme.Text = "Color";
            //
            // label1
            //
            this.label1.BackColor = System.Drawing.SystemColors.Control;
            this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.label1.Location = new System.Drawing.Point(150, 18);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(132, 18);
            this.label1.TabIndex = 2;
            this.label1.Text = "Preview:";
            //
            // pictureBoxPreview
            //
            this.pictureBoxPreview.BackColor = System.Drawing.SystemColors.Control;
            this.pictureBoxPreview.Location = new System.Drawing.Point(150, 36);
            this.pictureBoxPreview.Name = "pictureBoxPreview";
            this.pictureBoxPreview.Size = new System.Drawing.Size(192, 235);
            this.pictureBoxPreview.TabIndex = 2;
            this.pictureBoxPreview.TabStop = false;
            //
            // labelFolderNameFont
            //
            this.labelFolderNameFont.BackColor = System.Drawing.SystemColors.Control;
            this.labelFolderNameFont.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.labelFolderNameFont.Location = new System.Drawing.Point(10, 18);
            this.labelFolderNameFont.Name = "labelFolderNameFont";
            this.labelFolderNameFont.Size = new System.Drawing.Size(132, 18);
            this.labelFolderNameFont.TabIndex = 0;
            this.labelFolderNameFont.Text = "&Color scheme:";
            //
            // listBoxApplicationStyles
            //
            this.listBoxApplicationStyles.DisplayMember = "DisplayName";
            this.listBoxApplicationStyles.IntegralHeight = false;
            this.listBoxApplicationStyles.Location = new System.Drawing.Point(10, 36);
            this.listBoxApplicationStyles.Name = "listBoxApplicationStyles";
            this.listBoxApplicationStyles.Size = new System.Drawing.Size(130, 235);
            this.listBoxApplicationStyles.TabIndex = 1;
            this.listBoxApplicationStyles.SelectedIndexChanged += new System.EventHandler(this.listBoxApplicationStyles_SelectedIndexChanged);
            //
            // fontDialog
            //
            this.fontDialog.AllowScriptChange = false;
            this.fontDialog.AllowVerticalFonts = false;
            this.fontDialog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.fontDialog.FontMustExist = true;
            this.fontDialog.ScriptsOnly = true;
            this.fontDialog.ShowEffects = false;
            //
            // AppearancePreferencesPanel
            //
            this.Controls.Add(this.groupBoxTheme);
            this.Name = "AppearancePreferencesPanel";
            this.PanelName = "Appearance";
            this.Controls.SetChildIndex(this.groupBoxTheme, 0);
            this.groupBoxTheme.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Esempio n. 40
0
 /// <summary>
 /// Use the font dialog to select a font.
 /// </summary>
 /// <param name="font">
 /// An array with the initial font selected.
 /// It has the same format as the return array, and can be an empty array "".
 /// </param>
 /// <returns>An array with the font properties.
 /// result[1] is Font name
 /// result[2] is Font size
 /// result[3] is Font bold ("True" or "False")
 /// result[4] is Font italic ("True" or "False")
 /// </returns>
 public static Primitive Font(Primitive font)
 {
     string result = "";
     try
     {
         ThreadStart start = delegate
         {
             System.Windows.Forms.FontDialog dlg = new System.Windows.Forms.FontDialog();
             if (Microsoft.SmallBasic.Library.Array.GetItemCount(font) == 4)
             {
                 System.Drawing.FontStyle fontStyle = new System.Drawing.FontStyle();
                 if (font[3]) fontStyle |= System.Drawing.FontStyle.Bold;
                 if (font[4]) fontStyle |= System.Drawing.FontStyle.Italic;
                 System.Drawing.Font _Font = new System.Drawing.Font(font[1], font[2], fontStyle);
                 dlg.Font = _Font;
             }
             if (dlg.ShowDialog(Utilities.ForegroundHandle()) == System.Windows.Forms.DialogResult.OK)
             {
                 result += "1=" + Utilities.ArrayParse(dlg.Font.Name) + ";";
                 result += "2=" + Utilities.ArrayParse(dlg.Font.Size.ToString(CultureInfo.InvariantCulture)) + ";";
                 result += "3=" + (dlg.Font.Bold ? "True" : "False") + ";";
                 result += "4=" + (dlg.Font.Italic ? "True" : "False") + ";";
             }
         };
         Thread thread = new Thread(start);
         thread.SetApartmentState(ApartmentState.STA);
         thread.Start();
         StartPosition(null, "Font");
         thread.Join();
     }
     catch (Exception ex)
     {
         Utilities.OnError(Utilities.GetCurrentMethod(), ex);
     }
     return Utilities.CreateArrayMap(result);
 }
Esempio n. 41
0
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.ResetButton = new System.Windows.Forms.Button();
			this.PrintButton = new System.Windows.Forms.Button();
			this.ExitButton = new System.Windows.Forms.Button();
			this.HealthyListBox = new System.Windows.Forms.ListBox();
			this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
			this.richTextBox1 = new System.Windows.Forms.RichTextBox();
			this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.GenderGroupBox = new System.Windows.Forms.GroupBox();
			this.FemaleRadioButton = new System.Windows.Forms.RadioButton();
			this.MaleRadioButton = new System.Windows.Forms.RadioButton();
			this.colorDialog1 = new System.Windows.Forms.ColorDialog();
			this.fontDialog1 = new System.Windows.Forms.FontDialog();
			this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
			this.statusStrip1 = new System.Windows.Forms.StatusStrip();
			this.UnHealthyListBox = new System.Windows.Forms.ListBox();
			this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
			this.GenderGroupBox.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
			this.statusStrip1.SuspendLayout();
			this.SuspendLayout();
			// 
			// ResetButton
			// 
			this.ResetButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.ResetButton.Location = new System.Drawing.Point(626, 12);
			this.ResetButton.Name = "ResetButton";
			this.ResetButton.Size = new System.Drawing.Size(75, 23);
			this.ResetButton.TabIndex = 0;
			this.ResetButton.Text = "&Reset";
			this.ResetButton.UseVisualStyleBackColor = true;
			this.ResetButton.Click += new System.EventHandler(this.ResetButtonClick);
			// 
			// PrintButton
			// 
			this.PrintButton.Location = new System.Drawing.Point(626, 41);
			this.PrintButton.Name = "PrintButton";
			this.PrintButton.Size = new System.Drawing.Size(75, 23);
			this.PrintButton.TabIndex = 1;
			this.PrintButton.Text = "&Print";
			this.PrintButton.UseVisualStyleBackColor = true;
			this.PrintButton.Click += new System.EventHandler(this.PrintButtonClick);
			// 
			// ExitButton
			// 
			this.ExitButton.Location = new System.Drawing.Point(626, 70);
			this.ExitButton.Name = "ExitButton";
			this.ExitButton.Size = new System.Drawing.Size(75, 23);
			this.ExitButton.TabIndex = 2;
			this.ExitButton.Text = "&Exit";
			this.ExitButton.UseVisualStyleBackColor = true;
			this.ExitButton.Click += new System.EventHandler(this.ExitButtonClick);
			// 
			// HealthyListBox
			// 
			this.HealthyListBox.FormattingEnabled = true;
			this.HealthyListBox.Items.AddRange(new object[] {
			"Fruits",
			"Vegetables",
			"Meat & Alternatives",
			"Dairy"});
			this.HealthyListBox.Location = new System.Drawing.Point(494, 12);
			this.HealthyListBox.Name = "HealthyListBox";
			this.HealthyListBox.Size = new System.Drawing.Size(120, 56);
			this.HealthyListBox.TabIndex = 5;
			this.HealthyListBox.SelectedIndexChanged += new System.EventHandler(this.HealthyListBoxSelectedIndexChanged);
			// 
			// richTextBox1
			// 
			this.richTextBox1.AcceptsTab = true;
			this.richTextBox1.BackColor = System.Drawing.SystemColors.ButtonFace;
			this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.richTextBox1.Location = new System.Drawing.Point(12, 12);
			this.richTextBox1.Name = "richTextBox1";
			this.richTextBox1.ReadOnly = true;
			this.richTextBox1.Size = new System.Drawing.Size(449, 216);
			this.richTextBox1.TabIndex = 1;
			this.richTextBox1.Text = "";
			this.richTextBox1.TextChanged += new System.EventHandler(this.RichTextBox1TextChanged);
			// 
			// contextMenuStrip1
			// 
			this.contextMenuStrip1.Name = "contextMenuStrip1";
			this.contextMenuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
			this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
			this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStrip1Opening);
			// 
			// GenderGroupBox
			// 
			this.GenderGroupBox.Controls.Add(this.FemaleRadioButton);
			this.GenderGroupBox.Controls.Add(this.MaleRadioButton);
			this.GenderGroupBox.Location = new System.Drawing.Point(620, 112);
			this.GenderGroupBox.Name = "GenderGroupBox";
			this.GenderGroupBox.Size = new System.Drawing.Size(133, 83);
			this.GenderGroupBox.TabIndex = 10;
			this.GenderGroupBox.TabStop = false;
			this.GenderGroupBox.Text = "Gender";
			// 
			// FemaleRadioButton
			// 
			this.FemaleRadioButton.Location = new System.Drawing.Point(12, 49);
			this.FemaleRadioButton.Name = "FemaleRadioButton";
			this.FemaleRadioButton.Size = new System.Drawing.Size(104, 24);
			this.FemaleRadioButton.TabIndex = 1;
			this.FemaleRadioButton.TabStop = true;
			this.FemaleRadioButton.Text = "&Female";
			this.FemaleRadioButton.UseVisualStyleBackColor = true;
			this.FemaleRadioButton.CheckedChanged += new System.EventHandler(this.FemaleRadioButtonCheckedChanged);
			// 
			// MaleRadioButton
			// 
			this.MaleRadioButton.Location = new System.Drawing.Point(12, 19);
			this.MaleRadioButton.Name = "MaleRadioButton";
			this.MaleRadioButton.Size = new System.Drawing.Size(104, 24);
			this.MaleRadioButton.TabIndex = 0;
			this.MaleRadioButton.TabStop = true;
			this.MaleRadioButton.Text = "&Male";
			this.MaleRadioButton.UseVisualStyleBackColor = true;
			this.MaleRadioButton.CheckedChanged += new System.EventHandler(this.MaleRadioButtonCheckedChanged);
			// 
			// errorProvider1
			// 
			this.errorProvider1.ContainerControl = this;
			// 
			// statusStrip1
			// 
			this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
			this.toolStripStatusLabel1});
			this.statusStrip1.Location = new System.Drawing.Point(0, 238);
			this.statusStrip1.Name = "statusStrip1";
			this.statusStrip1.Size = new System.Drawing.Size(816, 22);
			this.statusStrip1.TabIndex = 11;
			this.statusStrip1.Text = "statusStrip1";
			// 
			// UnHealthyListBox
			// 
			this.UnHealthyListBox.FormattingEnabled = true;
			this.UnHealthyListBox.Items.AddRange(new object[] {
			"Chips",
			"Pop",
			"Candy",
			"Pie",
			"Squares",
			"Ice Cream",
			"Frozen Yogurt",
			"Frozen Treats",
			"Deli",
			"Sweet Breads"});
			this.UnHealthyListBox.Location = new System.Drawing.Point(494, 74);
			this.UnHealthyListBox.Name = "UnHealthyListBox";
			this.UnHealthyListBox.Size = new System.Drawing.Size(120, 134);
			this.UnHealthyListBox.TabIndex = 12;
			this.UnHealthyListBox.SelectedIndexChanged += new System.EventHandler(this.UnHealthyListBoxSelectedIndexChanged);
			// 
			// toolStripStatusLabel1
			// 
			this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
			this.toolStripStatusLabel1.Size = new System.Drawing.Size(118, 17);
			this.toolStripStatusLabel1.Text = "toolStripStatusLabel1";
			this.toolStripStatusLabel1.Click += new System.EventHandler(this.ToolStripStatusLabel1Click);
			// 
			// MainForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.CancelButton = this.ResetButton;
			this.ClientSize = new System.Drawing.Size(816, 260);
			this.ContextMenuStrip = this.contextMenuStrip1;
			this.Controls.Add(this.UnHealthyListBox);
			this.Controls.Add(this.statusStrip1);
			this.Controls.Add(this.GenderGroupBox);
			this.Controls.Add(this.richTextBox1);
			this.Controls.Add(this.HealthyListBox);
			this.Controls.Add(this.ExitButton);
			this.Controls.Add(this.PrintButton);
			this.Controls.Add(this.ResetButton);
			this.HelpButton = true;
			this.Name = "MainForm";
			this.Text = "HealthWise";
			this.GenderGroupBox.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
			this.statusStrip1.ResumeLayout(false);
			this.statusStrip1.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
Esempio n. 42
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmBarChart));
     this.panel1 = new System.Windows.Forms.Panel();
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.label8 = new System.Windows.Forms.Label();
     this.numericUpDownThreshold = new System.Windows.Forms.NumericUpDown();
     this.checkBoxGroup = new System.Windows.Forms.CheckBox();
     this.checkBoxRemoveZeroValue = new System.Windows.Forms.CheckBox();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.labelBorder = new System.Windows.Forms.Label();
     this.trackBarBorder = new System.Windows.Forms.TrackBar();
     this.buttonColorBorder = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.labelShadowOuterWidth = new System.Windows.Forms.Label();
     this.labelShadowInnerWidth = new System.Windows.Forms.Label();
     this.trackBarOuterShadow = new System.Windows.Forms.TrackBar();
     this.trackBarInnerShadow = new System.Windows.Forms.TrackBar();
     this.label7 = new System.Windows.Forms.Label();
     this.comboBoxShadowMode = new System.Windows.Forms.ComboBox();
     this.buttonColorOuterShadow = new System.Windows.Forms.Button();
     this.buttonColorInnerShadow = new System.Windows.Forms.Button();
     this.comboBoxDrawingMode = new System.Windows.Forms.ComboBox();
     this.label6 = new System.Windows.Forms.Label();
     this.groupBoxSizing = new System.Windows.Forms.GroupBox();
     this.trackBarWidthBar = new System.Windows.Forms.TrackBar();
     this.labelGapValue = new System.Windows.Forms.Label();
     this.trackBarGap = new System.Windows.Forms.TrackBar();
     this.labelBarWidthValue = new System.Windows.Forms.Label();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.radioButtonBKSolid = new System.Windows.Forms.RadioButton();
     this.radioButtonBKRadial = new System.Windows.Forms.RadioButton();
     this.radioButtonBKGradient = new System.Windows.Forms.RadioButton();
     this.buttonBKColor2 = new System.Windows.Forms.Button();
     this.buttonBKColor1 = new System.Windows.Forms.Button();
     this.buttonBKColorSolid = new System.Windows.Forms.Button();
     this.textBoxDesc = new System.Windows.Forms.TextBox();
     this.buttonColorLabel = new System.Windows.Forms.Button();
     this.buttonColorDesc = new System.Windows.Forms.Button();
     this.buttonColorValues = new System.Windows.Forms.Button();
     this.buttonValueFont = new System.Windows.Forms.Button();
     this.buttonDesc = new System.Windows.Forms.Button();
     this.buttonLabelFont = new System.Windows.Forms.Button();
     this.checkBoxTooltips = new System.Windows.Forms.CheckBox();
     this.checkBoxDescription = new System.Windows.Forms.CheckBox();
     this.checkBoxLabels = new System.Windows.Forms.CheckBox();
     this.checkBoxShowValues = new System.Windows.Forms.CheckBox();
     this.comboBoxValueMode = new System.Windows.Forms.ComboBox();
     this.comboBoxSizingMode = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.panel2 = new System.Windows.Forms.Panel();
     this.button1 = new System.Windows.Forms.Button();
     this.panel3 = new System.Windows.Forms.Panel();
     this.barChart = new BarChart.HBarChart();
     this.colorDialog = new System.Windows.Forms.ColorDialog();
     this.fontDialog = new System.Windows.Forms.FontDialog();
     this.panel1.SuspendLayout();
     this.groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThreshold)).BeginInit();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarBorder)).BeginInit();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarOuterShadow)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarInnerShadow)).BeginInit();
     this.groupBoxSizing.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarWidthBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarGap)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox5);
     this.panel1.Controls.Add(this.groupBox3);
     this.panel1.Controls.Add(this.groupBox2);
     this.panel1.Controls.Add(this.comboBoxDrawingMode);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.groupBoxSizing);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Controls.Add(this.textBoxDesc);
     this.panel1.Controls.Add(this.buttonColorLabel);
     this.panel1.Controls.Add(this.buttonColorDesc);
     this.panel1.Controls.Add(this.buttonColorValues);
     this.panel1.Controls.Add(this.buttonValueFont);
     this.panel1.Controls.Add(this.buttonDesc);
     this.panel1.Controls.Add(this.buttonLabelFont);
     this.panel1.Controls.Add(this.checkBoxTooltips);
     this.panel1.Controls.Add(this.checkBoxDescription);
     this.panel1.Controls.Add(this.checkBoxLabels);
     this.panel1.Controls.Add(this.checkBoxShowValues);
     this.panel1.Controls.Add(this.comboBoxValueMode);
     this.panel1.Controls.Add(this.comboBoxSizingMode);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(220, 632);
     this.panel1.TabIndex = 1;
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.label8);
     this.groupBox5.Controls.Add(this.numericUpDownThreshold);
     this.groupBox5.Controls.Add(this.checkBoxGroup);
     this.groupBox5.Controls.Add(this.checkBoxRemoveZeroValue);
     this.groupBox5.Location = new System.Drawing.Point(6, 521);
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size(206, 100);
     this.groupBox5.TabIndex = 32;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "Data";
     //
     // label8
     //
     this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label8.Location = new System.Drawing.Point(25, 70);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(72, 16);
     this.label8.TabIndex = 20;
     this.label8.Text = "Threshold";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numericUpDownThreshold
     //
     this.numericUpDownThreshold.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.numericUpDownThreshold.DecimalPlaces = 2;
     this.numericUpDownThreshold.Increment = new decimal(new int[] {
     1,
     0,
     0,
     131072});
     this.numericUpDownThreshold.Location = new System.Drawing.Point(97, 68);
     this.numericUpDownThreshold.Maximum = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.numericUpDownThreshold.Name = "numericUpDownThreshold";
     this.numericUpDownThreshold.Size = new System.Drawing.Size(48, 20);
     this.numericUpDownThreshold.TabIndex = 21;
     this.numericUpDownThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.numericUpDownThreshold.Value = new decimal(new int[] {
     7,
     0,
     0,
     131072});
     this.numericUpDownThreshold.ValueChanged += new System.EventHandler(this.numericUpDownThreshold_ValueChanged);
     //
     // checkBoxGroup
     //
     this.checkBoxGroup.AutoSize = true;
     this.checkBoxGroup.Checked = true;
     this.checkBoxGroup.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxGroup.Location = new System.Drawing.Point(16, 43);
     this.checkBoxGroup.Name = "checkBoxGroup";
     this.checkBoxGroup.Size = new System.Drawing.Size(55, 17);
     this.checkBoxGroup.TabIndex = 1;
     this.checkBoxGroup.Text = "Group";
     this.checkBoxGroup.UseVisualStyleBackColor = true;
     this.checkBoxGroup.CheckedChanged += new System.EventHandler(this.checkBoxGroup_CheckedChanged);
     //
     // checkBoxRemoveZeroValue
     //
     this.checkBoxRemoveZeroValue.AutoSize = true;
     this.checkBoxRemoveZeroValue.Checked = true;
     this.checkBoxRemoveZeroValue.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxRemoveZeroValue.Location = new System.Drawing.Point(16, 20);
     this.checkBoxRemoveZeroValue.Name = "checkBoxRemoveZeroValue";
     this.checkBoxRemoveZeroValue.Size = new System.Drawing.Size(118, 17);
     this.checkBoxRemoveZeroValue.TabIndex = 0;
     this.checkBoxRemoveZeroValue.Text = "Remove zero value";
     this.checkBoxRemoveZeroValue.UseVisualStyleBackColor = true;
     this.checkBoxRemoveZeroValue.CheckedChanged += new System.EventHandler(this.checkBoxRemoveZeroValue_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.labelBorder);
     this.groupBox3.Controls.Add(this.trackBarBorder);
     this.groupBox3.Controls.Add(this.buttonColorBorder);
     this.groupBox3.Location = new System.Drawing.Point(7, 462);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(202, 55);
     this.groupBox3.TabIndex = 17;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Border";
     //
     // labelBorder
     //
     this.labelBorder.AutoSize = true;
     this.labelBorder.Location = new System.Drawing.Point(6, 25);
     this.labelBorder.Name = "labelBorder";
     this.labelBorder.Size = new System.Drawing.Size(62, 13);
     this.labelBorder.TabIndex = 1;
     this.labelBorder.Text = "Size && color";
     //
     // trackBarBorder
     //
     this.trackBarBorder.AutoSize = false;
     this.trackBarBorder.LargeChange = 1;
     this.trackBarBorder.Location = new System.Drawing.Point(64, 19);
     this.trackBarBorder.Maximum = 100;
     this.trackBarBorder.Name = "trackBarBorder";
     this.trackBarBorder.Size = new System.Drawing.Size(90, 23);
     this.trackBarBorder.TabIndex = 1;
     this.trackBarBorder.TickFrequency = 0;
     this.trackBarBorder.Value = 10;
     this.trackBarBorder.Scroll += new System.EventHandler(this.trackBarBorder_Scroll);
     //
     // buttonColorBorder
     //
     this.buttonColorBorder.BackColor = System.Drawing.Color.White;
     this.buttonColorBorder.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorBorder.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorBorder.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorBorder.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorBorder.Location = new System.Drawing.Point(160, 21);
     this.buttonColorBorder.Name = "buttonColorBorder";
     this.buttonColorBorder.Size = new System.Drawing.Size(25, 21);
     this.buttonColorBorder.TabIndex = 8;
     this.buttonColorBorder.Text = "...";
     this.buttonColorBorder.UseVisualStyleBackColor = false;
     this.buttonColorBorder.Click += new System.EventHandler(this.buttonColorBorder_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.labelShadowOuterWidth);
     this.groupBox2.Controls.Add(this.labelShadowInnerWidth);
     this.groupBox2.Controls.Add(this.trackBarOuterShadow);
     this.groupBox2.Controls.Add(this.trackBarInnerShadow);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.comboBoxShadowMode);
     this.groupBox2.Controls.Add(this.buttonColorOuterShadow);
     this.groupBox2.Controls.Add(this.buttonColorInnerShadow);
     this.groupBox2.Location = new System.Drawing.Point(7, 347);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(202, 109);
     this.groupBox2.TabIndex = 17;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Shadow";
     //
     // labelShadowOuterWidth
     //
     this.labelShadowOuterWidth.AutoSize = true;
     this.labelShadowOuterWidth.Location = new System.Drawing.Point(6, 79);
     this.labelShadowOuterWidth.Name = "labelShadowOuterWidth";
     this.labelShadowOuterWidth.Size = new System.Drawing.Size(33, 13);
     this.labelShadowOuterWidth.TabIndex = 1;
     this.labelShadowOuterWidth.Text = "Outer";
     //
     // labelShadowInnerWidth
     //
     this.labelShadowInnerWidth.AutoSize = true;
     this.labelShadowInnerWidth.Location = new System.Drawing.Point(6, 48);
     this.labelShadowInnerWidth.Name = "labelShadowInnerWidth";
     this.labelShadowInnerWidth.Size = new System.Drawing.Size(31, 13);
     this.labelShadowInnerWidth.TabIndex = 1;
     this.labelShadowInnerWidth.Text = "Inner";
     //
     // trackBarOuterShadow
     //
     this.trackBarOuterShadow.AutoSize = false;
     this.trackBarOuterShadow.LargeChange = 1;
     this.trackBarOuterShadow.Location = new System.Drawing.Point(64, 75);
     this.trackBarOuterShadow.Maximum = 100;
     this.trackBarOuterShadow.Name = "trackBarOuterShadow";
     this.trackBarOuterShadow.Size = new System.Drawing.Size(90, 23);
     this.trackBarOuterShadow.TabIndex = 1;
     this.trackBarOuterShadow.TickFrequency = 0;
     this.trackBarOuterShadow.Value = 5;
     this.trackBarOuterShadow.Scroll += new System.EventHandler(this.trackBarShadowOuter_Scroll);
     //
     // trackBarInnerShadow
     //
     this.trackBarInnerShadow.AutoSize = false;
     this.trackBarInnerShadow.LargeChange = 1;
     this.trackBarInnerShadow.Location = new System.Drawing.Point(64, 48);
     this.trackBarInnerShadow.Maximum = 100;
     this.trackBarInnerShadow.Name = "trackBarInnerShadow";
     this.trackBarInnerShadow.Size = new System.Drawing.Size(90, 23);
     this.trackBarInnerShadow.TabIndex = 1;
     this.trackBarInnerShadow.TickFrequency = 0;
     this.trackBarInnerShadow.Value = 5;
     this.trackBarInnerShadow.Scroll += new System.EventHandler(this.trackBarShadowInner_Scroll);
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(4, 24);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(34, 13);
     this.label7.TabIndex = 1;
     this.label7.Text = "Mode";
     //
     // comboBoxShadowMode
     //
     this.comboBoxShadowMode.FormattingEnabled = true;
     this.comboBoxShadowMode.Items.AddRange(new object[] {
     "None",
     "Inner",
     "Outer",
     "Both"});
     this.comboBoxShadowMode.Location = new System.Drawing.Point(64, 21);
     this.comboBoxShadowMode.Name = "comboBoxShadowMode";
     this.comboBoxShadowMode.Size = new System.Drawing.Size(121, 21);
     this.comboBoxShadowMode.TabIndex = 0;
     this.comboBoxShadowMode.SelectedIndexChanged += new System.EventHandler(this.comboBoxShadowMode_SelectedIndexChanged);
     //
     // buttonColorOuterShadow
     //
     this.buttonColorOuterShadow.BackColor = System.Drawing.Color.White;
     this.buttonColorOuterShadow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorOuterShadow.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorOuterShadow.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorOuterShadow.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorOuterShadow.Location = new System.Drawing.Point(160, 75);
     this.buttonColorOuterShadow.Name = "buttonColorOuterShadow";
     this.buttonColorOuterShadow.Size = new System.Drawing.Size(25, 21);
     this.buttonColorOuterShadow.TabIndex = 8;
     this.buttonColorOuterShadow.Text = "...";
     this.buttonColorOuterShadow.UseVisualStyleBackColor = false;
     this.buttonColorOuterShadow.Click += new System.EventHandler(this.buttonColorOuterShadow_Click);
     //
     // buttonColorInnerShadow
     //
     this.buttonColorInnerShadow.BackColor = System.Drawing.Color.White;
     this.buttonColorInnerShadow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorInnerShadow.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorInnerShadow.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorInnerShadow.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorInnerShadow.Location = new System.Drawing.Point(160, 48);
     this.buttonColorInnerShadow.Name = "buttonColorInnerShadow";
     this.buttonColorInnerShadow.Size = new System.Drawing.Size(25, 21);
     this.buttonColorInnerShadow.TabIndex = 5;
     this.buttonColorInnerShadow.Text = "...";
     this.buttonColorInnerShadow.UseVisualStyleBackColor = false;
     this.buttonColorInnerShadow.Click += new System.EventHandler(this.buttonColorInnerShadow_Click);
     //
     // comboBoxDrawingMode
     //
     this.comboBoxDrawingMode.FormattingEnabled = true;
     this.comboBoxDrawingMode.Items.AddRange(new object[] {
     "Glass",
     "Rubber",
     "Solid"});
     this.comboBoxDrawingMode.Location = new System.Drawing.Point(72, 37);
     this.comboBoxDrawingMode.Name = "comboBoxDrawingMode";
     this.comboBoxDrawingMode.Size = new System.Drawing.Size(118, 21);
     this.comboBoxDrawingMode.TabIndex = 16;
     this.comboBoxDrawingMode.SelectionChangeCommitted += new System.EventHandler(this.comboBoxBarDrawingMode_SelectionChangeCommitted);
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(4, 38);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(46, 13);
     this.label6.TabIndex = 15;
     this.label6.Text = "Drawing";
     //
     // groupBoxSizing
     //
     this.groupBoxSizing.Controls.Add(this.trackBarWidthBar);
     this.groupBoxSizing.Controls.Add(this.labelGapValue);
     this.groupBoxSizing.Controls.Add(this.trackBarGap);
     this.groupBoxSizing.Controls.Add(this.labelBarWidthValue);
     this.groupBoxSizing.Location = new System.Drawing.Point(7, 278);
     this.groupBoxSizing.Name = "groupBoxSizing";
     this.groupBoxSizing.Size = new System.Drawing.Size(202, 62);
     this.groupBoxSizing.TabIndex = 14;
     this.groupBoxSizing.TabStop = false;
     this.groupBoxSizing.Text = "Bars";
     //
     // trackBarWidthBar
     //
     this.trackBarWidthBar.AutoSize = false;
     this.trackBarWidthBar.LargeChange = 1;
     this.trackBarWidthBar.Location = new System.Drawing.Point(79, 33);
     this.trackBarWidthBar.Maximum = 100;
     this.trackBarWidthBar.Minimum = 24;
     this.trackBarWidthBar.Name = "trackBarWidthBar";
     this.trackBarWidthBar.Size = new System.Drawing.Size(106, 23);
     this.trackBarWidthBar.TabIndex = 3;
     this.trackBarWidthBar.TickFrequency = 0;
     this.trackBarWidthBar.Value = 24;
     this.trackBarWidthBar.Scroll += new System.EventHandler(this.trackBarWidthBar_Scroll);
     //
     // labelGapValue
     //
     this.labelGapValue.AutoSize = true;
     this.labelGapValue.Location = new System.Drawing.Point(3, 16);
     this.labelGapValue.Name = "labelGapValue";
     this.labelGapValue.Size = new System.Drawing.Size(60, 13);
     this.labelGapValue.TabIndex = 0;
     this.labelGapValue.Text = "Gap size(4)";
     //
     // trackBarGap
     //
     this.trackBarGap.AutoSize = false;
     this.trackBarGap.LargeChange = 1;
     this.trackBarGap.Location = new System.Drawing.Point(79, 10);
     this.trackBarGap.Maximum = 20;
     this.trackBarGap.Name = "trackBarGap";
     this.trackBarGap.Size = new System.Drawing.Size(106, 23);
     this.trackBarGap.TabIndex = 1;
     this.trackBarGap.TickFrequency = 0;
     this.trackBarGap.Value = 4;
     this.trackBarGap.Scroll += new System.EventHandler(this.trackBarGap_Scroll);
     //
     // labelBarWidthValue
     //
     this.labelBarWidthValue.AutoSize = true;
     this.labelBarWidthValue.Location = new System.Drawing.Point(4, 39);
     this.labelBarWidthValue.Name = "labelBarWidthValue";
     this.labelBarWidthValue.Size = new System.Drawing.Size(72, 13);
     this.labelBarWidthValue.TabIndex = 2;
     this.labelBarWidthValue.Text = "Bar Width(24)";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.radioButtonBKSolid);
     this.groupBox1.Controls.Add(this.radioButtonBKRadial);
     this.groupBox1.Controls.Add(this.radioButtonBKGradient);
     this.groupBox1.Controls.Add(this.buttonBKColor2);
     this.groupBox1.Controls.Add(this.buttonBKColor1);
     this.groupBox1.Controls.Add(this.buttonBKColorSolid);
     this.groupBox1.Location = new System.Drawing.Point(7, 168);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(202, 104);
     this.groupBox1.TabIndex = 13;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Background";
     //
     // radioButtonBKSolid
     //
     this.radioButtonBKSolid.AutoSize = true;
     this.radioButtonBKSolid.Location = new System.Drawing.Point(7, 68);
     this.radioButtonBKSolid.Name = "radioButtonBKSolid";
     this.radioButtonBKSolid.Size = new System.Drawing.Size(48, 17);
     this.radioButtonBKSolid.TabIndex = 3;
     this.radioButtonBKSolid.TabStop = true;
     this.radioButtonBKSolid.Text = "Solid";
     this.radioButtonBKSolid.UseVisualStyleBackColor = true;
     this.radioButtonBKSolid.CheckedChanged += new System.EventHandler(this.radioButtonBKSolid_CheckedChanged);
     //
     // radioButtonBKRadial
     //
     this.radioButtonBKRadial.AutoSize = true;
     this.radioButtonBKRadial.Location = new System.Drawing.Point(7, 42);
     this.radioButtonBKRadial.Name = "radioButtonBKRadial";
     this.radioButtonBKRadial.Size = new System.Drawing.Size(55, 17);
     this.radioButtonBKRadial.TabIndex = 0;
     this.radioButtonBKRadial.TabStop = true;
     this.radioButtonBKRadial.Text = "Radial";
     this.radioButtonBKRadial.UseVisualStyleBackColor = true;
     this.radioButtonBKRadial.CheckedChanged += new System.EventHandler(this.radioButtonBKRadial_CheckedChanged);
     //
     // radioButtonBKGradient
     //
     this.radioButtonBKGradient.AutoSize = true;
     this.radioButtonBKGradient.Location = new System.Drawing.Point(7, 15);
     this.radioButtonBKGradient.Name = "radioButtonBKGradient";
     this.radioButtonBKGradient.Size = new System.Drawing.Size(65, 17);
     this.radioButtonBKGradient.TabIndex = 0;
     this.radioButtonBKGradient.TabStop = true;
     this.radioButtonBKGradient.Text = "Gradient";
     this.radioButtonBKGradient.UseVisualStyleBackColor = true;
     this.radioButtonBKGradient.CheckedChanged += new System.EventHandler(this.radioButtonBKGradient_CheckedChanged);
     //
     // buttonBKColor2
     //
     this.buttonBKColor2.BackColor = System.Drawing.Color.Transparent;
     this.buttonBKColor2.Location = new System.Drawing.Point(138, 12);
     this.buttonBKColor2.Name = "buttonBKColor2";
     this.buttonBKColor2.Size = new System.Drawing.Size(45, 22);
     this.buttonBKColor2.TabIndex = 2;
     this.buttonBKColor2.Text = "Color2";
     this.buttonBKColor2.UseVisualStyleBackColor = false;
     this.buttonBKColor2.Click += new System.EventHandler(this.buttonBKColor2_Click);
     //
     // buttonBKColor1
     //
     this.buttonBKColor1.BackColor = System.Drawing.Color.Transparent;
     this.buttonBKColor1.Location = new System.Drawing.Point(90, 12);
     this.buttonBKColor1.Name = "buttonBKColor1";
     this.buttonBKColor1.Size = new System.Drawing.Size(45, 22);
     this.buttonBKColor1.TabIndex = 1;
     this.buttonBKColor1.Text = "Color1";
     this.buttonBKColor1.UseVisualStyleBackColor = false;
     this.buttonBKColor1.Click += new System.EventHandler(this.buttonBKColor1_Click);
     //
     // buttonBKColorSolid
     //
     this.buttonBKColorSolid.BackColor = System.Drawing.Color.Transparent;
     this.buttonBKColorSolid.Location = new System.Drawing.Point(90, 65);
     this.buttonBKColorSolid.Name = "buttonBKColorSolid";
     this.buttonBKColorSolid.Size = new System.Drawing.Size(93, 22);
     this.buttonBKColorSolid.TabIndex = 4;
     this.buttonBKColorSolid.Text = "Select Color";
     this.buttonBKColorSolid.UseVisualStyleBackColor = false;
     this.buttonBKColorSolid.Click += new System.EventHandler(this.buttonBKColorSolid_Click);
     //
     // textBoxDesc
     //
     this.textBoxDesc.Location = new System.Drawing.Point(72, 116);
     this.textBoxDesc.Name = "textBoxDesc";
     this.textBoxDesc.Size = new System.Drawing.Size(58, 20);
     this.textBoxDesc.TabIndex = 10;
     //
     // buttonColorLabel
     //
     this.buttonColorLabel.BackColor = System.Drawing.Color.White;
     this.buttonColorLabel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorLabel.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorLabel.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorLabel.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorLabel.Location = new System.Drawing.Point(187, 92);
     this.buttonColorLabel.Name = "buttonColorLabel";
     this.buttonColorLabel.Size = new System.Drawing.Size(25, 21);
     this.buttonColorLabel.TabIndex = 8;
     this.buttonColorLabel.Text = "...";
     this.buttonColorLabel.UseVisualStyleBackColor = false;
     this.buttonColorLabel.Click += new System.EventHandler(this.buttonColorLabels_Click);
     //
     // buttonColorDesc
     //
     this.buttonColorDesc.BackColor = System.Drawing.Color.White;
     this.buttonColorDesc.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorDesc.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorDesc.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorDesc.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorDesc.Location = new System.Drawing.Point(187, 116);
     this.buttonColorDesc.Name = "buttonColorDesc";
     this.buttonColorDesc.Size = new System.Drawing.Size(25, 21);
     this.buttonColorDesc.TabIndex = 12;
     this.buttonColorDesc.Text = "...";
     this.buttonColorDesc.UseVisualStyleBackColor = false;
     this.buttonColorDesc.Click += new System.EventHandler(this.buttonColorDesc_Click);
     //
     // buttonColorValues
     //
     this.buttonColorValues.BackColor = System.Drawing.Color.White;
     this.buttonColorValues.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.buttonColorValues.Cursor = System.Windows.Forms.Cursors.Hand;
     this.buttonColorValues.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.buttonColorValues.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonColorValues.Location = new System.Drawing.Point(187, 68);
     this.buttonColorValues.Name = "buttonColorValues";
     this.buttonColorValues.Size = new System.Drawing.Size(25, 21);
     this.buttonColorValues.TabIndex = 5;
     this.buttonColorValues.Text = "...";
     this.buttonColorValues.UseVisualStyleBackColor = false;
     this.buttonColorValues.Click += new System.EventHandler(this.buttonColorValues_Click);
     //
     // buttonValueFont
     //
     this.buttonValueFont.BackColor = System.Drawing.Color.Transparent;
     this.buttonValueFont.Location = new System.Drawing.Point(138, 68);
     this.buttonValueFont.Name = "buttonValueFont";
     this.buttonValueFont.Size = new System.Drawing.Size(45, 22);
     this.buttonValueFont.TabIndex = 4;
     this.buttonValueFont.Text = "Font";
     this.buttonValueFont.UseVisualStyleBackColor = false;
     this.buttonValueFont.Click += new System.EventHandler(this.buttonValueFont_Click);
     //
     // buttonDesc
     //
     this.buttonDesc.BackColor = System.Drawing.Color.Transparent;
     this.buttonDesc.Location = new System.Drawing.Point(138, 116);
     this.buttonDesc.Name = "buttonDesc";
     this.buttonDesc.Size = new System.Drawing.Size(45, 22);
     this.buttonDesc.TabIndex = 11;
     this.buttonDesc.Text = "Font";
     this.buttonDesc.UseVisualStyleBackColor = false;
     this.buttonDesc.Click += new System.EventHandler(this.buttonDesc_Click);
     //
     // buttonLabelFont
     //
     this.buttonLabelFont.BackColor = System.Drawing.Color.Transparent;
     this.buttonLabelFont.Location = new System.Drawing.Point(138, 92);
     this.buttonLabelFont.Name = "buttonLabelFont";
     this.buttonLabelFont.Size = new System.Drawing.Size(45, 22);
     this.buttonLabelFont.TabIndex = 7;
     this.buttonLabelFont.Text = "Font";
     this.buttonLabelFont.UseVisualStyleBackColor = false;
     this.buttonLabelFont.Click += new System.EventHandler(this.buttonLabelFont_Click);
     //
     // checkBoxTooltips
     //
     this.checkBoxTooltips.AutoSize = true;
     this.checkBoxTooltips.Location = new System.Drawing.Point(7, 141);
     this.checkBoxTooltips.Name = "checkBoxTooltips";
     this.checkBoxTooltips.Size = new System.Drawing.Size(63, 17);
     this.checkBoxTooltips.TabIndex = 9;
     this.checkBoxTooltips.Text = "Tooltips";
     this.checkBoxTooltips.UseVisualStyleBackColor = true;
     this.checkBoxTooltips.CheckedChanged += new System.EventHandler(this.checkBoxTooltips_CheckedChanged);
     //
     // checkBoxDescription
     //
     this.checkBoxDescription.AutoSize = true;
     this.checkBoxDescription.Location = new System.Drawing.Point(7, 116);
     this.checkBoxDescription.Name = "checkBoxDescription";
     this.checkBoxDescription.Size = new System.Drawing.Size(51, 17);
     this.checkBoxDescription.TabIndex = 9;
     this.checkBoxDescription.Text = "Desc";
     this.checkBoxDescription.UseVisualStyleBackColor = true;
     this.checkBoxDescription.CheckedChanged += new System.EventHandler(this.checkBoxDescription_CheckedChanged);
     //
     // checkBoxLabels
     //
     this.checkBoxLabels.AutoSize = true;
     this.checkBoxLabels.Location = new System.Drawing.Point(7, 92);
     this.checkBoxLabels.Name = "checkBoxLabels";
     this.checkBoxLabels.Size = new System.Drawing.Size(57, 17);
     this.checkBoxLabels.TabIndex = 6;
     this.checkBoxLabels.Text = "Labels";
     this.checkBoxLabels.UseVisualStyleBackColor = true;
     this.checkBoxLabels.CheckedChanged += new System.EventHandler(this.checkBoxLabels_CheckedChanged);
     //
     // checkBoxShowValues
     //
     this.checkBoxShowValues.AutoSize = true;
     this.checkBoxShowValues.Location = new System.Drawing.Point(7, 68);
     this.checkBoxShowValues.Name = "checkBoxShowValues";
     this.checkBoxShowValues.Size = new System.Drawing.Size(58, 17);
     this.checkBoxShowValues.TabIndex = 2;
     this.checkBoxShowValues.Text = "Values";
     this.checkBoxShowValues.UseVisualStyleBackColor = true;
     this.checkBoxShowValues.CheckedChanged += new System.EventHandler(this.checkBoxShowValues_CheckedChanged);
     //
     // comboBoxValueMode
     //
     this.comboBoxValueMode.FormattingEnabled = true;
     this.comboBoxValueMode.Items.AddRange(new object[] {
     "Digit",
     "Percent"});
     this.comboBoxValueMode.Location = new System.Drawing.Point(72, 68);
     this.comboBoxValueMode.Name = "comboBoxValueMode";
     this.comboBoxValueMode.Size = new System.Drawing.Size(58, 21);
     this.comboBoxValueMode.TabIndex = 3;
     this.comboBoxValueMode.SelectedIndexChanged += new System.EventHandler(this.comboBoxValueMode_SelectedIndexChanged);
     //
     // comboBoxSizingMode
     //
     this.comboBoxSizingMode.FormattingEnabled = true;
     this.comboBoxSizingMode.Items.AddRange(new object[] {
     "AutoScale",
     "Normal"});
     this.comboBoxSizingMode.Location = new System.Drawing.Point(72, 9);
     this.comboBoxSizingMode.Name = "comboBoxSizingMode";
     this.comboBoxSizingMode.Size = new System.Drawing.Size(118, 21);
     this.comboBoxSizingMode.TabIndex = 1;
     this.comboBoxSizingMode.SelectionChangeCommitted += new System.EventHandler(this.comboBoxSizingMode_SelectionChangeCommitted);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(4, 12);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(62, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "SizingMode";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.button1);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Location = new System.Drawing.Point(220, 589);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(700, 43);
     this.panel2.TabIndex = 2;
     //
     // button1
     //
     this.button1.BackColor = System.Drawing.Color.Transparent;
     this.button1.Location = new System.Drawing.Point(265, 13);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(93, 22);
     this.button1.TabIndex = 5;
     this.button1.Text = "Save Image";
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.barChart);
     this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(220, 0);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(700, 589);
     this.panel3.TabIndex = 3;
     //
     // barChart
     //
     this.barChart.Background.GradientColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(210)))), ((int)(((byte)(245)))));
     this.barChart.Background.GradientColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(30)))), ((int)(((byte)(90)))));
     this.barChart.Background.PaintingMode = BarChart.CBackgroundProperty.PaintingModes.RadialGradient;
     this.barChart.Background.SolidColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(30)))), ((int)(((byte)(90)))));
     this.barChart.BarsGap = 4;
     this.barChart.BarWidth = 24;
     this.barChart.Border.BoundRect = ((System.Drawing.RectangleF)(resources.GetObject("resource.BoundRect")));
     this.barChart.Border.Color = System.Drawing.Color.White;
     this.barChart.Border.Visible = true;
     this.barChart.Border.Width = 1;
     this.barChart.Description.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.barChart.Description.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold);
     this.barChart.Description.FontDefaultSize = 14F;
     this.barChart.Description.Text = "";
     this.barChart.Description.Visible = true;
     this.barChart.Dock = System.Windows.Forms.DockStyle.Fill;
     this.barChart.Items.DefaultWidth = 0;
     this.barChart.Items.DrawingMode = BarChart.HBarItems.DrawingModes.Glass;
     this.barChart.Items.ShouldReCalculate = false;
     this.barChart.Label.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.barChart.Label.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
     this.barChart.Label.FontDefaultSize = 8F;
     this.barChart.Label.Visible = true;
     this.barChart.Location = new System.Drawing.Point(0, 0);
     this.barChart.Name = "barChart";
     this.barChart.Shadow.ColorInner = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.barChart.Shadow.ColorOuter = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.barChart.Shadow.Mode = BarChart.CShadowProperty.Modes.Inner;
     this.barChart.Shadow.WidthInner = 5;
     this.barChart.Shadow.WidthOuter = 5;
     this.barChart.Size = new System.Drawing.Size(700, 589);
     this.barChart.SizingMode = BarChart.HBarChart.BarSizingMode.Normal;
     this.barChart.TabIndex = 0;
     this.barChart.Values.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.barChart.Values.Font = new System.Drawing.Font("Tahoma", 7F);
     this.barChart.Values.FontDefaultSize = 7F;
     this.barChart.Values.Mode = BarChart.CValueProperty.ValueMode.Digit;
     this.barChart.Values.Visible = true;
     //
     // frmBarChart
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(920, 632);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Name = "frmBarChart";
     this.Text = "frmBarChart";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.groupBox5.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThreshold)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarBorder)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarOuterShadow)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarInnerShadow)).EndInit();
     this.groupBoxSizing.ResumeLayout(false);
     this.groupBoxSizing.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarWidthBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBarGap)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        private void txtFont_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            try
            {
                System.Windows.Forms.FontDialog dlgFont = null;
                dlgFont = new System.Windows.Forms.FontDialog();

                if (dlgFont.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    txtFont.Text = dlgFont.Font.FontFamily.Name;
                    txtFont.FontFamily = new System.Windows.Media.FontFamily(dlgFont.Font.FontFamily.Name);
                    txtSize.Text = dlgFont.Font.Size.ToString();
                }
            }
            catch
            {
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PedigreeSettingsForm));
     this.button1 = new System.Windows.Forms.Button();
     this.settingsTabControl = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.tabPage3 = new System.Windows.Forms.TabPage();
     this.nationalityCheck = new System.Windows.Forms.CheckBox();
     this.label6 = new System.Windows.Forms.Label();
     this.nameWidthSlider = new System.Windows.Forms.TrackBar();
     this.ethnicityCheck = new System.Windows.Forms.CheckBox();
     this.button10 = new System.Windows.Forms.Button();
     this.CommentCheck = new System.Windows.Forms.CheckBox();
     this.label7 = new System.Windows.Forms.Label();
     this.FrameRateTrackBar = new System.Windows.Forms.TrackBar();
     this.numRelativesCheck = new System.Windows.Forms.CheckBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.titleBorderDrop = new System.Windows.Forms.ComboBox();
     this.button5 = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.spacingSlider = new System.Windows.Forms.TrackBar();
     this.button4 = new System.Windows.Forms.Button();
     this.Title = new System.Windows.Forms.CheckBox();
     this.button3 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.dobCheck = new System.Windows.Forms.CheckBox();
     this.unitnumCheck = new System.Windows.Forms.CheckBox();
     this.nameCheck = new System.Windows.Forms.CheckBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.label5 = new System.Windows.Forms.Label();
     this.legendSlider = new System.Windows.Forms.TrackBar();
     this.button8 = new System.Windows.Forms.Button();
     this.label3 = new System.Windows.Forms.Label();
     this.Legend = new System.Windows.Forms.CheckBox();
     this.legendBorderDrop = new System.Windows.Forms.ComboBox();
     this.button6 = new System.Windows.Forms.Button();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.button9 = new System.Windows.Forms.Button();
     this.label4 = new System.Windows.Forms.Label();
     this.button7 = new System.Windows.Forms.Button();
     this.commentsBorderDrop = new System.Windows.Forms.ComboBox();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.FoundVusBox = new System.Windows.Forms.TextBox();
     this.label13 = new System.Windows.Forms.Label();
     this.HeteroBox = new System.Windows.Forms.TextBox();
     this.label12 = new System.Windows.Forms.Label();
     this.UnknownBox = new System.Windows.Forms.TextBox();
     this.label11 = new System.Windows.Forms.Label();
     this.NotTestedBox = new System.Windows.Forms.TextBox();
     this.label10 = new System.Windows.Forms.Label();
     this.NotFoundBox = new System.Windows.Forms.TextBox();
     this.label9 = new System.Windows.Forms.Label();
     this.FoundBox = new System.Windows.Forms.TextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.SaveAsSystem = new System.Windows.Forms.Button();
     this.ApplySystemDefaultToAll = new System.Windows.Forms.Button();
     this.colorDialog1 = new System.Windows.Forms.ColorDialog();
     this.settingsTabControl.SuspendLayout();
     this.tabPage3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.nameWidthSlider)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.FrameRateTrackBar)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.spacingSlider)).BeginInit();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.legendSlider)).BeginInit();
     this.groupBox3.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.Location = new System.Drawing.Point(370, 385);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "Close";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // settingsTabControl
     //
     this.settingsTabControl.Controls.Add(this.tabPage1);
     this.settingsTabControl.Controls.Add(this.tabPage3);
     this.settingsTabControl.Controls.Add(this.tabPage2);
     this.settingsTabControl.Location = new System.Drawing.Point(5, 5);
     this.settingsTabControl.Name = "settingsTabControl";
     this.settingsTabControl.SelectedIndex = 0;
     this.settingsTabControl.Size = new System.Drawing.Size(440, 374);
     this.settingsTabControl.TabIndex = 1;
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(432, 348);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Annotations";
     this.tabPage1.UseVisualStyleBackColor = true;
     this.tabPage1.Paint += new System.Windows.Forms.PaintEventHandler(this.tabPage1_Paint);
     //
     // tabPage3
     //
     this.tabPage3.Controls.Add(this.nationalityCheck);
     this.tabPage3.Controls.Add(this.label6);
     this.tabPage3.Controls.Add(this.nameWidthSlider);
     this.tabPage3.Controls.Add(this.ethnicityCheck);
     this.tabPage3.Controls.Add(this.button10);
     this.tabPage3.Controls.Add(this.CommentCheck);
     this.tabPage3.Controls.Add(this.label7);
     this.tabPage3.Controls.Add(this.FrameRateTrackBar);
     this.tabPage3.Controls.Add(this.numRelativesCheck);
     this.tabPage3.Controls.Add(this.groupBox1);
     this.tabPage3.Controls.Add(this.groupBox2);
     this.tabPage3.Controls.Add(this.groupBox3);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name = "tabPage3";
     this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage3.Size = new System.Drawing.Size(432, 348);
     this.tabPage3.TabIndex = 3;
     this.tabPage3.Text = "Options";
     this.tabPage3.UseVisualStyleBackColor = true;
     //
     // nationalityCheck
     //
     this.nationalityCheck.AutoSize = true;
     this.nationalityCheck.Checked = true;
     this.nationalityCheck.CheckState = System.Windows.Forms.CheckState.Checked;
     this.nationalityCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nationalityCheck.Location = new System.Drawing.Point(224, 10);
     this.nationalityCheck.Name = "nationalityCheck";
     this.nationalityCheck.Size = new System.Drawing.Size(109, 30);
     this.nationalityCheck.TabIndex = 14;
     this.nationalityCheck.Text = "Show Nationality \r\nOnly For Parents";
     this.nationalityCheck.UseVisualStyleBackColor = true;
     this.nationalityCheck.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged_1);
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.Location = new System.Drawing.Point(13, 42);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(72, 39);
     this.label6.TabIndex = 13;
     this.label6.Text = "Name\r\nWidth\r\n(0=Unlimited)";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // nameWidthSlider
     //
     this.nameWidthSlider.Location = new System.Drawing.Point(77, 45);
     this.nameWidthSlider.Maximum = 20;
     this.nameWidthSlider.Name = "nameWidthSlider";
     this.nameWidthSlider.Size = new System.Drawing.Size(123, 45);
     this.nameWidthSlider.TabIndex = 12;
     this.nameWidthSlider.Value = 8;
     this.nameWidthSlider.Scroll += new System.EventHandler(this.trackBar3_Scroll);
     //
     // ethnicityCheck
     //
     this.ethnicityCheck.AutoSize = true;
     this.ethnicityCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ethnicityCheck.Location = new System.Drawing.Point(224, 47);
     this.ethnicityCheck.Name = "ethnicityCheck";
     this.ethnicityCheck.Size = new System.Drawing.Size(107, 30);
     this.ethnicityCheck.TabIndex = 11;
     this.ethnicityCheck.Text = "Show Ethnicity \r\nOnly For Parents";
     this.ethnicityCheck.UseVisualStyleBackColor = true;
     this.ethnicityCheck.Click += new System.EventHandler(this.checkBox1_Click);
     //
     // button10
     //
     this.button10.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button10.Location = new System.Drawing.Point(77, 10);
     this.button10.Name = "button10";
     this.button10.Size = new System.Drawing.Size(108, 23);
     this.button10.TabIndex = 10;
     this.button10.Text = "Background Color";
     this.button10.UseVisualStyleBackColor = true;
     this.button10.Click += new System.EventHandler(this.button10_Click);
     //
     // CommentCheck
     //
     this.CommentCheck.AutoSize = true;
     this.CommentCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CommentCheck.Location = new System.Drawing.Point(302, 93);
     this.CommentCheck.Name = "CommentCheck";
     this.CommentCheck.Size = new System.Drawing.Size(100, 17);
     this.CommentCheck.TabIndex = 7;
     this.CommentCheck.Text = "Show Comment";
     this.CommentCheck.UseVisualStyleBackColor = true;
     this.CommentCheck.CheckedChanged += new System.EventHandler(this.checkBox7_CheckedChanged);
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(272, 311);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(36, 26);
     this.label7.TabIndex = 3;
     this.label7.Text = "Frame\r\nRate";
     //
     // FrameRateTrackBar
     //
     this.FrameRateTrackBar.Location = new System.Drawing.Point(303, 303);
     this.FrameRateTrackBar.Maximum = 100;
     this.FrameRateTrackBar.Minimum = 10;
     this.FrameRateTrackBar.Name = "FrameRateTrackBar";
     this.FrameRateTrackBar.Size = new System.Drawing.Size(123, 45);
     this.FrameRateTrackBar.TabIndex = 2;
     this.FrameRateTrackBar.Value = 35;
     this.FrameRateTrackBar.Scroll += new System.EventHandler(this.FrameRateTrackBar_Scroll);
     this.FrameRateTrackBar.ValueChanged += new System.EventHandler(this.FrameRateTrackBar_ValueChanged);
     //
     // numRelativesCheck
     //
     this.numRelativesCheck.AutoSize = true;
     this.numRelativesCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.numRelativesCheck.Location = new System.Drawing.Point(348, 32);
     this.numRelativesCheck.Name = "numRelativesCheck";
     this.numRelativesCheck.Size = new System.Drawing.Size(70, 30);
     this.numRelativesCheck.TabIndex = 1;
     this.numRelativesCheck.Text = "Number\r\nRelatives";
     this.numRelativesCheck.UseVisualStyleBackColor = true;
     this.numRelativesCheck.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.titleBorderDrop);
     this.groupBox1.Controls.Add(this.button5);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.spacingSlider);
     this.groupBox1.Controls.Add(this.button4);
     this.groupBox1.Controls.Add(this.Title);
     this.groupBox1.Controls.Add(this.button3);
     this.groupBox1.Controls.Add(this.button2);
     this.groupBox1.Controls.Add(this.dobCheck);
     this.groupBox1.Controls.Add(this.unitnumCheck);
     this.groupBox1.Controls.Add(this.nameCheck);
     this.groupBox1.Location = new System.Drawing.Point(6, 95);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(135, 247);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop = false;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(12, 220);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(39, 13);
     this.label2.TabIndex = 15;
     this.label2.Text = "Border";
     //
     // titleBorderDrop
     //
     this.titleBorderDrop.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.titleBorderDrop.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.titleBorderDrop.FormattingEnabled = true;
     this.titleBorderDrop.Items.AddRange(new object[] {
     "None",
     "Single",
     "3D"});
     this.titleBorderDrop.Location = new System.Drawing.Point(54, 216);
     this.titleBorderDrop.Name = "titleBorderDrop";
     this.titleBorderDrop.Size = new System.Drawing.Size(67, 21);
     this.titleBorderDrop.TabIndex = 14;
     this.titleBorderDrop.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // button5
     //
     this.button5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button5.Location = new System.Drawing.Point(10, 187);
     this.button5.Name = "button5";
     this.button5.Size = new System.Drawing.Size(115, 22);
     this.button5.TabIndex = 13;
     this.button5.Text = "Background Color";
     this.button5.UseVisualStyleBackColor = true;
     this.button5.Click += new System.EventHandler(this.button5_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(13, 123);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(44, 13);
     this.label1.TabIndex = 8;
     this.label1.Text = "Spacing";
     //
     // spacingSlider
     //
     this.spacingSlider.LargeChange = 10;
     this.spacingSlider.Location = new System.Drawing.Point(6, 139);
     this.spacingSlider.Maximum = 200;
     this.spacingSlider.Name = "spacingSlider";
     this.spacingSlider.Size = new System.Drawing.Size(125, 45);
     this.spacingSlider.SmallChange = 5;
     this.spacingSlider.TabIndex = 12;
     this.spacingSlider.Value = 5;
     this.spacingSlider.Scroll += new System.EventHandler(this.trackBar1_Scroll);
     //
     // button4
     //
     this.button4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button4.Location = new System.Drawing.Point(81, 93);
     this.button4.Name = "button4";
     this.button4.Size = new System.Drawing.Size(44, 22);
     this.button4.TabIndex = 11;
     this.button4.Text = "Font";
     this.button4.UseVisualStyleBackColor = true;
     this.button4.Click += new System.EventHandler(this.button4_Click);
     //
     // Title
     //
     this.Title.AutoSize = true;
     this.Title.Checked = true;
     this.Title.CheckState = System.Windows.Forms.CheckState.Checked;
     this.Title.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Title.Location = new System.Drawing.Point(10, 0);
     this.Title.Name = "Title";
     this.Title.Size = new System.Drawing.Size(75, 17);
     this.Title.TabIndex = 4;
     this.Title.Text = "Show Title";
     this.Title.UseVisualStyleBackColor = true;
     this.Title.CheckedChanged += new System.EventHandler(this.Title_CheckedChanged);
     //
     // button3
     //
     this.button3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button3.Location = new System.Drawing.Point(81, 62);
     this.button3.Name = "button3";
     this.button3.Size = new System.Drawing.Size(44, 22);
     this.button3.TabIndex = 10;
     this.button3.Text = "Font";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // button2
     //
     this.button2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button2.Location = new System.Drawing.Point(81, 31);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(44, 22);
     this.button2.TabIndex = 9;
     this.button2.Text = "Font";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // dobCheck
     //
     this.dobCheck.AutoSize = true;
     this.dobCheck.Checked = true;
     this.dobCheck.CheckState = System.Windows.Forms.CheckState.Checked;
     this.dobCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dobCheck.Location = new System.Drawing.Point(10, 91);
     this.dobCheck.Name = "dobCheck";
     this.dobCheck.Size = new System.Drawing.Size(47, 17);
     this.dobCheck.TabIndex = 8;
     this.dobCheck.Text = "DOB";
     this.dobCheck.UseVisualStyleBackColor = true;
     this.dobCheck.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged);
     //
     // unitnumCheck
     //
     this.unitnumCheck.AutoSize = true;
     this.unitnumCheck.Checked = true;
     this.unitnumCheck.CheckState = System.Windows.Forms.CheckState.Checked;
     this.unitnumCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.unitnumCheck.Location = new System.Drawing.Point(10, 60);
     this.unitnumCheck.Name = "unitnumCheck";
     this.unitnumCheck.Size = new System.Drawing.Size(65, 17);
     this.unitnumCheck.TabIndex = 7;
     this.unitnumCheck.Text = "Unitnum";
     this.unitnumCheck.UseVisualStyleBackColor = true;
     this.unitnumCheck.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
     //
     // nameCheck
     //
     this.nameCheck.AutoSize = true;
     this.nameCheck.Checked = true;
     this.nameCheck.CheckState = System.Windows.Forms.CheckState.Checked;
     this.nameCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nameCheck.Location = new System.Drawing.Point(10, 29);
     this.nameCheck.Name = "nameCheck";
     this.nameCheck.Size = new System.Drawing.Size(53, 17);
     this.nameCheck.TabIndex = 6;
     this.nameCheck.Text = "Name";
     this.nameCheck.UseVisualStyleBackColor = true;
     this.nameCheck.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.legendSlider);
     this.groupBox2.Controls.Add(this.button8);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.Legend);
     this.groupBox2.Controls.Add(this.legendBorderDrop);
     this.groupBox2.Controls.Add(this.button6);
     this.groupBox2.Location = new System.Drawing.Point(156, 95);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(125, 190);
     this.groupBox2.TabIndex = 8;
     this.groupBox2.TabStop = false;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(6, 61);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(26, 13);
     this.label5.TabIndex = 16;
     this.label5.Text = "Size";
     //
     // legendSlider
     //
     this.legendSlider.Location = new System.Drawing.Point(6, 77);
     this.legendSlider.Maximum = 50;
     this.legendSlider.Minimum = 2;
     this.legendSlider.Name = "legendSlider";
     this.legendSlider.Size = new System.Drawing.Size(104, 45);
     this.legendSlider.TabIndex = 20;
     this.legendSlider.Value = 8;
     this.legendSlider.Scroll += new System.EventHandler(this.trackBar2_Scroll);
     //
     // button8
     //
     this.button8.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button8.Location = new System.Drawing.Point(23, 30);
     this.button8.Name = "button8";
     this.button8.Size = new System.Drawing.Size(75, 23);
     this.button8.TabIndex = 19;
     this.button8.Text = "Font";
     this.button8.UseVisualStyleBackColor = true;
     this.button8.Click += new System.EventHandler(this.button8_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(8, 158);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(39, 13);
     this.label3.TabIndex = 18;
     this.label3.Text = "Border";
     //
     // Legend
     //
     this.Legend.AutoSize = true;
     this.Legend.Checked = true;
     this.Legend.CheckState = System.Windows.Forms.CheckState.Checked;
     this.Legend.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Legend.Location = new System.Drawing.Point(15, -2);
     this.Legend.Name = "Legend";
     this.Legend.Size = new System.Drawing.Size(90, 17);
     this.Legend.TabIndex = 6;
     this.Legend.Text = "Show Legend";
     this.Legend.UseVisualStyleBackColor = true;
     this.Legend.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged);
     //
     // legendBorderDrop
     //
     this.legendBorderDrop.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.legendBorderDrop.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.legendBorderDrop.FormattingEnabled = true;
     this.legendBorderDrop.Items.AddRange(new object[] {
     "None",
     "Single",
     "3D"});
     this.legendBorderDrop.Location = new System.Drawing.Point(50, 154);
     this.legendBorderDrop.Name = "legendBorderDrop";
     this.legendBorderDrop.Size = new System.Drawing.Size(67, 21);
     this.legendBorderDrop.TabIndex = 17;
     this.legendBorderDrop.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // button6
     //
     this.button6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button6.Location = new System.Drawing.Point(6, 125);
     this.button6.Name = "button6";
     this.button6.Size = new System.Drawing.Size(111, 22);
     this.button6.TabIndex = 16;
     this.button6.Text = "Background Color";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new System.EventHandler(this.button6_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.button9);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.button7);
     this.groupBox3.Controls.Add(this.commentsBorderDrop);
     this.groupBox3.Location = new System.Drawing.Point(295, 95);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(129, 190);
     this.groupBox3.TabIndex = 9;
     this.groupBox3.TabStop = false;
     //
     // button9
     //
     this.button9.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button9.Location = new System.Drawing.Point(32, 31);
     this.button9.Name = "button9";
     this.button9.Size = new System.Drawing.Size(75, 23);
     this.button9.TabIndex = 21;
     this.button9.Text = "Font";
     this.button9.UseVisualStyleBackColor = true;
     this.button9.Click += new System.EventHandler(this.button9_Click);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(14, 127);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(39, 13);
     this.label4.TabIndex = 21;
     this.label4.Text = "Border";
     //
     // button7
     //
     this.button7.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button7.Location = new System.Drawing.Point(7, 77);
     this.button7.Name = "button7";
     this.button7.Size = new System.Drawing.Size(111, 22);
     this.button7.TabIndex = 19;
     this.button7.Text = "Background Color";
     this.button7.UseVisualStyleBackColor = true;
     this.button7.Click += new System.EventHandler(this.button7_Click);
     //
     // commentsBorderDrop
     //
     this.commentsBorderDrop.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.commentsBorderDrop.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.commentsBorderDrop.FormattingEnabled = true;
     this.commentsBorderDrop.Items.AddRange(new object[] {
     "None",
     "Single",
     "3D"});
     this.commentsBorderDrop.Location = new System.Drawing.Point(56, 123);
     this.commentsBorderDrop.Name = "commentsBorderDrop";
     this.commentsBorderDrop.Size = new System.Drawing.Size(67, 21);
     this.commentsBorderDrop.TabIndex = 20;
     this.commentsBorderDrop.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.FoundVusBox);
     this.tabPage2.Controls.Add(this.label13);
     this.tabPage2.Controls.Add(this.HeteroBox);
     this.tabPage2.Controls.Add(this.label12);
     this.tabPage2.Controls.Add(this.UnknownBox);
     this.tabPage2.Controls.Add(this.label11);
     this.tabPage2.Controls.Add(this.NotTestedBox);
     this.tabPage2.Controls.Add(this.label10);
     this.tabPage2.Controls.Add(this.NotFoundBox);
     this.tabPage2.Controls.Add(this.label9);
     this.tabPage2.Controls.Add(this.FoundBox);
     this.tabPage2.Controls.Add(this.label8);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size = new System.Drawing.Size(432, 348);
     this.tabPage2.TabIndex = 4;
     this.tabPage2.Text = "Variant Symbols";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // FoundVusBox
     //
     this.FoundVusBox.Location = new System.Drawing.Point(135, 73);
     this.FoundVusBox.Name = "FoundVusBox";
     this.FoundVusBox.Size = new System.Drawing.Size(58, 20);
     this.FoundVusBox.TabIndex = 11;
     this.FoundVusBox.Text = "vus";
     this.FoundVusBox.Validated += new System.EventHandler(this.FoundVusBox_Validated);
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Location = new System.Drawing.Point(87, 37);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(37, 13);
     this.label13.TabIndex = 10;
     this.label13.Text = "Found";
     //
     // HeteroBox
     //
     this.HeteroBox.Location = new System.Drawing.Point(135, 229);
     this.HeteroBox.Name = "HeteroBox";
     this.HeteroBox.Size = new System.Drawing.Size(58, 20);
     this.HeteroBox.TabIndex = 9;
     this.HeteroBox.Text = "+/-";
     this.HeteroBox.Validated += new System.EventHandler(this.HeteroBox_Validated);
     //
     // label12
     //
     this.label12.AutoSize = true;
     this.label12.Location = new System.Drawing.Point(23, 232);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(101, 13);
     this.label12.TabIndex = 8;
     this.label12.Text = "Hemi/Heterozygous";
     //
     // UnknownBox
     //
     this.UnknownBox.Location = new System.Drawing.Point(135, 190);
     this.UnknownBox.Name = "UnknownBox";
     this.UnknownBox.Size = new System.Drawing.Size(58, 20);
     this.UnknownBox.TabIndex = 7;
     this.UnknownBox.Text = "?";
     this.UnknownBox.Validated += new System.EventHandler(this.UnknownBox_Validated);
     //
     // label11
     //
     this.label11.AutoSize = true;
     this.label11.Location = new System.Drawing.Point(71, 193);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(53, 13);
     this.label11.TabIndex = 6;
     this.label11.Text = "Unknown";
     //
     // NotTestedBox
     //
     this.NotTestedBox.Location = new System.Drawing.Point(135, 151);
     this.NotTestedBox.Name = "NotTestedBox";
     this.NotTestedBox.Size = new System.Drawing.Size(58, 20);
     this.NotTestedBox.TabIndex = 5;
     this.NotTestedBox.Text = "NT";
     this.NotTestedBox.Validated += new System.EventHandler(this.NotTestedBox_Validated);
     //
     // label10
     //
     this.label10.AutoSize = true;
     this.label10.Location = new System.Drawing.Point(64, 154);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(60, 13);
     this.label10.TabIndex = 4;
     this.label10.Text = "Not Tested";
     //
     // NotFoundBox
     //
     this.NotFoundBox.Location = new System.Drawing.Point(135, 112);
     this.NotFoundBox.Name = "NotFoundBox";
     this.NotFoundBox.Size = new System.Drawing.Size(58, 20);
     this.NotFoundBox.TabIndex = 3;
     this.NotFoundBox.Text = "-";
     this.NotFoundBox.Validated += new System.EventHandler(this.NotFoundBox_Validated);
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Location = new System.Drawing.Point(67, 115);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(57, 13);
     this.label9.TabIndex = 2;
     this.label9.Text = "Not Found";
     //
     // FoundBox
     //
     this.FoundBox.Location = new System.Drawing.Point(135, 34);
     this.FoundBox.Name = "FoundBox";
     this.FoundBox.Size = new System.Drawing.Size(58, 20);
     this.FoundBox.TabIndex = 1;
     this.FoundBox.Text = "+";
     this.FoundBox.Validated += new System.EventHandler(this.FoundBox_Validated);
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(62, 76);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(62, 13);
     this.label8.TabIndex = 0;
     this.label8.Text = "Found VUS";
     //
     // SaveAsSystem
     //
     this.SaveAsSystem.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.SaveAsSystem.Location = new System.Drawing.Point(134, 385);
     this.SaveAsSystem.Name = "SaveAsSystem";
     this.SaveAsSystem.Size = new System.Drawing.Size(123, 23);
     this.SaveAsSystem.TabIndex = 2;
     this.SaveAsSystem.Text = "Make System Default";
     this.SaveAsSystem.UseVisualStyleBackColor = true;
     this.SaveAsSystem.Click += new System.EventHandler(this.SaveAsSystem_Click);
     //
     // ApplySystemDefaultToAll
     //
     this.ApplySystemDefaultToAll.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ApplySystemDefaultToAll.Location = new System.Drawing.Point(5, 385);
     this.ApplySystemDefaultToAll.Name = "ApplySystemDefaultToAll";
     this.ApplySystemDefaultToAll.Size = new System.Drawing.Size(123, 23);
     this.ApplySystemDefaultToAll.TabIndex = 4;
     this.ApplySystemDefaultToAll.Text = "Apply To All Pedigrees";
     this.ApplySystemDefaultToAll.UseVisualStyleBackColor = true;
     this.ApplySystemDefaultToAll.Click += new System.EventHandler(this.ApplySystemDefaultToAll_Click);
     //
     // PedigreeSettingsForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.BackColor = System.Drawing.SystemColors.Control;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.ClientSize = new System.Drawing.Size(457, 410);
     this.ControlBox = false;
     this.Controls.Add(this.ApplySystemDefaultToAll);
     this.Controls.Add(this.SaveAsSystem);
     this.Controls.Add(this.settingsTabControl);
     this.Controls.Add(this.button1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "PedigreeSettingsForm";
     this.Text = "Pedigree Settings";
     this.TopMost = true;
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PedigreeSettingsForm_FormClosing);
     this.Move += new System.EventHandler(this.PedigreeBuilderTemplateForm_Move);
     this.settingsTabControl.ResumeLayout(false);
     this.tabPage3.ResumeLayout(false);
     this.tabPage3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.nameWidthSlider)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.FrameRateTrackBar)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.spacingSlider)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.legendSlider)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.tabPage2.ResumeLayout(false);
     this.tabPage2.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Shows the select text font dialog.
 /// </summary>
 public void ShowSelectTextFont()
 {
     #if ON_OS_MAC
       ShowMacFontDialog();
     #endif
     #if ON_OS_WINDOWS
       var fontDialog = new System.Windows.Forms.FontDialog();
       var font = new System.Drawing.Font(fontFaceName, 12f);
       fontDialog.Font = font;
       var parent = RhinoWindows.Forms.WindowsInterop.ObjectAsIWin32Window(Window);
       if (null == parent) parent = RhinoApp.MainWindow();
       if (System.Windows.Forms.DialogResult.OK == fontDialog.ShowDialog(parent))
     fontFaceName = fontDialog.Font.FontFamily.Name;
     #endif
 }
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NumberedTextBox));
     this.txtContent = new System.Windows.Forms.RichTextBox();
     this.panelLine = new System.Windows.Forms.Panel();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.btnCloseOpen = new System.Windows.Forms.Button();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // txtContent
     //
     this.txtContent.AcceptsTab = true;
     this.txtContent.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill;
     this.txtContent.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtContent.Location = new System.Drawing.Point(75, 0);
     this.txtContent.Margin = new System.Windows.Forms.Padding(0);
     this.txtContent.Name = "txtContent";
     this.txtContent.Size = new System.Drawing.Size(545, 452);
     this.txtContent.TabIndex = 1;
     this.txtContent.Text = "";
     this.txtContent.WordWrap = false;
     this.txtContent.VScroll += new System.EventHandler(this.richTextBox1_VScroll);
     this.txtContent.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
     //
     // panelLine
     //
     this.panelLine.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panelLine.Location = new System.Drawing.Point(0, 0);
     this.panelLine.Margin = new System.Windows.Forms.Padding(0);
     this.panelLine.Name = "panelLine";
     this.panelLine.Size = new System.Drawing.Size(55, 452);
     this.panelLine.TabIndex = 2;
     this.panelLine.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
     //
     // fontDialog1
     //
     this.fontDialog1.Color = System.Drawing.SystemColors.ControlText;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 55F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Controls.Add(this.txtContent, 2, 0);
     this.tableLayoutPanel1.Controls.Add(this.panelLine, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnCloseOpen, 1, 0);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(620, 452);
     this.tableLayoutPanel1.TabIndex = 5;
     //
     // btnCloseOpen
     //
     this.btnCloseOpen.Dock = System.Windows.Forms.DockStyle.Fill;
     this.btnCloseOpen.Image = global::Justin.FrameWork.WinForm.Properties.Resources.opened;
     this.btnCloseOpen.Location = new System.Drawing.Point(58, 3);
     this.btnCloseOpen.Name = "btnCloseOpen";
     this.btnCloseOpen.Size = new System.Drawing.Size(14, 446);
     this.btnCloseOpen.TabIndex = 3;
     this.btnCloseOpen.UseVisualStyleBackColor = true;
     this.btnCloseOpen.Click += new System.EventHandler(this.btnCloseOpen_Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "opened.gif");
     this.imageList1.Images.SetKeyName(1, "closed.gif");
     //
     // NumberedTextBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.tableLayoutPanel1);
     this.Name = "NumberedTextBox";
     this.Size = new System.Drawing.Size(620, 452);
     this.Load += new System.EventHandler(this.NumberedTextBox_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 47
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.OKButton = new System.Windows.Forms.Button();
     this.ApplyButton = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.ResetButton = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.FontButton = new System.Windows.Forms.Button();
     this.BgColorButton = new System.Windows.Forms.Button();
     this.PreViewTextBox = new System.Windows.Forms.TextBox();
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.colorDialog1 = new System.Windows.Forms.ColorDialog();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.tabPage1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // OKButton
     //
     this.OKButton.Location = new System.Drawing.Point(183, 259);
     this.OKButton.Name = "OKButton";
     this.OKButton.Size = new System.Drawing.Size(77, 26);
     this.OKButton.TabIndex = 1;
     this.OKButton.Text = "OK";
     this.OKButton.UseVisualStyleBackColor = true;
     this.OKButton.Click += new System.EventHandler(this.OKButton_Click);
     //
     // ApplyButton
     //
     this.ApplyButton.Location = new System.Drawing.Point(266, 259);
     this.ApplyButton.Name = "ApplyButton";
     this.ApplyButton.Size = new System.Drawing.Size(77, 26);
     this.ApplyButton.TabIndex = 2;
     this.ApplyButton.Text = "適用";
     this.ApplyButton.UseVisualStyleBackColor = true;
     this.ApplyButton.Click += new System.EventHandler(this.ApplyButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location = new System.Drawing.Point(349, 259);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(77, 26);
     this.cancelButton.TabIndex = 3;
     this.cancelButton.Text = "キャンセル";
     this.cancelButton.UseVisualStyleBackColor = true;
     this.cancelButton.Click += new System.EventHandler(this.CancelButton_Click);
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.ResetButton);
     this.tabPage1.Controls.Add(this.label1);
     this.tabPage1.Controls.Add(this.FontButton);
     this.tabPage1.Controls.Add(this.BgColorButton);
     this.tabPage1.Controls.Add(this.PreViewTextBox);
     this.tabPage1.Location = new System.Drawing.Point(4, 21);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(421, 216);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "色とフォント";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // ResetButton
     //
     this.ResetButton.Location = new System.Drawing.Point(311, 133);
     this.ResetButton.Name = "ResetButton";
     this.ResetButton.Size = new System.Drawing.Size(83, 25);
     this.ResetButton.TabIndex = 4;
     this.ResetButton.Text = "リセット(&R)";
     this.ResetButton.UseVisualStyleBackColor = true;
     this.ResetButton.Click += new System.EventHandler(this.ResetButton_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(18, 23);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(66, 12);
     this.label1.TabIndex = 3;
     this.label1.Text = "プレビュー(&P):";
     //
     // FontButton
     //
     this.FontButton.Location = new System.Drawing.Point(311, 91);
     this.FontButton.Name = "FontButton";
     this.FontButton.Size = new System.Drawing.Size(84, 24);
     this.FontButton.TabIndex = 2;
     this.FontButton.Text = "フォント(&F)...";
     this.FontButton.UseVisualStyleBackColor = true;
     this.FontButton.Click += new System.EventHandler(this.FontButton_Click);
     //
     // BgColorButton
     //
     this.BgColorButton.Location = new System.Drawing.Point(311, 47);
     this.BgColorButton.Name = "BgColorButton";
     this.BgColorButton.Size = new System.Drawing.Size(84, 24);
     this.BgColorButton.TabIndex = 1;
     this.BgColorButton.Text = "背景色(&B)...";
     this.BgColorButton.UseVisualStyleBackColor = true;
     this.BgColorButton.Click += new System.EventHandler(this.BgColorButton_Click);
     //
     // PreViewTextBox
     //
     this.PreViewTextBox.BackColor = System.Drawing.SystemColors.ControlText;
     this.PreViewTextBox.ForeColor = System.Drawing.SystemColors.ControlLightLight;
     this.PreViewTextBox.Location = new System.Drawing.Point(20, 47);
     this.PreViewTextBox.Multiline = true;
     this.PreViewTextBox.Name = "PreViewTextBox";
     this.PreViewTextBox.ReadOnly = true;
     this.PreViewTextBox.Size = new System.Drawing.Size(276, 124);
     this.PreViewTextBox.TabIndex = 0;
     this.PreViewTextBox.Text = "12345\r\nabcde\r\nABCDE\r\nアイウエオ\r\nアイウエオ\r\nあいうえお";
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Location = new System.Drawing.Point(2, 12);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(429, 241);
     this.tabControl1.TabIndex = 0;
     //
     // fontDialog1
     //
     this.fontDialog1.ShowColor = true;
     //
     // settingDialog
     //
     this.AcceptButton = this.OKButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.LightGray;
     this.ClientSize = new System.Drawing.Size(435, 294);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.ApplyButton);
     this.Controls.Add(this.OKButton);
     this.Controls.Add(this.tabControl1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name = "settingDialog";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "もー帳の設定";
     this.Load += new System.EventHandler(this.settingDialog_Load);
     this.tabPage1.ResumeLayout(false);
     this.tabPage1.PerformLayout();
     this.tabControl1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 48
0
        /// <summary>
        /// Changes the font.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void ChangeFont(object sender, RoutedEventArgs e)
        {
            var currentTab = (TabItem)tabCntl.SelectedItem;
            var currentEditor = (TextEditor)currentTab.Content;
            System.Windows.Forms.FontDialog fdlg = new System.Windows.Forms.FontDialog();
            fdlg.AllowVectorFonts = false;
            fdlg.AllowVerticalFonts = false;

            var ft = new FontTranslate(
                currentEditor.FontFamily,
                currentEditor.FontSize,
                currentEditor.FontStyle,
                currentEditor.FontWeight);

            fdlg.Font = ft.Font;

            if (fdlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ft = new FontTranslate(fdlg.Font);
                currentEditor.FontSize = ft.FontSize;
                currentEditor.FontFamily = ft.FontFamily;
                currentEditor.FontWeight = ft.FontWeight;
                currentEditor.FontStyle = ft.FontStyle;

                this.configuationSettings.EditorTypeface = ft.Typeface;
                this.configuationSettings.EditorFontSize = (float)ft.FontSize;
                this.configuationSettings.SaveFont();
            }
        }
        private void btnFont_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FontDialog f = new System.Windows.Forms.FontDialog();
            System.Windows.Forms.DialogResult dr = f.ShowDialog();
            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                //FontConverter F = new FontConverter();
                //F.

                foreach (object o in ((ctlPOD)_ControlToBind).cnvPOD.Children)
                {
                    if (o.GetType() == typeof(Button))
                    {
                        ((Button)o).FontFamily = new FontFamily(f.Font.Name);
                        ((Button)o).FontSize = f.Font.Size;
                        if(f.Font.Bold)
                        ((Button)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((Button)o).FontStyle = FontStyles.Italic;
                        
                    }
                    else if (o.GetType() == typeof(TextBox))
                    {
                        ((TextBox)o).FontFamily = new FontFamily(f.Font.Name);
                        ((TextBox)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((TextBox)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((TextBox)o).FontStyle = FontStyles.Italic;
                    }
                    else if (o.GetType() == typeof(TextBlock))
                    {
                        ((TextBlock)o).FontFamily = new FontFamily(f.Font.Name);
                        ((TextBlock)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((TextBlock)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((TextBlock)o).FontStyle = FontStyles.Italic;
                    }
                    else if (o.GetType() == typeof(Label))
                    {
                        ((Label)o).FontFamily = new FontFamily(f.Font.Name);
                        ((Label)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((Label)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((Label)o).FontStyle = FontStyles.Italic;
                    }

                    else if (o.GetType() == typeof(ComboBox))
                    {
                        ((ComboBox)o).FontFamily = new FontFamily(f.Font.Name);
                        ((ComboBox)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((ComboBox)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((ComboBox)o).FontStyle = FontStyles.Italic;
                    }

                    else if (o.GetType() == typeof(ListBox))
                    {
                        ((ListBox)o).FontFamily = new FontFamily(f.Font.Name);
                        ((ListBox)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((ListBox)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((ListBox)o).FontStyle = FontStyles.Italic;
                    }

                    else if (o.GetType() == typeof(RadioButton))
                    {
                        ((RadioButton)o).FontFamily = new FontFamily(f.Font.Name);
                        ((RadioButton)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((RadioButton)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((RadioButton)o).FontStyle = FontStyles.Italic;
                    }

                    else if (o.GetType() == typeof(CheckBox))
                    {
                        ((CheckBox)o).FontFamily = new FontFamily(f.Font.Name);
                        ((CheckBox)o).FontSize = f.Font.Size;
                        if (f.Font.Bold)
                            ((CheckBox)o).FontWeight = FontWeights.Bold;
                        if (f.Font.Italic)
                            ((CheckBox)o).FontStyle = FontStyles.Italic;
                    }
                }

               // btnBackColor.FontFamily = new FontFamily(f.Font.Name);
               //btnBackColor.FontSize = f.Font.Size;
               //btnBackColor.FontFamily = f.Font.Name;
               //btnBackColor.FontFamily = f.Font.Name;

            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSettings));
     this.ButtonOK = new System.Windows.Forms.Button();
     this.ButtonCancel = new System.Windows.Forms.Button();
     this.TabControlSettings = new System.Windows.Forms.TabControl();
     this.TabPageActivity = new System.Windows.Forms.TabPage();
     this.ToolStripContainerActivity = new System.Windows.Forms.ToolStripContainer();
     this.ToolStripActivity = new System.Windows.Forms.ToolStrip();
     this.ToolStripButtonAdd = new System.Windows.Forms.ToolStripButton();
     this.ToolStripButtonEdit = new System.Windows.Forms.ToolStripButton();
     this.ToolStripButtonDelete = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.ToolStripButtonUp = new System.Windows.Forms.ToolStripButton();
     this.ToolStripButtonDown = new System.Windows.Forms.ToolStripButton();
     this.ListViewActivity = new System.Windows.Forms.ListView();
     this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.LabelActivity = new System.Windows.Forms.Label();
     this.PictureBoxActivity = new System.Windows.Forms.PictureBox();
     this.TabPageReminder = new System.Windows.Forms.TabPage();
     this.LabelReminder = new System.Windows.Forms.Label();
     this.PictureBoxReminder = new System.Windows.Forms.PictureBox();
     this.GroupBoxDisplay = new System.Windows.Forms.GroupBox();
     this.RadioButtonBalloon = new System.Windows.Forms.RadioButton();
     this.RadioButtonSplash = new System.Windows.Forms.RadioButton();
     this.GroupBoxSplash = new System.Windows.Forms.GroupBox();
     this.LabelSound = new System.Windows.Forms.Label();
     this.ButtonBrowseSound = new System.Windows.Forms.Button();
     this.CheckBoxSound = new System.Windows.Forms.CheckBox();
     this.ButtonSplashBackColor = new System.Windows.Forms.Button();
     this.ButtonSplashFont = new System.Windows.Forms.Button();
     this.LabelSplashExample = new System.Windows.Forms.Label();
     this.TabPageDefaults = new System.Windows.Forms.TabPage();
     this.GroupBoxDefaults = new System.Windows.Forms.GroupBox();
     this.NumericReminderPost = new System.Windows.Forms.NumericUpDown();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.NumericReminderPre = new System.Windows.Forms.NumericUpDown();
     this.LabelReminderDuration = new System.Windows.Forms.Label();
     this.LabelReminderInterval = new System.Windows.Forms.Label();
     this.LabelReminderDurationSeconds = new System.Windows.Forms.Label();
     this.NumericReminderDuration = new System.Windows.Forms.NumericUpDown();
     this.LabelReminderIntervalMinutes = new System.Windows.Forms.Label();
     this.LabelDefaults = new System.Windows.Forms.Label();
     this.PictureBoxDefaults = new System.Windows.Forms.PictureBox();
     this.TabPageSystemSettings = new System.Windows.Forms.TabPage();
     this.GroupBoxApplicationSettings = new System.Windows.Forms.GroupBox();
     this.ButtonResetSettings = new System.Windows.Forms.Button();
     this.GroupBoxSystemSettings = new System.Windows.Forms.GroupBox();
     this.CheckBoxWindowsStartMinimize = new System.Windows.Forms.CheckBox();
     this.CheckBoxWindowsStart = new System.Windows.Forms.CheckBox();
     this.LabelSystem = new System.Windows.Forms.Label();
     this.PictureBoxSystem = new System.Windows.Forms.PictureBox();
     this.FitnessTimer = new System.Windows.Forms.Timer(this.components);
     this.FitnessNotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.ContextMenuStripNotify = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.openSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
     this.pauseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.resumeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ImageListActivity = new System.Windows.Forms.ImageList(this.components);
     this.FontDialogSplash = new System.Windows.Forms.FontDialog();
     this.ColorDialogSplash = new System.Windows.Forms.ColorDialog();
     this.OpenFileDialogSound = new System.Windows.Forms.OpenFileDialog();
     this.HelpProviderSettings = new System.Windows.Forms.HelpProvider();
     this.TabControlSettings.SuspendLayout();
     this.TabPageActivity.SuspendLayout();
     this.ToolStripContainerActivity.BottomToolStripPanel.SuspendLayout();
     this.ToolStripContainerActivity.ContentPanel.SuspendLayout();
     this.ToolStripContainerActivity.SuspendLayout();
     this.ToolStripActivity.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxActivity)).BeginInit();
     this.TabPageReminder.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxReminder)).BeginInit();
     this.GroupBoxDisplay.SuspendLayout();
     this.GroupBoxSplash.SuspendLayout();
     this.TabPageDefaults.SuspendLayout();
     this.GroupBoxDefaults.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderPost)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderPre)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderDuration)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxDefaults)).BeginInit();
     this.TabPageSystemSettings.SuspendLayout();
     this.GroupBoxApplicationSettings.SuspendLayout();
     this.GroupBoxSystemSettings.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxSystem)).BeginInit();
     this.ContextMenuStripNotify.SuspendLayout();
     this.SuspendLayout();
     //
     // ButtonOK
     //
     this.ButtonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ButtonOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.HelpProviderSettings.SetHelpString(this.ButtonOK, "Saves current settings, minimizes the window and starts the reminder timer.");
     this.ButtonOK.Location = new System.Drawing.Point(150, 358);
     this.ButtonOK.Name = "ButtonOK";
     this.HelpProviderSettings.SetShowHelp(this.ButtonOK, true);
     this.ButtonOK.Size = new System.Drawing.Size(108, 23);
     this.ButtonOK.TabIndex = 0;
     this.ButtonOK.Text = "Save && &Run";
     this.ButtonOK.UseVisualStyleBackColor = true;
     this.ButtonOK.Click += new System.EventHandler(this.ButtonOK_Click);
     //
     // ButtonCancel
     //
     this.ButtonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.HelpProviderSettings.SetHelpString(this.ButtonCancel, "Closes the window. If Fitnes Reminder was previously started, it continues withou" +
     "t saving changes. If Fitness Reminder was just started, Fitness Reminder will ex" +
     "it.");
     this.ButtonCancel.Location = new System.Drawing.Point(264, 358);
     this.ButtonCancel.Name = "ButtonCancel";
     this.HelpProviderSettings.SetShowHelp(this.ButtonCancel, true);
     this.ButtonCancel.Size = new System.Drawing.Size(84, 23);
     this.ButtonCancel.TabIndex = 1;
     this.ButtonCancel.Text = "&Cancel";
     this.ButtonCancel.UseVisualStyleBackColor = true;
     this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
     //
     // TabControlSettings
     //
     this.TabControlSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.TabControlSettings.Controls.Add(this.TabPageActivity);
     this.TabControlSettings.Controls.Add(this.TabPageReminder);
     this.TabControlSettings.Controls.Add(this.TabPageDefaults);
     this.TabControlSettings.Controls.Add(this.TabPageSystemSettings);
     this.TabControlSettings.Location = new System.Drawing.Point(12, 12);
     this.TabControlSettings.Name = "TabControlSettings";
     this.TabControlSettings.SelectedIndex = 0;
     this.TabControlSettings.Size = new System.Drawing.Size(336, 339);
     this.TabControlSettings.TabIndex = 8;
     //
     // TabPageActivity
     //
     this.TabPageActivity.Controls.Add(this.ToolStripContainerActivity);
     this.TabPageActivity.Controls.Add(this.LabelActivity);
     this.TabPageActivity.Controls.Add(this.PictureBoxActivity);
     this.TabPageActivity.Location = new System.Drawing.Point(4, 22);
     this.TabPageActivity.Name = "TabPageActivity";
     this.TabPageActivity.Padding = new System.Windows.Forms.Padding(3);
     this.TabPageActivity.Size = new System.Drawing.Size(328, 313);
     this.TabPageActivity.TabIndex = 0;
     this.TabPageActivity.Text = "Activity List";
     this.TabPageActivity.UseVisualStyleBackColor = true;
     //
     // ToolStripContainerActivity
     //
     this.ToolStripContainerActivity.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     //
     // ToolStripContainerActivity.BottomToolStripPanel
     //
     this.ToolStripContainerActivity.BottomToolStripPanel.Controls.Add(this.ToolStripActivity);
     this.ToolStripContainerActivity.BottomToolStripPanel.Tag = "B";
     //
     // ToolStripContainerActivity.ContentPanel
     //
     this.ToolStripContainerActivity.ContentPanel.Controls.Add(this.ListViewActivity);
     this.ToolStripContainerActivity.ContentPanel.Size = new System.Drawing.Size(304, 182);
     //
     // ToolStripContainerActivity.LeftToolStripPanel
     //
     this.ToolStripContainerActivity.LeftToolStripPanel.Tag = "L";
     this.ToolStripContainerActivity.Location = new System.Drawing.Point(11, 67);
     this.ToolStripContainerActivity.Name = "ToolStripContainerActivity";
     //
     // ToolStripContainerActivity.RightToolStripPanel
     //
     this.ToolStripContainerActivity.RightToolStripPanel.Tag = "R";
     this.ToolStripContainerActivity.Size = new System.Drawing.Size(304, 232);
     this.ToolStripContainerActivity.TabIndex = 12;
     this.ToolStripContainerActivity.Text = "ToolStripContainerActivity";
     //
     // ToolStripContainerActivity.TopToolStripPanel
     //
     this.ToolStripContainerActivity.TopToolStripPanel.Tag = "T";
     //
     // ToolStripActivity
     //
     this.ToolStripActivity.Dock = System.Windows.Forms.DockStyle.None;
     this.ToolStripActivity.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripButtonAdd,
     this.ToolStripButtonEdit,
     this.ToolStripButtonDelete,
     this.toolStripSeparator2,
     this.ToolStripButtonUp,
     this.ToolStripButtonDown});
     this.ToolStripActivity.Location = new System.Drawing.Point(3, 0);
     this.ToolStripActivity.Name = "ToolStripActivity";
     this.ToolStripActivity.Size = new System.Drawing.Size(133, 25);
     this.ToolStripActivity.TabIndex = 0;
     //
     // ToolStripButtonAdd
     //
     this.ToolStripButtonAdd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.ToolStripButtonAdd.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButtonAdd.Image")));
     this.ToolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ToolStripButtonAdd.Name = "ToolStripButtonAdd";
     this.ToolStripButtonAdd.Size = new System.Drawing.Size(23, 22);
     this.ToolStripButtonAdd.Text = "Add Activity.";
     this.ToolStripButtonAdd.Click += new System.EventHandler(this.ToolStripButtonAdd_Click);
     //
     // ToolStripButtonEdit
     //
     this.ToolStripButtonEdit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.ToolStripButtonEdit.Enabled = false;
     this.ToolStripButtonEdit.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButtonEdit.Image")));
     this.ToolStripButtonEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ToolStripButtonEdit.Name = "ToolStripButtonEdit";
     this.ToolStripButtonEdit.Size = new System.Drawing.Size(23, 22);
     this.ToolStripButtonEdit.Text = "Edit Activity.";
     this.ToolStripButtonEdit.Click += new System.EventHandler(this.ToolStripButtonEdit_Click);
     //
     // ToolStripButtonDelete
     //
     this.ToolStripButtonDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.ToolStripButtonDelete.Enabled = false;
     this.ToolStripButtonDelete.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButtonDelete.Image")));
     this.ToolStripButtonDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ToolStripButtonDelete.Name = "ToolStripButtonDelete";
     this.ToolStripButtonDelete.Size = new System.Drawing.Size(23, 22);
     this.ToolStripButtonDelete.Text = "Delete Activity.";
     this.ToolStripButtonDelete.Click += new System.EventHandler(this.ToolStripButtonDelete_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // ToolStripButtonUp
     //
     this.ToolStripButtonUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.ToolStripButtonUp.Enabled = false;
     this.ToolStripButtonUp.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButtonUp.Image")));
     this.ToolStripButtonUp.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ToolStripButtonUp.Name = "ToolStripButtonUp";
     this.ToolStripButtonUp.Size = new System.Drawing.Size(23, 22);
     this.ToolStripButtonUp.Text = "Slide activity up.";
     this.ToolStripButtonUp.Click += new System.EventHandler(this.ToolStripButtonUp_Click);
     //
     // ToolStripButtonDown
     //
     this.ToolStripButtonDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.ToolStripButtonDown.Enabled = false;
     this.ToolStripButtonDown.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButtonDown.Image")));
     this.ToolStripButtonDown.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ToolStripButtonDown.Name = "ToolStripButtonDown";
     this.ToolStripButtonDown.Size = new System.Drawing.Size(23, 22);
     this.ToolStripButtonDown.Text = "Slide activity down.";
     this.ToolStripButtonDown.Click += new System.EventHandler(this.ToolStripButtonDown_Click);
     //
     // ListViewActivity
     //
     this.ListViewActivity.CheckBoxes = true;
     this.ListViewActivity.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1});
     this.ListViewActivity.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ListViewActivity.FullRowSelect = true;
     this.ListViewActivity.GridLines = true;
     this.ListViewActivity.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.ListViewActivity.Location = new System.Drawing.Point(0, 0);
     this.ListViewActivity.MultiSelect = false;
     this.ListViewActivity.Name = "ListViewActivity";
     this.ListViewActivity.Size = new System.Drawing.Size(304, 182);
     this.ListViewActivity.TabIndex = 0;
     this.ListViewActivity.UseCompatibleStateImageBehavior = false;
     this.ListViewActivity.View = System.Windows.Forms.View.Details;
     this.ListViewActivity.SelectedIndexChanged += new System.EventHandler(this.ListViewActivity_SelectedIndexChanged);
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Activity";
     this.columnHeader1.Width = 274;
     //
     // LabelActivity
     //
     this.LabelActivity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelActivity.Location = new System.Drawing.Point(65, 13);
     this.LabelActivity.Name = "LabelActivity";
     this.LabelActivity.Size = new System.Drawing.Size(250, 48);
     this.LabelActivity.TabIndex = 11;
     this.LabelActivity.Text = "List of activites that the reminder will display. Diplayed in order from top to b" +
     "ottom. Unchecked items will be skipped.";
     this.LabelActivity.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PictureBoxActivity
     //
     this.PictureBoxActivity.Image = ((System.Drawing.Image)(resources.GetObject("PictureBoxActivity.Image")));
     this.PictureBoxActivity.Location = new System.Drawing.Point(11, 13);
     this.PictureBoxActivity.Name = "PictureBoxActivity";
     this.PictureBoxActivity.Size = new System.Drawing.Size(48, 48);
     this.PictureBoxActivity.TabIndex = 10;
     this.PictureBoxActivity.TabStop = false;
     //
     // TabPageReminder
     //
     this.TabPageReminder.Controls.Add(this.LabelReminder);
     this.TabPageReminder.Controls.Add(this.PictureBoxReminder);
     this.TabPageReminder.Controls.Add(this.GroupBoxDisplay);
     this.TabPageReminder.Controls.Add(this.GroupBoxSplash);
     this.TabPageReminder.Location = new System.Drawing.Point(4, 22);
     this.TabPageReminder.Name = "TabPageReminder";
     this.TabPageReminder.Padding = new System.Windows.Forms.Padding(3);
     this.TabPageReminder.Size = new System.Drawing.Size(328, 313);
     this.TabPageReminder.TabIndex = 1;
     this.TabPageReminder.Text = "Reminder Settings";
     this.TabPageReminder.UseVisualStyleBackColor = true;
     //
     // LabelReminder
     //
     this.LabelReminder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelReminder.Location = new System.Drawing.Point(65, 13);
     this.LabelReminder.Name = "LabelReminder";
     this.LabelReminder.Size = new System.Drawing.Size(250, 48);
     this.LabelReminder.TabIndex = 17;
     this.LabelReminder.Text = "The reminder can be displayed in a balloon tip or as a Splash screen. Select the " +
     "Splash option to tweak the font and the background.";
     this.LabelReminder.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PictureBoxReminder
     //
     this.PictureBoxReminder.Image = ((System.Drawing.Image)(resources.GetObject("PictureBoxReminder.Image")));
     this.PictureBoxReminder.Location = new System.Drawing.Point(11, 13);
     this.PictureBoxReminder.Name = "PictureBoxReminder";
     this.PictureBoxReminder.Size = new System.Drawing.Size(48, 48);
     this.PictureBoxReminder.TabIndex = 16;
     this.PictureBoxReminder.TabStop = false;
     //
     // GroupBoxDisplay
     //
     this.GroupBoxDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBoxDisplay.Controls.Add(this.RadioButtonBalloon);
     this.GroupBoxDisplay.Controls.Add(this.RadioButtonSplash);
     this.GroupBoxDisplay.Location = new System.Drawing.Point(11, 69);
     this.GroupBoxDisplay.Name = "GroupBoxDisplay";
     this.GroupBoxDisplay.Size = new System.Drawing.Size(304, 84);
     this.GroupBoxDisplay.TabIndex = 14;
     this.GroupBoxDisplay.TabStop = false;
     this.GroupBoxDisplay.Text = "Reminder Type";
     //
     // RadioButtonBalloon
     //
     this.RadioButtonBalloon.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.HelpProviderSettings.SetHelpString(this.RadioButtonBalloon, "Shows a balloon tip from the tray icon. Warning, delays may occur due to Windows." +
     " Might even not show at all.");
     this.RadioButtonBalloon.Location = new System.Drawing.Point(21, 51);
     this.RadioButtonBalloon.Name = "RadioButtonBalloon";
     this.HelpProviderSettings.SetShowHelp(this.RadioButtonBalloon, true);
     this.RadioButtonBalloon.Size = new System.Drawing.Size(255, 17);
     this.RadioButtonBalloon.TabIndex = 0;
     this.RadioButtonBalloon.Text = "Balloon Tip (Notification from Tray Icon)";
     this.RadioButtonBalloon.UseVisualStyleBackColor = true;
     this.RadioButtonBalloon.CheckedChanged += new System.EventHandler(this.RadioButtonBalloon_CheckedChanged);
     //
     // RadioButtonSplash
     //
     this.RadioButtonSplash.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.RadioButtonSplash.Checked = true;
     this.HelpProviderSettings.SetHelpString(this.RadioButtonSplash, "Shows a full screen window on all screens containing the activity name.");
     this.RadioButtonSplash.Location = new System.Drawing.Point(21, 27);
     this.RadioButtonSplash.Name = "RadioButtonSplash";
     this.HelpProviderSettings.SetShowHelp(this.RadioButtonSplash, true);
     this.RadioButtonSplash.Size = new System.Drawing.Size(255, 17);
     this.RadioButtonSplash.TabIndex = 1;
     this.RadioButtonSplash.TabStop = true;
     this.RadioButtonSplash.Text = "Splash screen (Full screen)";
     this.RadioButtonSplash.UseVisualStyleBackColor = true;
     this.RadioButtonSplash.CheckedChanged += new System.EventHandler(this.RadioButtonSplash_CheckedChanged);
     //
     // GroupBoxSplash
     //
     this.GroupBoxSplash.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBoxSplash.Controls.Add(this.LabelSound);
     this.GroupBoxSplash.Controls.Add(this.ButtonBrowseSound);
     this.GroupBoxSplash.Controls.Add(this.CheckBoxSound);
     this.GroupBoxSplash.Controls.Add(this.ButtonSplashBackColor);
     this.GroupBoxSplash.Controls.Add(this.ButtonSplashFont);
     this.GroupBoxSplash.Controls.Add(this.LabelSplashExample);
     this.GroupBoxSplash.Location = new System.Drawing.Point(11, 161);
     this.GroupBoxSplash.Name = "GroupBoxSplash";
     this.GroupBoxSplash.Size = new System.Drawing.Size(304, 129);
     this.GroupBoxSplash.TabIndex = 16;
     this.GroupBoxSplash.TabStop = false;
     this.GroupBoxSplash.Text = "Splash screen options";
     //
     // LabelSound
     //
     this.HelpProviderSettings.SetHelpString(this.LabelSound, "Sound file name that will be played when the activity is shown. Click here to hea" +
     "r an example.");
     this.LabelSound.Location = new System.Drawing.Point(102, 96);
     this.LabelSound.Name = "LabelSound";
     this.HelpProviderSettings.SetShowHelp(this.LabelSound, true);
     this.LabelSound.Size = new System.Drawing.Size(83, 17);
     this.LabelSound.TabIndex = 13;
     this.LabelSound.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.LabelSound.Click += new System.EventHandler(this.LabelSound_Click);
     //
     // ButtonBrowseSound
     //
     this.ButtonBrowseSound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.ButtonBrowseSound.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.ButtonBrowseSound.Enabled = false;
     this.ButtonBrowseSound.Location = new System.Drawing.Point(192, 92);
     this.ButtonBrowseSound.Name = "ButtonBrowseSound";
     this.ButtonBrowseSound.Size = new System.Drawing.Size(90, 23);
     this.ButtonBrowseSound.TabIndex = 12;
     this.ButtonBrowseSound.Text = "Bro&wse";
     this.ButtonBrowseSound.UseVisualStyleBackColor = true;
     this.ButtonBrowseSound.Click += new System.EventHandler(this.ButtonBrowseSound_Click);
     //
     // CheckBoxSound
     //
     this.HelpProviderSettings.SetHelpString(this.CheckBoxSound, "Enable the playback of a sound when the activity is shown.");
     this.CheckBoxSound.Location = new System.Drawing.Point(21, 97);
     this.CheckBoxSound.Name = "CheckBoxSound";
     this.HelpProviderSettings.SetShowHelp(this.CheckBoxSound, true);
     this.CheckBoxSound.Size = new System.Drawing.Size(82, 17);
     this.CheckBoxSound.TabIndex = 11;
     this.CheckBoxSound.Text = "Play sound";
     this.CheckBoxSound.UseVisualStyleBackColor = true;
     this.CheckBoxSound.CheckedChanged += new System.EventHandler(this.CheckBoxSound_CheckedChanged);
     //
     // ButtonSplashBackColor
     //
     this.ButtonSplashBackColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.ButtonSplashBackColor.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.ButtonSplashBackColor.Location = new System.Drawing.Point(192, 61);
     this.ButtonSplashBackColor.Name = "ButtonSplashBackColor";
     this.ButtonSplashBackColor.Size = new System.Drawing.Size(90, 23);
     this.ButtonSplashBackColor.TabIndex = 10;
     this.ButtonSplashBackColor.Text = "Back &color";
     this.ButtonSplashBackColor.UseVisualStyleBackColor = true;
     this.ButtonSplashBackColor.Click += new System.EventHandler(this.ButtonSplashBackColor_Click);
     //
     // ButtonSplashFont
     //
     this.ButtonSplashFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.ButtonSplashFont.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.ButtonSplashFont.Location = new System.Drawing.Point(192, 32);
     this.ButtonSplashFont.Name = "ButtonSplashFont";
     this.ButtonSplashFont.Size = new System.Drawing.Size(90, 23);
     this.ButtonSplashFont.TabIndex = 9;
     this.ButtonSplashFont.Text = "&Font";
     this.ButtonSplashFont.UseVisualStyleBackColor = true;
     this.ButtonSplashFont.Click += new System.EventHandler(this.ButtonSplashFont_Click);
     //
     // LabelSplashExample
     //
     this.LabelSplashExample.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelSplashExample.BackColor = System.Drawing.Color.Orange;
     this.LabelSplashExample.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.LabelSplashExample.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.HelpProviderSettings.SetHelpString(this.LabelSplashExample, "Example of the selected visual style. Click here to see a full screen example.");
     this.LabelSplashExample.Location = new System.Drawing.Point(21, 32);
     this.LabelSplashExample.Name = "LabelSplashExample";
     this.HelpProviderSettings.SetShowHelp(this.LabelSplashExample, true);
     this.LabelSplashExample.Size = new System.Drawing.Size(153, 52);
     this.LabelSplashExample.TabIndex = 0;
     this.LabelSplashExample.Text = "Example";
     this.LabelSplashExample.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.LabelSplashExample.Click += new System.EventHandler(this.LabelSplashExample_Click);
     //
     // TabPageDefaults
     //
     this.TabPageDefaults.Controls.Add(this.GroupBoxDefaults);
     this.TabPageDefaults.Controls.Add(this.LabelDefaults);
     this.TabPageDefaults.Controls.Add(this.PictureBoxDefaults);
     this.TabPageDefaults.Location = new System.Drawing.Point(4, 22);
     this.TabPageDefaults.Name = "TabPageDefaults";
     this.TabPageDefaults.Padding = new System.Windows.Forms.Padding(3);
     this.TabPageDefaults.Size = new System.Drawing.Size(328, 313);
     this.TabPageDefaults.TabIndex = 2;
     this.TabPageDefaults.Text = "Default Timers";
     this.TabPageDefaults.UseVisualStyleBackColor = true;
     //
     // GroupBoxDefaults
     //
     this.GroupBoxDefaults.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBoxDefaults.Controls.Add(this.NumericReminderPost);
     this.GroupBoxDefaults.Controls.Add(this.label2);
     this.GroupBoxDefaults.Controls.Add(this.label3);
     this.GroupBoxDefaults.Controls.Add(this.NumericReminderPre);
     this.GroupBoxDefaults.Controls.Add(this.LabelReminderDuration);
     this.GroupBoxDefaults.Controls.Add(this.LabelReminderInterval);
     this.GroupBoxDefaults.Controls.Add(this.LabelReminderDurationSeconds);
     this.GroupBoxDefaults.Controls.Add(this.NumericReminderDuration);
     this.GroupBoxDefaults.Controls.Add(this.LabelReminderIntervalMinutes);
     this.GroupBoxDefaults.Location = new System.Drawing.Point(11, 69);
     this.GroupBoxDefaults.Name = "GroupBoxDefaults";
     this.GroupBoxDefaults.Size = new System.Drawing.Size(304, 117);
     this.GroupBoxDefaults.TabIndex = 16;
     this.GroupBoxDefaults.TabStop = false;
     this.GroupBoxDefaults.Text = "Default Reminder Timers";
     //
     // NumericReminderPost
     //
     this.NumericReminderPost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.NumericReminderPost.Location = new System.Drawing.Point(117, 84);
     this.NumericReminderPost.Maximum = new decimal(new int[] {
     600,
     0,
     0,
     0});
     this.NumericReminderPost.Name = "NumericReminderPost";
     this.NumericReminderPost.Size = new System.Drawing.Size(99, 21);
     this.NumericReminderPost.TabIndex = 33;
     this.NumericReminderPost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.NumericReminderPost.Value = new decimal(new int[] {
     5,
     0,
     0,
     0});
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 86);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(89, 13);
     this.label2.TabIndex = 32;
     this.label2.Text = "Post-Delay :";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location = new System.Drawing.Point(230, 86);
     this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(57, 13);
     this.label3.TabIndex = 34;
     this.label3.Text = "minutes";
     //
     // NumericReminderPre
     //
     this.NumericReminderPre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.NumericReminderPre.Location = new System.Drawing.Point(117, 23);
     this.NumericReminderPre.Maximum = new decimal(new int[] {
     600,
     0,
     0,
     0});
     this.NumericReminderPre.Minimum = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.NumericReminderPre.Name = "NumericReminderPre";
     this.NumericReminderPre.Size = new System.Drawing.Size(99, 21);
     this.NumericReminderPre.TabIndex = 27;
     this.NumericReminderPre.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.NumericReminderPre.Value = new decimal(new int[] {
     10,
     0,
     0,
     0});
     //
     // LabelReminderDuration
     //
     this.LabelReminderDuration.Location = new System.Drawing.Point(16, 56);
     this.LabelReminderDuration.Name = "LabelReminderDuration";
     this.LabelReminderDuration.Size = new System.Drawing.Size(89, 13);
     this.LabelReminderDuration.TabIndex = 29;
     this.LabelReminderDuration.Text = "Duration :";
     this.LabelReminderDuration.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // LabelReminderInterval
     //
     this.LabelReminderInterval.Location = new System.Drawing.Point(16, 25);
     this.LabelReminderInterval.Name = "LabelReminderInterval";
     this.LabelReminderInterval.Size = new System.Drawing.Size(89, 13);
     this.LabelReminderInterval.TabIndex = 26;
     this.LabelReminderInterval.Text = "Pre-Delay :";
     this.LabelReminderInterval.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // LabelReminderDurationSeconds
     //
     this.LabelReminderDurationSeconds.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelReminderDurationSeconds.Location = new System.Drawing.Point(230, 56);
     this.LabelReminderDurationSeconds.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.LabelReminderDurationSeconds.Name = "LabelReminderDurationSeconds";
     this.LabelReminderDurationSeconds.Size = new System.Drawing.Size(58, 13);
     this.LabelReminderDurationSeconds.TabIndex = 31;
     this.LabelReminderDurationSeconds.Text = "seconds";
     //
     // NumericReminderDuration
     //
     this.NumericReminderDuration.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.NumericReminderDuration.Increment = new decimal(new int[] {
     10,
     0,
     0,
     0});
     this.NumericReminderDuration.Location = new System.Drawing.Point(117, 54);
     this.NumericReminderDuration.Maximum = new decimal(new int[] {
     3600,
     0,
     0,
     0});
     this.NumericReminderDuration.Minimum = new decimal(new int[] {
     5,
     0,
     0,
     0});
     this.NumericReminderDuration.Name = "NumericReminderDuration";
     this.NumericReminderDuration.Size = new System.Drawing.Size(99, 21);
     this.NumericReminderDuration.TabIndex = 30;
     this.NumericReminderDuration.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.NumericReminderDuration.Value = new decimal(new int[] {
     30,
     0,
     0,
     0});
     //
     // LabelReminderIntervalMinutes
     //
     this.LabelReminderIntervalMinutes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelReminderIntervalMinutes.Location = new System.Drawing.Point(230, 25);
     this.LabelReminderIntervalMinutes.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.LabelReminderIntervalMinutes.Name = "LabelReminderIntervalMinutes";
     this.LabelReminderIntervalMinutes.Size = new System.Drawing.Size(57, 13);
     this.LabelReminderIntervalMinutes.TabIndex = 28;
     this.LabelReminderIntervalMinutes.Text = "minutes";
     //
     // LabelDefaults
     //
     this.LabelDefaults.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelDefaults.Location = new System.Drawing.Point(65, 13);
     this.LabelDefaults.Name = "LabelDefaults";
     this.LabelDefaults.Size = new System.Drawing.Size(250, 48);
     this.LabelDefaults.TabIndex = 15;
     this.LabelDefaults.Text = "When creating a new activity in the activity list, these settings will be use as " +
     "defaults.";
     this.LabelDefaults.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PictureBoxDefaults
     //
     this.PictureBoxDefaults.Image = ((System.Drawing.Image)(resources.GetObject("PictureBoxDefaults.Image")));
     this.PictureBoxDefaults.Location = new System.Drawing.Point(11, 13);
     this.PictureBoxDefaults.Name = "PictureBoxDefaults";
     this.PictureBoxDefaults.Size = new System.Drawing.Size(48, 48);
     this.PictureBoxDefaults.TabIndex = 14;
     this.PictureBoxDefaults.TabStop = false;
     //
     // TabPageSystemSettings
     //
     this.TabPageSystemSettings.Controls.Add(this.GroupBoxApplicationSettings);
     this.TabPageSystemSettings.Controls.Add(this.GroupBoxSystemSettings);
     this.TabPageSystemSettings.Controls.Add(this.LabelSystem);
     this.TabPageSystemSettings.Controls.Add(this.PictureBoxSystem);
     this.TabPageSystemSettings.Location = new System.Drawing.Point(4, 22);
     this.TabPageSystemSettings.Name = "TabPageSystemSettings";
     this.TabPageSystemSettings.Padding = new System.Windows.Forms.Padding(3);
     this.TabPageSystemSettings.Size = new System.Drawing.Size(328, 313);
     this.TabPageSystemSettings.TabIndex = 3;
     this.TabPageSystemSettings.Text = "System";
     this.TabPageSystemSettings.UseVisualStyleBackColor = true;
     //
     // GroupBoxApplicationSettings
     //
     this.GroupBoxApplicationSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBoxApplicationSettings.Controls.Add(this.ButtonResetSettings);
     this.GroupBoxApplicationSettings.Location = new System.Drawing.Point(11, 180);
     this.GroupBoxApplicationSettings.Name = "GroupBoxApplicationSettings";
     this.GroupBoxApplicationSettings.Size = new System.Drawing.Size(304, 60);
     this.GroupBoxApplicationSettings.TabIndex = 20;
     this.GroupBoxApplicationSettings.TabStop = false;
     this.GroupBoxApplicationSettings.Text = "Application settings";
     //
     // ButtonResetSettings
     //
     this.ButtonResetSettings.Location = new System.Drawing.Point(55, 25);
     this.ButtonResetSettings.Name = "ButtonResetSettings";
     this.ButtonResetSettings.Size = new System.Drawing.Size(194, 23);
     this.ButtonResetSettings.TabIndex = 19;
     this.ButtonResetSettings.Text = "Re&set all settings to defaults";
     this.ButtonResetSettings.UseVisualStyleBackColor = true;
     this.ButtonResetSettings.Click += new System.EventHandler(this.ButtonResetSettings_Click);
     //
     // GroupBoxSystemSettings
     //
     this.GroupBoxSystemSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBoxSystemSettings.Controls.Add(this.CheckBoxWindowsStartMinimize);
     this.GroupBoxSystemSettings.Controls.Add(this.CheckBoxWindowsStart);
     this.GroupBoxSystemSettings.Location = new System.Drawing.Point(11, 69);
     this.GroupBoxSystemSettings.Name = "GroupBoxSystemSettings";
     this.GroupBoxSystemSettings.Size = new System.Drawing.Size(304, 83);
     this.GroupBoxSystemSettings.TabIndex = 19;
     this.GroupBoxSystemSettings.TabStop = false;
     this.GroupBoxSystemSettings.Text = "System settings";
     //
     // CheckBoxWindowsStartMinimize
     //
     this.CheckBoxWindowsStartMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.CheckBoxWindowsStartMinimize.Enabled = false;
     this.CheckBoxWindowsStartMinimize.Location = new System.Drawing.Point(32, 46);
     this.CheckBoxWindowsStartMinimize.Name = "CheckBoxWindowsStartMinimize";
     this.CheckBoxWindowsStartMinimize.Size = new System.Drawing.Size(255, 17);
     this.CheckBoxWindowsStartMinimize.TabIndex = 19;
     this.CheckBoxWindowsStartMinimize.Text = "Automatically run activities (minimized to tray).";
     this.CheckBoxWindowsStartMinimize.UseVisualStyleBackColor = true;
     //
     // CheckBoxWindowsStart
     //
     this.CheckBoxWindowsStart.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.CheckBoxWindowsStart.Location = new System.Drawing.Point(16, 23);
     this.CheckBoxWindowsStart.Name = "CheckBoxWindowsStart";
     this.CheckBoxWindowsStart.Size = new System.Drawing.Size(271, 17);
     this.CheckBoxWindowsStart.TabIndex = 18;
     this.CheckBoxWindowsStart.Text = "Automatically start during Windows logon.";
     this.CheckBoxWindowsStart.UseVisualStyleBackColor = true;
     this.CheckBoxWindowsStart.CheckedChanged += new System.EventHandler(this.CheckBoxWindowsStart_CheckedChanged);
     //
     // LabelSystem
     //
     this.LabelSystem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.LabelSystem.Location = new System.Drawing.Point(65, 13);
     this.LabelSystem.Name = "LabelSystem";
     this.LabelSystem.Size = new System.Drawing.Size(250, 48);
     this.LabelSystem.TabIndex = 17;
     this.LabelSystem.Text = "Fitness Reminder can be set to start automatically when you logon.";
     this.LabelSystem.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PictureBoxSystem
     //
     this.PictureBoxSystem.Image = ((System.Drawing.Image)(resources.GetObject("PictureBoxSystem.Image")));
     this.PictureBoxSystem.Location = new System.Drawing.Point(11, 13);
     this.PictureBoxSystem.Name = "PictureBoxSystem";
     this.PictureBoxSystem.Size = new System.Drawing.Size(48, 48);
     this.PictureBoxSystem.TabIndex = 16;
     this.PictureBoxSystem.TabStop = false;
     //
     // FitnessTimer
     //
     this.FitnessTimer.Enabled = true;
     this.FitnessTimer.Interval = 1000;
     this.FitnessTimer.Tick += new System.EventHandler(this.FitnessTimer_Tick);
     //
     // FitnessNotifyIcon
     //
     this.FitnessNotifyIcon.ContextMenuStrip = this.ContextMenuStripNotify;
     this.FitnessNotifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("FitnessNotifyIcon.Icon")));
     this.FitnessNotifyIcon.Text = "Fitness Reminder";
     this.FitnessNotifyIcon.Visible = true;
     this.FitnessNotifyIcon.DoubleClick += new System.EventHandler(this.FitnessNotifyIcon_DoubleClick);
     //
     // ContextMenuStripNotify
     //
     this.ContextMenuStripNotify.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.openSettingsToolStripMenuItem,
     this.toolStripSeparator3,
     this.pauseToolStripMenuItem,
     this.resumeToolStripMenuItem,
     this.toolStripSeparator1,
     this.exitToolStripMenuItem});
     this.ContextMenuStripNotify.Name = "ContextMenuStripNotify";
     this.ContextMenuStripNotify.Size = new System.Drawing.Size(117, 104);
     //
     // openSettingsToolStripMenuItem
     //
     this.openSettingsToolStripMenuItem.Name = "openSettingsToolStripMenuItem";
     this.openSettingsToolStripMenuItem.Size = new System.Drawing.Size(116, 22);
     this.openSettingsToolStripMenuItem.Text = "Open";
     this.openSettingsToolStripMenuItem.Click += new System.EventHandler(this.openSettingsToolStripMenuItem_Click);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(113, 6);
     //
     // pauseToolStripMenuItem
     //
     this.pauseToolStripMenuItem.Enabled = false;
     this.pauseToolStripMenuItem.Name = "pauseToolStripMenuItem";
     this.pauseToolStripMenuItem.Size = new System.Drawing.Size(116, 22);
     this.pauseToolStripMenuItem.Text = "Pause";
     this.pauseToolStripMenuItem.Click += new System.EventHandler(this.pauseToolStripMenuItem_Click);
     //
     // resumeToolStripMenuItem
     //
     this.resumeToolStripMenuItem.Name = "resumeToolStripMenuItem";
     this.resumeToolStripMenuItem.Size = new System.Drawing.Size(116, 22);
     this.resumeToolStripMenuItem.Text = "Resume";
     this.resumeToolStripMenuItem.Visible = false;
     this.resumeToolStripMenuItem.Click += new System.EventHandler(this.resumeToolStripMenuItem_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(113, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(116, 22);
     this.exitToolStripMenuItem.Text = "Exit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // ImageListActivity
     //
     this.ImageListActivity.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageListActivity.ImageStream")));
     this.ImageListActivity.TransparentColor = System.Drawing.Color.Transparent;
     this.ImageListActivity.Images.SetKeyName(0, "Disaster.png");
     //
     // FontDialogSplash
     //
     this.FontDialogSplash.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     //
     // FormSettings
     //
     this.AcceptButton = this.ButtonOK;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.ButtonCancel;
     this.ClientSize = new System.Drawing.Size(358, 391);
     this.Controls.Add(this.TabControlSettings);
     this.Controls.Add(this.ButtonCancel);
     this.Controls.Add(this.ButtonOK);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.HelpButton = true;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FormSettings";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Fitness Reminder";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormSettings_FormClosing);
     this.Load += new System.EventHandler(this.FormSettings_Load);
     this.Shown += new System.EventHandler(this.FormSettings_Shown);
     this.TabControlSettings.ResumeLayout(false);
     this.TabPageActivity.ResumeLayout(false);
     this.ToolStripContainerActivity.BottomToolStripPanel.ResumeLayout(false);
     this.ToolStripContainerActivity.BottomToolStripPanel.PerformLayout();
     this.ToolStripContainerActivity.ContentPanel.ResumeLayout(false);
     this.ToolStripContainerActivity.ResumeLayout(false);
     this.ToolStripContainerActivity.PerformLayout();
     this.ToolStripActivity.ResumeLayout(false);
     this.ToolStripActivity.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxActivity)).EndInit();
     this.TabPageReminder.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxReminder)).EndInit();
     this.GroupBoxDisplay.ResumeLayout(false);
     this.GroupBoxSplash.ResumeLayout(false);
     this.TabPageDefaults.ResumeLayout(false);
     this.GroupBoxDefaults.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderPost)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderPre)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NumericReminderDuration)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxDefaults)).EndInit();
     this.TabPageSystemSettings.ResumeLayout(false);
     this.GroupBoxApplicationSettings.ResumeLayout(false);
     this.GroupBoxSystemSettings.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.PictureBoxSystem)).EndInit();
     this.ContextMenuStripNotify.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用主键编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.colorDialogMsg = new System.Windows.Forms.ColorDialog();
     this.fontDialogMsg = new System.Windows.Forms.FontDialog();
     this.grbMessage = new System.Windows.Forms.GroupBox();
     this.lblContentReq = new System.Windows.Forms.Label();
     this.txtContents = new System.Windows.Forms.TextBox();
     this.lblContents = new System.Windows.Forms.Label();
     this.btnSend = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.grbMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // grbMessage
     //
     this.grbMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.grbMessage.Controls.Add(this.lblContentReq);
     this.grbMessage.Controls.Add(this.txtContents);
     this.grbMessage.Controls.Add(this.lblContents);
     this.grbMessage.Location = new System.Drawing.Point(13, 13);
     this.grbMessage.Name = "grbMessage";
     this.grbMessage.Size = new System.Drawing.Size(565, 224);
     this.grbMessage.TabIndex = 0;
     this.grbMessage.TabStop = false;
     this.grbMessage.Text = "消息";
     //
     // lblContentReq
     //
     this.lblContentReq.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblContentReq.AutoSize = true;
     this.lblContentReq.ForeColor = System.Drawing.Color.Red;
     this.lblContentReq.Location = new System.Drawing.Point(547, 22);
     this.lblContentReq.Name = "lblContentReq";
     this.lblContentReq.Size = new System.Drawing.Size(11, 12);
     this.lblContentReq.TabIndex = 17;
     this.lblContentReq.Text = "*";
     //
     // txtContents
     //
     this.txtContents.AllowDrop = true;
     this.txtContents.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtContents.Location = new System.Drawing.Point(99, 20);
     this.txtContents.MaxLength = 800;
     this.txtContents.Multiline = true;
     this.txtContents.Name = "txtContents";
     this.txtContents.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.txtContents.Size = new System.Drawing.Size(445, 193);
     this.txtContents.TabIndex = 14;
     this.txtContents.TextChanged += new System.EventHandler(this.txtContent_TextChanged);
     //
     // lblContents
     //
     this.lblContents.Location = new System.Drawing.Point(3, 23);
     this.lblContents.Name = "lblContents";
     this.lblContents.Size = new System.Drawing.Size(90, 12);
     this.lblContents.TabIndex = 13;
     this.lblContents.Text = "内容(&C):";
     this.lblContents.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // btnSend
     //
     this.btnSend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSend.Enabled = false;
     this.btnSend.Location = new System.Drawing.Point(422, 247);
     this.btnSend.Name = "btnSend";
     this.btnSend.Size = new System.Drawing.Size(75, 23);
     this.btnSend.TabIndex = 17;
     this.btnSend.Text = "发送(&S)";
     this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(503, 247);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 18;
     this.btnCancel.Text = "取消";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // FrmMessageBroadcast
     //
     this.AllowDrop = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(590, 282);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.grbMessage);
     this.Cursor = System.Windows.Forms.Cursors.Default;
     this.Name = "FrmMessageBroadcast";
     this.Text = "广播消息";
     this.grbMessage.ResumeLayout(false);
     this.grbMessage.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.transparencyLabel_ = new System.Windows.Forms.Label();
       this.fontLabel_ = new System.Windows.Forms.Label();
       this.backgroundColorLabel_ = new System.Windows.Forms.Label();
       this.borderColorLabel_ = new System.Windows.Forms.Label();
       this.opaqueLabel_ = new System.Windows.Forms.Label();
       this.invisibleLabel_ = new System.Windows.Forms.Label();
       this.fontButton_ = new System.Windows.Forms.Button();
       this.backgroundColorButton_ = new System.Windows.Forms.Button();
       this.borderColorButton_ = new System.Windows.Forms.Button();
       this.transparencyBar_ = new System.Windows.Forms.TrackBar();
       this.fontPreviewLabel_ = new System.Windows.Forms.Label();
       this.backgroundColorPreviewPanel_ = new System.Windows.Forms.Panel();
       this.borderColorPreviewPanel_ = new System.Windows.Forms.Panel();
       this.colorDialog_ = new System.Windows.Forms.ColorDialog();
       this.fontDialog_ = new System.Windows.Forms.FontDialog();
       this.alwaysOnTopCheckBox_ = new System.Windows.Forms.CheckBox();
       ((System.ComponentModel.ISupportInitialize) (this.transparencyBar_)).BeginInit();
       this.SuspendLayout();
       //
       // transparencyLabel_
       //
       this.transparencyLabel_.AutoSize = true;
       this.transparencyLabel_.Location = new System.Drawing.Point(0, 116);
       this.transparencyLabel_.Name = "transparencyLabel_";
       this.transparencyLabel_.Size = new System.Drawing.Size(72, 13);
       this.transparencyLabel_.TabIndex = 23;
       this.transparencyLabel_.Text = "Transparency";
       //
       // fontLabel_
       //
       this.fontLabel_.AutoSize = true;
       this.fontLabel_.Location = new System.Drawing.Point(29, 60);
       this.fontLabel_.Name = "fontLabel_";
       this.fontLabel_.Size = new System.Drawing.Size(28, 13);
       this.fontLabel_.TabIndex = 19;
       this.fontLabel_.Text = "Font";
       //
       // backgroundColorLabel_
       //
       this.backgroundColorLabel_.AutoSize = true;
       this.backgroundColorLabel_.Location = new System.Drawing.Point(29, 34);
       this.backgroundColorLabel_.Name = "backgroundColorLabel_";
       this.backgroundColorLabel_.Size = new System.Drawing.Size(92, 13);
       this.backgroundColorLabel_.TabIndex = 16;
       this.backgroundColorLabel_.Text = "Background Color";
       //
       // borderColorLabel_
       //
       this.borderColorLabel_.AutoSize = true;
       this.borderColorLabel_.Location = new System.Drawing.Point(29, 8);
       this.borderColorLabel_.Name = "borderColorLabel_";
       this.borderColorLabel_.Size = new System.Drawing.Size(65, 13);
       this.borderColorLabel_.TabIndex = 14;
       this.borderColorLabel_.Text = "Border Color";
       //
       // opaqueLabel_
       //
       this.opaqueLabel_.AutoSize = true;
       this.opaqueLabel_.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
       this.opaqueLabel_.Location = new System.Drawing.Point(0, 155);
       this.opaqueLabel_.Name = "opaqueLabel_";
       this.opaqueLabel_.Size = new System.Drawing.Size(68, 13);
       this.opaqueLabel_.TabIndex = 25;
       this.opaqueLabel_.Text = "Opaque (0%)";
       //
       // invisibleLabel_
       //
       this.invisibleLabel_.AutoSize = true;
       this.invisibleLabel_.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
       this.invisibleLabel_.Location = new System.Drawing.Point(107, 155);
       this.invisibleLabel_.Name = "invisibleLabel_";
       this.invisibleLabel_.Size = new System.Drawing.Size(80, 13);
       this.invisibleLabel_.TabIndex = 24;
       this.invisibleLabel_.Text = "Invisible (100%)";
       //
       // fontButton_
       //
       this.fontButton_.Location = new System.Drawing.Point(127, 55);
       this.fontButton_.Name = "fontButton_";
       this.fontButton_.Size = new System.Drawing.Size(63, 23);
       this.fontButton_.TabIndex = 20;
       this.fontButton_.Text = "Change";
       this.fontButton_.UseVisualStyleBackColor = true;
       this.fontButton_.Click += new System.EventHandler(this.fontButton__Click);
       //
       // backgroundColorButton_
       //
       this.backgroundColorButton_.Location = new System.Drawing.Point(127, 29);
       this.backgroundColorButton_.Name = "backgroundColorButton_";
       this.backgroundColorButton_.Size = new System.Drawing.Size(63, 23);
       this.backgroundColorButton_.TabIndex = 18;
       this.backgroundColorButton_.Text = "Change";
       this.backgroundColorButton_.UseVisualStyleBackColor = true;
       this.backgroundColorButton_.Click += new System.EventHandler(this.backgroundColorButton__Click);
       //
       // borderColorButton_
       //
       this.borderColorButton_.Location = new System.Drawing.Point(127, 3);
       this.borderColorButton_.Name = "borderColorButton_";
       this.borderColorButton_.Size = new System.Drawing.Size(63, 23);
       this.borderColorButton_.TabIndex = 15;
       this.borderColorButton_.Text = "Change";
       this.borderColorButton_.UseVisualStyleBackColor = true;
       this.borderColorButton_.Click += new System.EventHandler(this.borderColorButton__Click);
       //
       // transparencyBar_
       //
       this.transparencyBar_.Location = new System.Drawing.Point(0, 132);
       this.transparencyBar_.Maximum = 100;
       this.transparencyBar_.Name = "transparencyBar_";
       this.transparencyBar_.Size = new System.Drawing.Size(187, 45);
       this.transparencyBar_.TabIndex = 22;
       this.transparencyBar_.TickFrequency = 10;
       this.transparencyBar_.TickStyle = System.Windows.Forms.TickStyle.None;
       this.transparencyBar_.ValueChanged += new System.EventHandler(this.transparencyBar__ValueChanged);
       //
       // fontPreviewLabel_
       //
       this.fontPreviewLabel_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (192)))));
       this.fontPreviewLabel_.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
       this.fontPreviewLabel_.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) (0)));
       this.fontPreviewLabel_.Location = new System.Drawing.Point(3, 55);
       this.fontPreviewLabel_.Name = "fontPreviewLabel_";
       this.fontPreviewLabel_.Size = new System.Drawing.Size(20, 20);
       this.fontPreviewLabel_.TabIndex = 21;
       this.fontPreviewLabel_.Text = "A";
       this.fontPreviewLabel_.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
       //
       // backgroundColorPreviewPanel_
       //
       this.backgroundColorPreviewPanel_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (192)))));
       this.backgroundColorPreviewPanel_.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
       this.backgroundColorPreviewPanel_.Location = new System.Drawing.Point(3, 29);
       this.backgroundColorPreviewPanel_.Name = "backgroundColorPreviewPanel_";
       this.backgroundColorPreviewPanel_.Size = new System.Drawing.Size(20, 20);
       this.backgroundColorPreviewPanel_.TabIndex = 17;
       //
       // borderColorPreviewPanel_
       //
       this.borderColorPreviewPanel_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (128)))));
       this.borderColorPreviewPanel_.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
       this.borderColorPreviewPanel_.Location = new System.Drawing.Point(3, 3);
       this.borderColorPreviewPanel_.Name = "borderColorPreviewPanel_";
       this.borderColorPreviewPanel_.Size = new System.Drawing.Size(20, 20);
       this.borderColorPreviewPanel_.TabIndex = 13;
       //
       // colorDialog_
       //
       this.colorDialog_.AnyColor = true;
       this.colorDialog_.FullOpen = true;
       //
       // fontDialog_
       //
       this.fontDialog_.FontMustExist = true;
       this.fontDialog_.ShowColor = true;
       //
       // alwaysOnTopCheckBox_
       //
       this.alwaysOnTopCheckBox_.AutoSize = true;
       this.alwaysOnTopCheckBox_.Location = new System.Drawing.Point(3, 90);
       this.alwaysOnTopCheckBox_.Name = "alwaysOnTopCheckBox_";
       this.alwaysOnTopCheckBox_.Size = new System.Drawing.Size(178, 17);
       this.alwaysOnTopCheckBox_.TabIndex = 26;
       this.alwaysOnTopCheckBox_.Text = "Remain on top of other windows";
       this.alwaysOnTopCheckBox_.UseVisualStyleBackColor = true;
       this.alwaysOnTopCheckBox_.CheckedChanged += new System.EventHandler(this.alwaysOnTopCheckBox__CheckedChanged);
       //
       // NotePreferencesControl
       //
       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
       this.BackColor = System.Drawing.Color.Transparent;
       this.Controls.Add(this.alwaysOnTopCheckBox_);
       this.Controls.Add(this.opaqueLabel_);
       this.Controls.Add(this.invisibleLabel_);
       this.Controls.Add(this.transparencyLabel_);
       this.Controls.Add(this.transparencyBar_);
       this.Controls.Add(this.fontPreviewLabel_);
       this.Controls.Add(this.fontButton_);
       this.Controls.Add(this.backgroundColorPreviewPanel_);
       this.Controls.Add(this.fontLabel_);
       this.Controls.Add(this.backgroundColorButton_);
       this.Controls.Add(this.borderColorPreviewPanel_);
       this.Controls.Add(this.backgroundColorLabel_);
       this.Controls.Add(this.borderColorButton_);
       this.Controls.Add(this.borderColorLabel_);
       this.Name = "NotePreferencesControl";
       this.Size = new System.Drawing.Size(192, 176);
       ((System.ComponentModel.ISupportInitialize) (this.transparencyBar_)).EndInit();
       this.ResumeLayout(false);
       this.PerformLayout();
 }
Esempio n. 53
0
 void btnFont_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog dialog = new System.Windows.Forms.FontDialog();
     if (font != null)
     {
         dialog.Font = font;
     }
     if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         font = dialog.Font;
         txtFont.Text = dialog.Font.Name;
         if (isReadOnlyMode)
         {
             RenderMap();
         }
     }
 }
Esempio n. 54
0
 private void button8_Click(object sender, RoutedEventArgs e)
 {
     if (selTB != null)
     {
         selTB.Foreground = ChooseColor();
         using (System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog())
         {
             try
             {
                 fd.AllowScriptChange = false;
                 fd.AllowSimulations = false;
                 if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {
                     FontFamilyConverter ffc = new FontFamilyConverter();
                     selTB.FontSize = fd.Font.Size;
                     selTB.FontFamily = (FontFamily)ffc.ConvertFromString(fd.Font.Name);
                 }
             }
             catch
             {
                 //Not a truetype font
                 MessageBox.Show("Шрифт не изменен");
             }
         }
     }
 }
Esempio n. 55
0
 private void Font_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.FontDialog F = new System.Windows.Forms.FontDialog();
     F.Font = new Font(new System.Drawing.FontFamily(FontFamily.FamilyNames[XmlLanguage.GetLanguage("en-us")]), (float)FontSize,
         (FontStyle == FontStyles.Italic ? System.Drawing.FontStyle.Italic : 0) | (FontWeight == FontWeights.Bold ? System.Drawing.FontStyle.Bold : 0));
     F.ShowDialog();
     UpdateFont(F.Font.Size, F.Font.Italic ? FontStyles.Italic : FontStyles.Normal, F.Font.Bold ? FontWeights.Bold : FontWeights.Normal, new FontFamily(F.Font.FontFamily.Name));
     Unfocus();
 }
Esempio n. 56
0
        private void OnClickFont(System.Object Sender, System.EventArgs e)
        {
            //prntSome.printSome("OnClickFont");
            System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog ();

            fontDialog.FixedPitchOnly = true;
            fontDialog.ShowEffects    = false;
            fontDialog.Font           = this.Font;

            if (fontDialog.ShowDialog () != System.Windows.Forms.DialogResult.Cancel)
            {
                // Change the font
                this.Font = fontDialog.Font;

                this.GetFontInfo ();

                this.ClientSize = new System.Drawing.Size (
                    System.Convert.ToInt32 (this.CharSize.Width  * this.Columns + 2) + this.VertScrollBar.Width,
                    System.Convert.ToInt32 (this.CharSize.Height * this.Rows    + 2));
            };
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用主键编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.btnSend = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.colorDialogMsg = new System.Windows.Forms.ColorDialog();
     this.fontDialogMsg = new System.Windows.Forms.FontDialog();
     this.grbMessage = new System.Windows.Forms.GroupBox();
     this.btnSelectFack = new System.Windows.Forms.Button();
     this.btnMsgFont = new System.Windows.Forms.Button();
     this.btnColor = new System.Windows.Forms.Button();
     this.lblContentReq = new System.Windows.Forms.Label();
     this.ucUser = new DotNet.WinForm.Common.WinControls.UCUserSelect();
     this.lblStaffReq = new System.Windows.Forms.Label();
     this.txtContents = new System.Windows.Forms.TextBox();
     this.lblContents = new System.Windows.Forms.Label();
     this.lblSendTo = new System.Windows.Forms.Label();
     this.grbMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // btnSend
     //
     this.btnSend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSend.Enabled = false;
     this.btnSend.Location = new System.Drawing.Point(445, 250);
     this.btnSend.Name = "btnSend";
     this.btnSend.Size = new System.Drawing.Size(75, 23);
     this.btnSend.TabIndex = 5;
     this.btnSend.Text = "发送(&S)";
     this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(526, 250);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 6;
     this.btnCancel.Text = "取消";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // grbMessage
     //
     this.grbMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.grbMessage.Controls.Add(this.btnSelectFack);
     this.grbMessage.Controls.Add(this.btnMsgFont);
     this.grbMessage.Controls.Add(this.btnColor);
     this.grbMessage.Controls.Add(this.lblContentReq);
     this.grbMessage.Controls.Add(this.ucUser);
     this.grbMessage.Controls.Add(this.lblStaffReq);
     this.grbMessage.Controls.Add(this.txtContents);
     this.grbMessage.Controls.Add(this.lblContents);
     this.grbMessage.Controls.Add(this.lblSendTo);
     this.grbMessage.Location = new System.Drawing.Point(13, 13);
     this.grbMessage.Name = "grbMessage";
     this.grbMessage.Size = new System.Drawing.Size(588, 227);
     this.grbMessage.TabIndex = 7;
     this.grbMessage.TabStop = false;
     this.grbMessage.Text = "信息";
     //
     // btnSelectFack
     //
     this.btnSelectFack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSelectFack.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.btnSelectFack.Image = global::DotNet.WinForm.Message.Properties.Resources.Face_0;
     this.btnSelectFack.Location = new System.Drawing.Point(424, 15);
     this.btnSelectFack.Name = "btnSelectFack";
     this.btnSelectFack.Size = new System.Drawing.Size(34, 34);
     this.btnSelectFack.TabIndex = 22;
     this.btnSelectFack.UseVisualStyleBackColor = true;
     this.btnSelectFack.Visible = false;
     //
     // btnMsgFont
     //
     this.btnMsgFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnMsgFont.Location = new System.Drawing.Point(464, 20);
     this.btnMsgFont.Name = "btnMsgFont";
     this.btnMsgFont.Size = new System.Drawing.Size(48, 23);
     this.btnMsgFont.TabIndex = 21;
     this.btnMsgFont.Text = "字体";
     this.btnMsgFont.UseVisualStyleBackColor = true;
     this.btnMsgFont.Visible = false;
     this.btnMsgFont.Click += new System.EventHandler(this.btnMsgFont_Click);
     //
     // btnColor
     //
     this.btnColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnColor.Location = new System.Drawing.Point(518, 20);
     this.btnColor.Name = "btnColor";
     this.btnColor.Size = new System.Drawing.Size(47, 23);
     this.btnColor.TabIndex = 20;
     this.btnColor.Text = "颜色";
     this.btnColor.UseVisualStyleBackColor = true;
     this.btnColor.Visible = false;
     this.btnColor.Click += new System.EventHandler(this.btnColor_Click);
     //
     // lblContentReq
     //
     this.lblContentReq.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblContentReq.AutoSize = true;
     this.lblContentReq.ForeColor = System.Drawing.Color.Red;
     this.lblContentReq.Location = new System.Drawing.Point(568, 57);
     this.lblContentReq.Name = "lblContentReq";
     this.lblContentReq.Size = new System.Drawing.Size(11, 12);
     this.lblContentReq.TabIndex = 19;
     this.lblContentReq.Text = "*";
     //
     // ucUser
     //
     this.ucUser.AllowNull = true;
     this.ucUser.AllowSelect = true;
     this.ucUser.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.ucUser.Location = new System.Drawing.Point(105, 21);
     this.ucUser.MultiSelect = true;
     this.ucUser.Name = "ucUser";
     this.ucUser.OpenId = "";
     this.ucUser.PermissionItemScopeCode = "";
     this.ucUser.RemoveIds = null;
     this.ucUser.SelectedFullName = "";
     this.ucUser.SelectedId = "";
     this.ucUser.SelectedIds = null;
     this.ucUser.SetSelectIds = null;
     this.ucUser.Size = new System.Drawing.Size(296, 22);
     this.ucUser.TabIndex = 15;
     this.ucUser.SelectedIndexChanged += new BaseBusinessLogic.SelectedIndexChangedEventHandler(this.ucUser_SelectedIndexChanged);
     //
     // lblStaffReq
     //
     this.lblStaffReq.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblStaffReq.AutoSize = true;
     this.lblStaffReq.ForeColor = System.Drawing.Color.Red;
     this.lblStaffReq.Location = new System.Drawing.Point(407, 25);
     this.lblStaffReq.Name = "lblStaffReq";
     this.lblStaffReq.Size = new System.Drawing.Size(11, 12);
     this.lblStaffReq.TabIndex = 16;
     this.lblStaffReq.Text = "*";
     //
     // txtContents
     //
     this.txtContents.AllowDrop = true;
     this.txtContents.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtContents.Location = new System.Drawing.Point(105, 55);
     this.txtContents.MaxLength = 800;
     this.txtContents.Multiline = true;
     this.txtContents.Name = "txtContents";
     this.txtContents.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.txtContents.Size = new System.Drawing.Size(460, 156);
     this.txtContents.TabIndex = 18;
     this.txtContents.TextChanged += new System.EventHandler(this.txtContent_TextChanged);
     //
     // lblContents
     //
     this.lblContents.Location = new System.Drawing.Point(9, 57);
     this.lblContents.Name = "lblContents";
     this.lblContents.Size = new System.Drawing.Size(90, 12);
     this.lblContents.TabIndex = 17;
     this.lblContents.Text = "内容(&C):";
     this.lblContents.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblSendTo
     //
     this.lblSendTo.Location = new System.Drawing.Point(9, 24);
     this.lblSendTo.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.lblSendTo.Name = "lblSendTo";
     this.lblSendTo.Size = new System.Drawing.Size(90, 12);
     this.lblSendTo.TabIndex = 14;
     this.lblSendTo.Text = "发送给(&T):";
     this.lblSendTo.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FrmMessageSend
     //
     this.AllowDrop = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(613, 285);
     this.Controls.Add(this.grbMessage);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.btnCancel);
     this.Cursor = System.Windows.Forms.Cursors.Default;
     this.Name = "FrmMessageSend";
     this.Text = "发送信息";
     this.Load += new System.EventHandler(this.FrmMessageSend_Load);
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.FrmMessageSend_DragDrop);
     this.DragOver += new System.Windows.Forms.DragEventHandler(this.FrmMessageSend_DragOver);
     this.grbMessage.ResumeLayout(false);
     this.grbMessage.PerformLayout();
     this.ResumeLayout(false);
 }
 private void contextMenu_onClick(object sender, EventArgs e)
 {
     switch (((System.Windows.Forms.ToolStripMenuItem)sender).Name)
     {
         case "mnuUndo":
             break;
         case "mnuCut":
             this.Cut();
             break;
         case "mnuCopy":
             this.Copy();
             break;
         case "mnuCopySl":
             string cpyTxt = (this.SelectionLength > 0) ? this.SelectedText : this.Text;
             List<string> sql = new List<string>(cpyTxt.Split('\n'));
             for (int i = 0; i < sql.Count; i++)
                 sql[i] = sql[i].Trim() + ((sql[i].EndsWith(",")) ? "" : " ");
             System.Windows.Forms.Clipboard.SetText(RainstormStudios.Data.rsData.DeCommentQuery(sql.ToArray(), true));
             break;
         case "mnuPaste":
             this.Paste();
             break;
         case "mnuDelete":
             if (this.SelectionLength == 0)
             {
                 if (this.SelectionStart == this.Text.Length)
                     this.SelectionStart--;
                 this.SelectionLength = 1;
             }
             this.AddUndo(new UndoState(UndoStateType.Delete, "", this.SelectedText, this.SelectionStart));
             this.SelectedText = "";
             break;
         case "mnuInsList":
             using (RainstormStudios.Forms.frmCSVList frm = new RainstormStudios.Forms.frmCSVList())
                 if (frm.ShowDialog(this.FindForm()) == System.Windows.Forms.DialogResult.OK)
                     this.InsertText(frm.GetList());
             break;
         case "mnuFont":
             using (System.Windows.Forms.FontDialog dlg = new System.Windows.Forms.FontDialog())
             {
                 dlg.FontMustExist = true;
                 dlg.ShowApply = false;
                 dlg.ShowColor = false;
                 dlg.ShowEffects = false;
                 if (dlg.ShowDialog(this.FindForm()) == System.Windows.Forms.DialogResult.OK)
                     this.Font = dlg.Font;
             }
             break;
         case "mnuSaveFile":
             using (System.Windows.Forms.SaveFileDialog dlg = new System.Windows.Forms.SaveFileDialog())
             {
                 dlg.AddExtension = true;
                 dlg.DefaultExt = ".sql";
                 dlg.Filter = "SQL Query Files|*.sql|Text Files|*.txt|All Files|*.*";
                 dlg.FilterIndex = 0;
                 dlg.OverwritePrompt = true;
                 dlg.Title = "Save Query to File";
                 dlg.ValidateNames = true;
                 if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                     this.SaveFile(dlg.FileName, System.Windows.Forms.RichTextBoxStreamType.PlainText);
             }
             break;
         case "mnuLoad":
             using (System.Windows.Forms.OpenFileDialog dlg = new System.Windows.Forms.OpenFileDialog())
             {
                 dlg.AddExtension = true;
                 dlg.CheckFileExists = true;
                 dlg.CheckPathExists = true;
                 dlg.DefaultExt = ".sql";
                 dlg.Filter = "Text Query Files|*.txt;*.sql|SQL Query Files|*.sql|Text Files|*.txt|All Files|*.*";
                 dlg.FilterIndex = 0;
                 dlg.Multiselect = false;
                 dlg.SupportMultiDottedExtensions = true;
                 dlg.Title = "Select Query File to Load";
                 dlg.ValidateNames = true;
                 if (dlg.ShowDialog(this.FindForm()) == System.Windows.Forms.DialogResult.OK)
                     this.LoadFile(dlg.FileName);
             }
             break;
         case "mnuPrint":
             this.Print();
             break;
         case "mnuPrintPreview":
             this.PrintPreview();
             break;
     }
 }
Esempio n. 59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FontEditor));
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.文件FToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_new = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_open = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_save = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_saveas = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
     this.ToolStripMenuItem_export = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_exporttex = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
     this.ToolStripMenuItem_exportLayout = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_paste = new System.Windows.Forms.ToolStripMenuItem();
     this.填充FToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_fromText = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
     this.ToolStripMenuItem_setfont = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_setcolor = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_setmargin = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_setadv = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_setbaseline = new System.Windows.Forms.ToolStripMenuItem();
     this.选项OToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.背景颜色BToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_bk_white = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_bk_black = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_showfont = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_showmargin = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.设置纹理大小SToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_256x256 = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_512x512 = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_1024x1024 = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_2048x2048 = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_usersize = new System.Windows.Forms.ToolStripMenuItem();
     this.抗锯齿AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_AA_Default = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_AA_AA = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_AA_AAGF = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_AA_SBPP = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolStripMenuItem_AA_SBPPGF = new System.Windows.Forms.ToolStripMenuItem();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.listView_charmap = new System.Windows.Forms.ListView();
     this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.propertyGrid_char = new System.Windows.Forms.PropertyGrid();
     this.saveFileDialog_def = new System.Windows.Forms.SaveFileDialog();
     this.openFileDialog_def = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog_savepng = new System.Windows.Forms.SaveFileDialog();
     this.fontDialog_main = new System.Windows.Forms.FontDialog();
     this.colorDialog_main = new System.Windows.Forms.ColorDialog();
     this.saveFileDialog_savexml = new System.Windows.Forms.SaveFileDialog();
     this.toolStripButton_add = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton_remove = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton_up = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton_down = new System.Windows.Forms.ToolStripButton();
     this.pictureBox_tex = new System.Windows.Forms.PictureBox();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_tex)).BeginInit();
     this.SuspendLayout();
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.文件FToolStripMenuItem,
     this.填充FToolStripMenuItem,
     this.选项OToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(771, 25);
     this.menuStrip1.TabIndex = 0;
     this.menuStrip1.Text = "menuStrip1";
     //
     // 文件FToolStripMenuItem
     //
     this.文件FToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripMenuItem_new,
     this.ToolStripMenuItem_open,
     this.ToolStripMenuItem_save,
     this.ToolStripMenuItem_saveas,
     this.toolStripMenuItem3,
     this.ToolStripMenuItem_export,
     this.ToolStripMenuItem_exporttex,
     this.toolStripMenuItem2,
     this.ToolStripMenuItem_exportLayout,
     this.ToolStripMenuItem_paste});
     this.文件FToolStripMenuItem.Name = "文件FToolStripMenuItem";
     this.文件FToolStripMenuItem.Size = new System.Drawing.Size(64, 21);
     this.文件FToolStripMenuItem.Text = "文件(&F)";
     //
     // ToolStripMenuItem_new
     //
     this.ToolStripMenuItem_new.Name = "ToolStripMenuItem_new";
     this.ToolStripMenuItem_new.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_new.Text = "新建字体模板(&N)";
     this.ToolStripMenuItem_new.Click += new System.EventHandler(this.ToolStripMenuItem_new_Click);
     //
     // ToolStripMenuItem_open
     //
     this.ToolStripMenuItem_open.Name = "ToolStripMenuItem_open";
     this.ToolStripMenuItem_open.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_open.Text = "打开字体模板(&O)";
     this.ToolStripMenuItem_open.Click += new System.EventHandler(this.ToolStripMenuItem_open_Click);
     //
     // ToolStripMenuItem_save
     //
     this.ToolStripMenuItem_save.Name = "ToolStripMenuItem_save";
     this.ToolStripMenuItem_save.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_save.Text = "保存字体模板(&S)";
     this.ToolStripMenuItem_save.Click += new System.EventHandler(this.ToolStripMenuItem_save_Click);
     //
     // ToolStripMenuItem_saveas
     //
     this.ToolStripMenuItem_saveas.Name = "ToolStripMenuItem_saveas";
     this.ToolStripMenuItem_saveas.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_saveas.Text = "另存为...";
     this.ToolStripMenuItem_saveas.Click += new System.EventHandler(this.ToolStripMenuItem_saveas_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(202, 6);
     //
     // ToolStripMenuItem_export
     //
     this.ToolStripMenuItem_export.Name = "ToolStripMenuItem_export";
     this.ToolStripMenuItem_export.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_export.Text = "导出字体布局...";
     this.ToolStripMenuItem_export.Click += new System.EventHandler(this.ToolStripMenuItem_export_Click);
     //
     // ToolStripMenuItem_exporttex
     //
     this.ToolStripMenuItem_exporttex.Name = "ToolStripMenuItem_exporttex";
     this.ToolStripMenuItem_exporttex.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_exporttex.Text = "导出字体纹理...";
     this.ToolStripMenuItem_exporttex.Click += new System.EventHandler(this.ToolStripMenuItem_exporttex_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(202, 6);
     //
     // ToolStripMenuItem_exportLayout
     //
     this.ToolStripMenuItem_exportLayout.Name = "ToolStripMenuItem_exportLayout";
     this.ToolStripMenuItem_exportLayout.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_exportLayout.Text = "导出布局图...";
     this.ToolStripMenuItem_exportLayout.Click += new System.EventHandler(this.ToolStripMenuItem_exportLayout_Click);
     //
     // ToolStripMenuItem_paste
     //
     this.ToolStripMenuItem_paste.Name = "ToolStripMenuItem_paste";
     this.ToolStripMenuItem_paste.Size = new System.Drawing.Size(205, 22);
     this.ToolStripMenuItem_paste.Text = "导出文本到剪贴板...";
     this.ToolStripMenuItem_paste.Click += new System.EventHandler(this.ToolStripMenuItem_paste_Click);
     //
     // 填充FToolStripMenuItem
     //
     this.填充FToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripMenuItem_fromText,
     this.toolStripMenuItem4,
     this.ToolStripMenuItem_setfont,
     this.ToolStripMenuItem_setcolor,
     this.ToolStripMenuItem_setmargin,
     this.ToolStripMenuItem_setadv,
     this.ToolStripMenuItem_setbaseline});
     this.填充FToolStripMenuItem.Name = "填充FToolStripMenuItem";
     this.填充FToolStripMenuItem.Size = new System.Drawing.Size(65, 21);
     this.填充FToolStripMenuItem.Text = "批量(&B)";
     //
     // ToolStripMenuItem_fromText
     //
     this.ToolStripMenuItem_fromText.Name = "ToolStripMenuItem_fromText";
     this.ToolStripMenuItem_fromText.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_fromText.Text = "从文本添加/填充文字(&F)";
     this.ToolStripMenuItem_fromText.Click += new System.EventHandler(this.ToolStripMenuItem_fromText_Click);
     //
     // toolStripMenuItem4
     //
     this.toolStripMenuItem4.Name = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size = new System.Drawing.Size(253, 6);
     //
     // ToolStripMenuItem_setfont
     //
     this.ToolStripMenuItem_setfont.Name = "ToolStripMenuItem_setfont";
     this.ToolStripMenuItem_setfont.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_setfont.Text = "设置选中字体(&O)";
     this.ToolStripMenuItem_setfont.Click += new System.EventHandler(this.ToolStripMenuItem_setfont_Click);
     //
     // ToolStripMenuItem_setcolor
     //
     this.ToolStripMenuItem_setcolor.Name = "ToolStripMenuItem_setcolor";
     this.ToolStripMenuItem_setcolor.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_setcolor.Text = "设置选中颜色(&C)";
     this.ToolStripMenuItem_setcolor.Click += new System.EventHandler(this.ToolStripMenuItem_setcolor_Click);
     //
     // ToolStripMenuItem_setmargin
     //
     this.ToolStripMenuItem_setmargin.Name = "ToolStripMenuItem_setmargin";
     this.ToolStripMenuItem_setmargin.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_setmargin.Text = "设置选中字符边界(&M)";
     this.ToolStripMenuItem_setmargin.Click += new System.EventHandler(this.ToolStripMenuItem_setmargin_Click);
     //
     // ToolStripMenuItem_setadv
     //
     this.ToolStripMenuItem_setadv.Name = "ToolStripMenuItem_setadv";
     this.ToolStripMenuItem_setadv.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_setadv.Text = "设置选中字符前进量(&A)";
     this.ToolStripMenuItem_setadv.Click += new System.EventHandler(this.ToolStripMenuItem_setadv_Click);
     //
     // ToolStripMenuItem_setbaseline
     //
     this.ToolStripMenuItem_setbaseline.Name = "ToolStripMenuItem_setbaseline";
     this.ToolStripMenuItem_setbaseline.Size = new System.Drawing.Size(256, 22);
     this.ToolStripMenuItem_setbaseline.Text = "设置选中字符的基线高度(S)";
     this.ToolStripMenuItem_setbaseline.Click += new System.EventHandler(this.ToolStripMenuItem_setbaseline_Click);
     //
     // 选项OToolStripMenuItem
     //
     this.选项OToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.背景颜色BToolStripMenuItem,
     this.ToolStripMenuItem_showfont,
     this.ToolStripMenuItem_showmargin,
     this.toolStripMenuItem1,
     this.设置纹理大小SToolStripMenuItem,
     this.抗锯齿AToolStripMenuItem});
     this.选项OToolStripMenuItem.Name = "选项OToolStripMenuItem";
     this.选项OToolStripMenuItem.Size = new System.Drawing.Size(68, 21);
     this.选项OToolStripMenuItem.Text = "选项(&O)";
     //
     // 背景颜色BToolStripMenuItem
     //
     this.背景颜色BToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripMenuItem_bk_white,
     this.ToolStripMenuItem_bk_black});
     this.背景颜色BToolStripMenuItem.Name = "背景颜色BToolStripMenuItem";
     this.背景颜色BToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
     this.背景颜色BToolStripMenuItem.Text = "编辑区背景颜色(&B)";
     //
     // ToolStripMenuItem_bk_white
     //
     this.ToolStripMenuItem_bk_white.Checked = true;
     this.ToolStripMenuItem_bk_white.CheckState = System.Windows.Forms.CheckState.Checked;
     this.ToolStripMenuItem_bk_white.Name = "ToolStripMenuItem_bk_white";
     this.ToolStripMenuItem_bk_white.Size = new System.Drawing.Size(126, 22);
     this.ToolStripMenuItem_bk_white.Text = "白色(&W)";
     this.ToolStripMenuItem_bk_white.Click += new System.EventHandler(this.ToolStripMenuItem_bk_white_Click);
     //
     // ToolStripMenuItem_bk_black
     //
     this.ToolStripMenuItem_bk_black.Name = "ToolStripMenuItem_bk_black";
     this.ToolStripMenuItem_bk_black.Size = new System.Drawing.Size(126, 22);
     this.ToolStripMenuItem_bk_black.Text = "黑色(&B)";
     this.ToolStripMenuItem_bk_black.Click += new System.EventHandler(this.ToolStripMenuItem_bk_black_Click);
     //
     // ToolStripMenuItem_showfont
     //
     this.ToolStripMenuItem_showfont.Checked = true;
     this.ToolStripMenuItem_showfont.CheckState = System.Windows.Forms.CheckState.Checked;
     this.ToolStripMenuItem_showfont.Name = "ToolStripMenuItem_showfont";
     this.ToolStripMenuItem_showfont.Size = new System.Drawing.Size(196, 22);
     this.ToolStripMenuItem_showfont.Text = "显示字形矩形";
     this.ToolStripMenuItem_showfont.Click += new System.EventHandler(this.ToolStripMenuItem_showfont_Click);
     //
     // ToolStripMenuItem_showmargin
     //
     this.ToolStripMenuItem_showmargin.Checked = true;
     this.ToolStripMenuItem_showmargin.CheckState = System.Windows.Forms.CheckState.Checked;
     this.ToolStripMenuItem_showmargin.Name = "ToolStripMenuItem_showmargin";
     this.ToolStripMenuItem_showmargin.Size = new System.Drawing.Size(196, 22);
     this.ToolStripMenuItem_showmargin.Text = "显示边界矩形";
     this.ToolStripMenuItem_showmargin.Click += new System.EventHandler(this.ToolStripMenuItem_showmargin_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(193, 6);
     //
     // 设置纹理大小SToolStripMenuItem
     //
     this.设置纹理大小SToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripMenuItem_256x256,
     this.ToolStripMenuItem_512x512,
     this.ToolStripMenuItem_1024x1024,
     this.ToolStripMenuItem_2048x2048,
     this.ToolStripMenuItem_usersize});
     this.设置纹理大小SToolStripMenuItem.Name = "设置纹理大小SToolStripMenuItem";
     this.设置纹理大小SToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
     this.设置纹理大小SToolStripMenuItem.Text = "设置纹理大小(&S)";
     //
     // ToolStripMenuItem_256x256
     //
     this.ToolStripMenuItem_256x256.Name = "ToolStripMenuItem_256x256";
     this.ToolStripMenuItem_256x256.Size = new System.Drawing.Size(138, 22);
     this.ToolStripMenuItem_256x256.Text = "256x256";
     this.ToolStripMenuItem_256x256.Click += new System.EventHandler(this.ToolStripMenuItem_256x256_Click);
     //
     // ToolStripMenuItem_512x512
     //
     this.ToolStripMenuItem_512x512.Checked = true;
     this.ToolStripMenuItem_512x512.CheckState = System.Windows.Forms.CheckState.Checked;
     this.ToolStripMenuItem_512x512.Name = "ToolStripMenuItem_512x512";
     this.ToolStripMenuItem_512x512.Size = new System.Drawing.Size(138, 22);
     this.ToolStripMenuItem_512x512.Text = "512x512";
     this.ToolStripMenuItem_512x512.Click += new System.EventHandler(this.ToolStripMenuItem_512x512_Click);
     //
     // ToolStripMenuItem_1024x1024
     //
     this.ToolStripMenuItem_1024x1024.Name = "ToolStripMenuItem_1024x1024";
     this.ToolStripMenuItem_1024x1024.Size = new System.Drawing.Size(138, 22);
     this.ToolStripMenuItem_1024x1024.Text = "1024x1024";
     this.ToolStripMenuItem_1024x1024.Click += new System.EventHandler(this.ToolStripMenuItem_1024x1024_Click);
     //
     // ToolStripMenuItem_2048x2048
     //
     this.ToolStripMenuItem_2048x2048.Name = "ToolStripMenuItem_2048x2048";
     this.ToolStripMenuItem_2048x2048.Size = new System.Drawing.Size(138, 22);
     this.ToolStripMenuItem_2048x2048.Text = "2048x2048";
     this.ToolStripMenuItem_2048x2048.Click += new System.EventHandler(this.ToolStripMenuItem_2048x2048_Click);
     //
     // ToolStripMenuItem_usersize
     //
     this.ToolStripMenuItem_usersize.Name = "ToolStripMenuItem_usersize";
     this.ToolStripMenuItem_usersize.Size = new System.Drawing.Size(138, 22);
     this.ToolStripMenuItem_usersize.Text = "自定义...";
     this.ToolStripMenuItem_usersize.Click += new System.EventHandler(this.ToolStripMenuItem_usersize_Click);
     //
     // 抗锯齿AToolStripMenuItem
     //
     this.抗锯齿AToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ToolStripMenuItem_AA_Default,
     this.ToolStripMenuItem_AA_AA,
     this.ToolStripMenuItem_AA_AAGF,
     this.ToolStripMenuItem_AA_SBPP,
     this.ToolStripMenuItem_AA_SBPPGF});
     this.抗锯齿AToolStripMenuItem.Name = "抗锯齿AToolStripMenuItem";
     this.抗锯齿AToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
     this.抗锯齿AToolStripMenuItem.Text = "抗锯齿(&A)";
     //
     // ToolStripMenuItem_AA_Default
     //
     this.ToolStripMenuItem_AA_Default.Name = "ToolStripMenuItem_AA_Default";
     this.ToolStripMenuItem_AA_Default.Size = new System.Drawing.Size(208, 22);
     this.ToolStripMenuItem_AA_Default.Text = "系统默认(&D)";
     this.ToolStripMenuItem_AA_Default.Click += new System.EventHandler(this.ToolStripMenuItem_AA_Default_Click);
     //
     // ToolStripMenuItem_AA_AA
     //
     this.ToolStripMenuItem_AA_AA.Checked = true;
     this.ToolStripMenuItem_AA_AA.CheckState = System.Windows.Forms.CheckState.Checked;
     this.ToolStripMenuItem_AA_AA.Name = "ToolStripMenuItem_AA_AA";
     this.ToolStripMenuItem_AA_AA.Size = new System.Drawing.Size(208, 22);
     this.ToolStripMenuItem_AA_AA.Text = "AntiAlias";
     this.ToolStripMenuItem_AA_AA.Click += new System.EventHandler(this.ToolStripMenuItem_AA_AA_Click);
     //
     // ToolStripMenuItem_AA_AAGF
     //
     this.ToolStripMenuItem_AA_AAGF.Name = "ToolStripMenuItem_AA_AAGF";
     this.ToolStripMenuItem_AA_AAGF.Size = new System.Drawing.Size(208, 22);
     this.ToolStripMenuItem_AA_AAGF.Text = "AntiAliasGridFit";
     this.ToolStripMenuItem_AA_AAGF.Click += new System.EventHandler(this.ToolStripMenuItem_AA_AAGF_Click);
     //
     // ToolStripMenuItem_AA_SBPP
     //
     this.ToolStripMenuItem_AA_SBPP.Name = "ToolStripMenuItem_AA_SBPP";
     this.ToolStripMenuItem_AA_SBPP.Size = new System.Drawing.Size(208, 22);
     this.ToolStripMenuItem_AA_SBPP.Text = "SingleBitPerPixel";
     this.ToolStripMenuItem_AA_SBPP.Click += new System.EventHandler(this.ToolStripMenuItem_AA_SBPP_Click);
     //
     // ToolStripMenuItem_AA_SBPPGF
     //
     this.ToolStripMenuItem_AA_SBPPGF.Name = "ToolStripMenuItem_AA_SBPPGF";
     this.ToolStripMenuItem_AA_SBPPGF.Size = new System.Drawing.Size(208, 22);
     this.ToolStripMenuItem_AA_SBPPGF.Text = "SingleBitPerPixelGridFit";
     this.ToolStripMenuItem_AA_SBPPGF.Click += new System.EventHandler(this.ToolStripMenuItem_AA_SBPPGF_Click);
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.Location = new System.Drawing.Point(0, 25);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.listView_charmap);
     this.splitContainer1.Panel1.Controls.Add(this.toolStrip1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Size = new System.Drawing.Size(771, 386);
     this.splitContainer1.SplitterDistance = 169;
     this.splitContainer1.TabIndex = 1;
     //
     // listView_charmap
     //
     this.listView_charmap.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1,
     this.columnHeader2});
     this.listView_charmap.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listView_charmap.FullRowSelect = true;
     this.listView_charmap.GridLines = true;
     this.listView_charmap.Location = new System.Drawing.Point(0, 25);
     this.listView_charmap.Name = "listView_charmap";
     this.listView_charmap.Size = new System.Drawing.Size(169, 361);
     this.listView_charmap.TabIndex = 1;
     this.listView_charmap.UseCompatibleStateImageBehavior = false;
     this.listView_charmap.View = System.Windows.Forms.View.Details;
     this.listView_charmap.SelectedIndexChanged += new System.EventHandler(this.listView_charmap_SelectedIndexChanged);
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "序";
     this.columnHeader1.Width = 50;
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "字符";
     this.columnHeader2.Width = 100;
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripLabel1,
     this.toolStripButton_add,
     this.toolStripButton_remove,
     this.toolStripButton_up,
     this.toolStripButton_down});
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new System.Drawing.Size(169, 25);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text = "toolStrip1";
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(53, 22);
     this.toolStripLabel1.Text = "字符表";
     //
     // splitContainer2
     //
     this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
     this.splitContainer2.Location = new System.Drawing.Point(0, 0);
     this.splitContainer2.Name = "splitContainer2";
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.AutoScroll = true;
     this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White;
     this.splitContainer2.Panel1.Controls.Add(this.pictureBox_tex);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.propertyGrid_char);
     this.splitContainer2.Size = new System.Drawing.Size(598, 386);
     this.splitContainer2.SplitterDistance = 429;
     this.splitContainer2.TabIndex = 0;
     //
     // propertyGrid_char
     //
     this.propertyGrid_char.Dock = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid_char.Location = new System.Drawing.Point(0, 0);
     this.propertyGrid_char.Name = "propertyGrid_char";
     this.propertyGrid_char.Size = new System.Drawing.Size(165, 386);
     this.propertyGrid_char.TabIndex = 0;
     this.propertyGrid_char.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid_char_PropertyValueChanged);
     //
     // saveFileDialog_def
     //
     this.saveFileDialog_def.DefaultExt = "xml";
     this.saveFileDialog_def.Filter = "XML文件|*.xml";
     this.saveFileDialog_def.Title = "保存字体定义文件";
     //
     // openFileDialog_def
     //
     this.openFileDialog_def.Filter = "XML文件|*.xml";
     this.openFileDialog_def.Title = "打开字体定义文件";
     //
     // saveFileDialog_savepng
     //
     this.saveFileDialog_savepng.DefaultExt = "png";
     this.saveFileDialog_savepng.Filter = "PNG图片(*.png)|*.png";
     this.saveFileDialog_savepng.Title = "保存PNG图片";
     //
     // fontDialog_main
     //
     this.fontDialog_main.Color = System.Drawing.SystemColors.ControlText;
     //
     // saveFileDialog_savexml
     //
     this.saveFileDialog_savexml.DefaultExt = "xml";
     this.saveFileDialog_savexml.Filter = "F2D Xml文件(*.xml)|*.xml";
     this.saveFileDialog_savexml.Title = "保存XML文件";
     //
     // toolStripButton_add
     //
     this.toolStripButton_add.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton_add.Image = global::TexturedFontEditor.Properties.Resources.Add;
     this.toolStripButton_add.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton_add.Name = "toolStripButton_add";
     this.toolStripButton_add.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton_add.Text = "增加字符";
     this.toolStripButton_add.Click += new System.EventHandler(this.toolStripButton_add_Click);
     //
     // toolStripButton_remove
     //
     this.toolStripButton_remove.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton_remove.Image = global::TexturedFontEditor.Properties.Resources.Remove;
     this.toolStripButton_remove.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton_remove.Name = "toolStripButton_remove";
     this.toolStripButton_remove.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton_remove.Text = "删除字符";
     this.toolStripButton_remove.Click += new System.EventHandler(this.toolStripButton_remove_Click);
     //
     // toolStripButton_up
     //
     this.toolStripButton_up.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton_up.Image = global::TexturedFontEditor.Properties.Resources.MoveUp;
     this.toolStripButton_up.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton_up.Name = "toolStripButton_up";
     this.toolStripButton_up.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton_up.Text = "上移";
     this.toolStripButton_up.Click += new System.EventHandler(this.toolStripButton_up_Click);
     //
     // toolStripButton_down
     //
     this.toolStripButton_down.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton_down.Image = global::TexturedFontEditor.Properties.Resources.MoveDown;
     this.toolStripButton_down.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton_down.Name = "toolStripButton_down";
     this.toolStripButton_down.Size = new System.Drawing.Size(23, 22);
     this.toolStripButton_down.Text = "下移";
     this.toolStripButton_down.Click += new System.EventHandler(this.toolStripButton_down_Click);
     //
     // pictureBox_tex
     //
     this.pictureBox_tex.BackColor = System.Drawing.Color.Transparent;
     this.pictureBox_tex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pictureBox_tex.Location = new System.Drawing.Point(0, 0);
     this.pictureBox_tex.Name = "pictureBox_tex";
     this.pictureBox_tex.Size = new System.Drawing.Size(139, 193);
     this.pictureBox_tex.TabIndex = 0;
     this.pictureBox_tex.TabStop = false;
     this.pictureBox_tex.Paint += new System.Windows.Forms.PaintEventHandler(this.pictureBox_tex_Paint);
     //
     // FontEditor
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(771, 411);
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.menuStrip1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "FontEditor";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "纹理化字体编辑器";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FontEditor_FormClosing);
     this.Load += new System.EventHandler(this.FontEditor_Load);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.PerformLayout();
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_tex)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.textBox = new InfoCenter.Controls.CompilerTextBox();
     this.button1 = new Telerik.WinControls.UI.RadButton();
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.schimbaFontulToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     ((System.ComponentModel.ISupportInitialize)(this.button1)).BeginInit();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // textBox
     //
     this.textBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox.Location = new System.Drawing.Point(0, 29);
     this.textBox.Name = "textBox";
     this.textBox.Size = new System.Drawing.Size(948, 563);
     this.textBox.TabIndex = 0;
     //
     // button1
     //
     this.button1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.button1.Location = new System.Drawing.Point(0, 593);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(948, 23);
     this.button1.TabIndex = 1;
     this.button1.Text = "Închide";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.schimbaFontulToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(948, 29);
     this.menuStrip1.TabIndex = 2;
     this.menuStrip1.Text = "menuStrip1";
     //
     // schimbaFontulToolStripMenuItem
     //
     this.schimbaFontulToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schimbaFontulToolStripMenuItem.Name = "schimbaFontulToolStripMenuItem";
     this.schimbaFontulToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
     this.schimbaFontulToolStripMenuItem.Size = new System.Drawing.Size(127, 25);
     this.schimbaFontulToolStripMenuItem.Text = "Schimbă fontul";
     this.schimbaFontulToolStripMenuItem.Click += new System.EventHandler(this.schimbaFontToolStripMenuIte_Click);
     //
     // fontDialog1
     //
     this.fontDialog1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     //
     // FrmAfisareMarita
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(948, 616);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.textBox);
     this.Controls.Add(this.menuStrip1);
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "FrmAfisareMarita";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Afişare ";
     this.ThemeName = "Office2007Blue";
     ((System.ComponentModel.ISupportInitialize)(this.button1)).EndInit();
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }