Inheritance: MonoBehaviour
示例#1
0
    public void IniciarComponentes()
    {
        lblSaludo = new Label();
        btSaludo = new Button();
        ttToolTip1 = new ToolTip();

        lblSaludo.Name = "lblSaludo";
        lblSaludo.Text = "Label";
        lblSaludo.Font = new Font("Microsoft Sans Serif", 14, FontStyle.Regular);
        lblSaludo.TextAlign = ContentAlignment.MiddleCenter;
        lblSaludo.Location = new Point(53, 48);
        lblSaludo.Size = new Size(187, 35);
        lblSaludo.TabIndex = 1;

        btSaludo.Name = "btSaludo";
        btSaludo.Text = "Haga &clic aquí";
        btSaludo.Location = new Point(53, 90);
        btSaludo.Size = new Size(187, 23);
        btSaludo.TabIndex = 0;
        ttToolTip1.SetToolTip(btSaludo, "Botón de pulsación");

        ClientSize = new Size(292, 191);
        Name = "Form1";
        Text = "Saludo";

        Controls.Add(lblSaludo);
        Controls.Add(btSaludo);
    }
示例#2
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _buttonOK
		// 
		_buttonOK = new Button ();
		_buttonOK.Location = new Point (110, 25);
		_buttonOK.Size = new Size (80, 20);
		_buttonOK.Text = "OK";
		Controls.Add (_buttonOK);
		// 
		// _toolTip
		// 
		_toolTip = new ToolTip ();
		_toolTip.InitialDelay = 1000;
		_toolTip.ReshowDelay = 0;
		_toolTip.SetToolTip (_buttonOK, "We're doing just fine...");
		// 
		// MainForm
		// 
		Location = new Point (250, 100);
		Size = new Size (300, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82348";
		Load += new EventHandler (MainForm_Load);
	}
示例#3
0
 public static ToolTip GetToolTipInfo(string title)
 {
     ToolTip tooltip = new ToolTip();
     tooltip.ToolTipTitle = title;
     tooltip.ToolTipIcon = ToolTipIcon.Info;
     return tooltip;
 }
示例#4
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _buttonA
		// 
		 _buttonA = new Button ();
		_buttonA.Location = new Point (70, 25);
		_buttonA.Size = new Size (80, 20);
		_buttonA.Text = "A";
		Controls.Add (_buttonA);
		// 
		// _buttonB
		// 
		_buttonB = new Button ();
		_buttonB.Location = new Point (150, 25);
		_buttonB.Size = new Size (80, 20);
		_buttonB.Text = "B";
		Controls.Add (_buttonB);
		// 
		// _toolTip
		// 
		_toolTip = new ToolTip ();
		_toolTip.InitialDelay = 1000;
		_toolTip.ReshowDelay = 0;
		_toolTip.SetToolTip (_buttonA, "Displays form A.");
		_toolTip.SetToolTip (_buttonB, "Displays form B.");
		// 
		// MainForm
		// 
		Location = new Point (250, 100);
		Size = new Size (300, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82288";
		Load += new EventHandler (MainForm_Load);
	}
示例#5
0
 public DataPoint(double value, string hyperlink, string tooltip, string label)
 {
     this.Value = value;
     this.Hyperlink = hyperlink;
     this.ToolTip = new ToolTip(tooltip);
     this.Label = label;
 }
        void CreateDraggableFish()
        {
            var cache = ResourceCache;
            var graphics = Graphics;

            // Create a draggable Fish button
            draggableFish = new Button();
            draggableFish.Texture = cache.GetTexture2D("Textures/UrhoDecal.dds"); // Set texture
            draggableFish.BlendMode = BlendMode.Add;
            draggableFish.SetSize(128, 128);
            draggableFish.SetPosition((graphics.Width - draggableFish.Width)/2, 200);
            draggableFish.Name = "Fish";
            uiRoot.AddChild(draggableFish);

            // Add a tooltip to Fish button
            ToolTip toolTip = new ToolTip();
            draggableFish.AddChild(toolTip);
            toolTip.Position = new IntVector2(draggableFish.Width + 5, draggableFish.Width/2);
            // slightly offset from close button
            BorderImage textHolder = new BorderImage();
            toolTip.AddChild(textHolder);
            textHolder.SetStyle("ToolTipBorderImage", null);
            var toolTipText = new Text();
            textHolder.AddChild(toolTipText);
            toolTipText.SetStyle("ToolTipText", null);
            toolTipText.Value = "Please drag me!";

            // Subscribe draggableFish to Drag Events (in order to make it draggable)
            draggableFish.SubscribeToDragBegin(HandleDragBegin);
            draggableFish.SubscribeToDragMove(HandleDragMove);
            draggableFish.SubscribeToDragEnd(HandleDragEnd);
        }
示例#7
0
        public MiniMapModel(EventHandler mapButtonClicked)
        {
            mapbuttonclicked = mapButtonClicked;
            btn1Command = new RelayCommand(new Action<object>(onBtn1Clicked));
            btn2Command = new RelayCommand(new Action<object>(onBtn2Clicked));
            btn3Command = new RelayCommand(new Action<object>(onBtn3Clicked));
            btn4Command = new RelayCommand(new Action<object>(onBtn4Clicked));
            btn5Command = new RelayCommand(new Action<object>(onBtn5Clicked));
            btn6Command = new RelayCommand(new Action<object>(onBtn6Clicked));
            btn7Command = new RelayCommand(new Action<object>(onBtn7Clicked));
            btn8Command = new RelayCommand(new Action<object>(onBtn8Clicked));
            btn9Command = new RelayCommand(new Action<object>(onBtn9Clicked));
            btn10Command = new RelayCommand(new Action<object>(onBtn10Clicked));
            btn11Command = new RelayCommand(new Action<object>(onBtn11Clicked));
            btn12Command = new RelayCommand(new Action<object>(onBtn12Clicked));
            btn13Command = new RelayCommand(new Action<object>(onBtn13Clicked));
            btn14Command = new RelayCommand(new Action<object>(onBtn14Clicked));
            btn15Command = new RelayCommand(new Action<object>(onBtn15Clicked));
            btn16Command = new RelayCommand(new Action<object>(onBtn16Clicked));
            btn17Command = new RelayCommand(new Action<object>(onBtn17Clicked));
            btn18Command = new RelayCommand(new Action<object>(onBtn18Clicked));
            btn19Command = new RelayCommand(new Action<object>(onBtn19Clicked));
            btn20Command = new RelayCommand(new Action<object>(onBtn20Clicked));
            btn21Command = new RelayCommand(new Action<object>(onBtn21Clicked));
            btn22Command = new RelayCommand(new Action<object>(onBtn22Clicked));
            btn23Command = new RelayCommand(new Action<object>(onBtn23Clicked));
            btn24Command = new RelayCommand(new Action<object>(onBtn24Clicked));
            btn25Command = new RelayCommand(new Action<object>(onBtn25Clicked));

            btn1TT = new ToolTip();
            btn2TT = new ToolTip();
            btn3TT = new ToolTip();
            btn4TT = new ToolTip();
            btn5TT = new ToolTip();
            btn6TT = new ToolTip();
            btn7TT = new ToolTip();
            btn8TT = new ToolTip();
            btn9TT = new ToolTip();
            btn10TT = new ToolTip();
            btn11TT = new ToolTip();
            btn12TT = new ToolTip();
            btn13TT = new ToolTip();
            btn14TT = new ToolTip();
            btn15TT = new ToolTip();
            btn16TT = new ToolTip();
            btn17TT = new ToolTip();
            btn18TT = new ToolTip();
            btn19TT = new ToolTip();
            btn20TT = new ToolTip();
            btn21TT = new ToolTip();
            btn22TT = new ToolTip();
            btn23TT = new ToolTip();
            btn24TT = new ToolTip();
            btn25TT = new ToolTip();
        }
示例#8
0
	// Use this for initialization
	void Start ()
	{
		m_inventory = GameObject.Find ("Inventory").GetComponent<Inventory> ();
		//m_amount = 1;
		m_toolTip = m_inventory.GetComponent<ToolTip> ();
		m_playerObj = GameObject.Find ("Berserker");
		m_player = m_playerObj.GetComponent<Player> ();
		m_attack = m_player.GetComponent<Player> ().m_attack;
		m_defence = m_player.GetComponent<Player> ().m_defence;
		m_health = m_player.GetComponent<Player> ().m_health;

	}
示例#9
0
文件: Form1.cs 项目: ranyaof/ongaz
        public Form1()
        {
            InitializeComponent();
            Report = new ReportViewer();
            ToolTipService = new ToolTip();
            ToolTipService.SetToolTip(Report, "Click for Preview");

            Report.Dock = DockStyle.Fill;
            //**
            //Icon Created by VisualPharm (Ivan Boyko) / Homepage: http://www.visualpharm.com / License: http://www.iconarchive.com/icons/visualpharm/must-have/License.txt
            //**
            Report.BackgroundImage = new IconResourceHandle("Preview.png");
            Report.BackgroundImageLayout = ImageLayout.Center;
            Report.Click += new EventHandler(RenderClick);
            ReportPanel.Controls.Clear();
            ReportPanel.Controls.Add(Report);
        }
示例#10
0
    public ToolTipExam()
    {
        tooltip = new ToolTip();

        btn = new Button();
        btn.Parent = this;
        btn.SetBounds(10, 10, 100, 30);
        btn.Text = "버튼";
        btn.Click += new EventHandler(btn_Click);

        txt = new TextBox();
        txt.Parent = this;
        txt.SetBounds(10, 50, 200, 100);
        txt.Text = "이름을 입력하세요>>";

        tooltip.SetToolTip(btn, "버튼을 클릭해 보세요!!");  // 컨트롤과 툴팁연결
        tooltip.SetToolTip(txt, "이름을 입력하는 부분입니다.");
    }
示例#11
0
文件: GIMEDForm.cs 项目: kalxas/GIMED
    //Thread.CurrentThread.
    public GIMEDForm(bool geo)
    {
        //MessageBox.Show(Thread.CurrentThread.CurrentUICulture.DisplayName);
        //Thread.CurrentThread.CurrentUICulture = new CultureInfo("el-GR");
        //MessageBox.Show(Thread.CurrentThread.CurrentUICulture.DisplayName);
        //MessageBox.Show(Thread.CurrentThread.CurrentUICulture.DisplayName);
        //SelectLang();
        //MessageBox.Show(Thread.CurrentThread.CurrentUICulture.DisplayName);
        InitializeComponent();

        myMDObject = null;
        GeoModule = geo;
        ToolTip toolTip1 = new ToolTip();
        toolTip1.AutoPopDelay = 5000;
        toolTip1.InitialDelay = 1000;
        toolTip1.ReshowDelay = 500;
        toolTip1.ShowAlways = true;
        toolTip1.SetToolTip(this.AboutButton, "Σχετικά...");
    }
示例#12
0
 // Update is called once per frame
 void Update()
 {
     if(currentTip != null) {
         toolText.text = currentTip.text;
     } else {
         toolText.text = "";
     }
     currentTip = null;
     RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition),
                                          Vector2.zero,
                                          float.PositiveInfinity, mask, -100.0f );
     if(hit.collider != null) {
         GameObject objectHit = hit.collider.gameObject;
         SpriteRenderer spriteRenderer = objectHit.GetComponent<SpriteRenderer>();
         if(spriteRenderer == null) return;
         if(spriteRenderer.enabled) {
             currentTip = objectHit.GetComponent<ToolTip>();
         }
     }
 }
示例#13
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _toolTip
		// 
		_toolTip = new ToolTip ();
		// 
		// _listView
		// 
		_listView = new ListView ();
		_listView.Dock = DockStyle.Fill;
		_listView.TabIndex = 0;
		_listView.MouseMove += new MouseEventHandler (ListView_MouseMove);
		Controls.Add (_listView);
		// 
		// MainForm
		// 
		AutoScaleBaseSize = new Size (5, 13);
		ClientSize = new Size (292, 266);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #79777";
		Load += new EventHandler (MainForm_Load);
	}
示例#14
0
 private void btnMemorySubtract_MouseHover(object sender, EventArgs e)
 {
     newTip = new ToolTip();
     newTip.SetToolTip(btnMemorySubtract, "Substacts the number from memory number");
 }
示例#15
0
 public Card(int parentLaneId, string cardName, string cardDescription, int points, int cardId, ToolTip globalToolTip, CardTypes cardType)
 {
     _globalToolTip  = globalToolTip;
     ParentLaneId    = parentLaneId;
     CardName        = cardName;
     CardDescription = cardDescription;
     CardPoints      = points;
     CardId          = cardId;
     CardType        = cardType;
     BuildCard(CardType);
 }
示例#16
0
 private void btnMemoryClear_MouseHover(object sender, EventArgs e)
 {
     newTip = new ToolTip();
     newTip.SetToolTip(btnMemoryClear, "Clear the number from memory");
 }
示例#17
0
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        // Declare hover-region for controls in upper-right corner (upper-left if right
        // handed).  We do this here, not in the constructor, so our layout changes
        // (resize/maximized) will have had a chance to kick in.
        hover = new HoverRegion(this,Config.PinHoverPanel);
        menuttip = new ToolTip();
        hover.InitializeControls(menuttip);
        hover.EnablePerItemEditCommands(false);
        this.Controls.AddRange(hover.Controls);

        // Subscribe to logical application-events, exposed from hover-bar.
        hover.FileNewClicked += new EventHandler(hover_FileNewClicked);
        hover.FileOpenClicked += new EventHandler(hover_FileOpenClicked);
        hover.FileSaveClicked += new EventHandler(hover_FileSaveClicked);
        hover.FileSaveAsClicked += new EventHandler(hover_FileSaveAsClicked);

        // Colaboração
        hover.FileCollabClicked  += new EventHandler(hover_CollabClicked);

        hover.FileHelpClicked += new EventHandler(hover_FileHelpClicked);
        hover.FileAboutClicked += new EventHandler(hover_FileAboutClicked);
        hover.FileExitClicked += new EventHandler(hover_FileExitClicked);

        hover.EditCloneClicked += new EventHandler(hover_EditCloneClicked);
        hover.EditDeleteClicked += new EventHandler(hover_EditDeleteClicked);
        hover.EditStraightenClicked += new EventHandler(hover_EditStraightenClicked);
        hover.EditPropertiesClicked += new EventHandler(hover_EditPropertiesClicked);

        hover.PenDrawClicked += new EventHandler(hover_PenDrawClicked);
        hover.PenEraseClicked += new EventHandler(hover_PenEraseClicked);
        hover.PenLassoClicked += new EventHandler(hover_PenLassoClicked);

        hover.AnimateClicked += new EventHandler(hover_AnimateClicked);
        hover.PauseClicked   += new EventHandler(hover_PauseClicked);
        hover.MinimizeClicked += new EventHandler(hover_MinimizeClicked);

        // Respond to portrait/landscape orientation changes.
        Microsoft.Win32.SystemEvents.DisplaySettingsChanged +=
            new EventHandler(SystemEvents_DisplaySettingsChanged);

        // Show controls initially, for a few seconds, as a hint to the user.
        hover.DisplayInitial();

        hover.getPauseTag().Visible = false;
    }
示例#18
0
        private static Control CreateViewOnOff([NotNull] FormSparseWorkingCopyViewModel sparse, [NotNull] ToolTip tooltip)
        {
            // When disabled: hint-like panel to enable
            var panelWhenDisabled = new TableLayoutPanel {
                BackColor = SystemColors.Info, AutoSize = true, AutoSizeMode = AutoSizeMode.GrowAndShrink, Dock = DockStyle.Bottom, ColumnCount = 2, RowCount = 1, ColumnStyles = { new ColumnStyle(SizeType.Percent, 100) }, Margin = Padding.Empty, Padding = new Padding(10, 5, 10, 5)
            };

            panelWhenDisabled.Controls.Add(new Label {
                ForeColor = SystemColors.InfoText, Text = Globalized.Strings.SparseWorkingCopySupportHasNotBeenEnabledForThisRepository.Text, Dock = DockStyle.Fill, AutoSize = true, TextAlign = ContentAlignment.MiddleLeft, Margin = Padding.Empty
            });
            Button btnEnable;

            panelWhenDisabled.Controls.Add(btnEnable = new Button {
                Width = 75, Height = 23, Text = Globalized.Strings.Enable.Text, Anchor = AnchorStyles.Bottom | AnchorStyles.Right, Dock = DockStyle.Right, UseVisualStyleBackColor = true, Margin = Padding.Empty
            });
            btnEnable.Click += delegate { sparse.IsSparseCheckoutEnabled = true; };
            tooltip.SetToolTip(btnEnable, string.Format(Globalized.Strings.SetsTheGitPropertyToTrueForTheLocalRepository.Text, FormSparseWorkingCopyViewModel.SettingCoreSparseCheckout));
            sparse.PropertyChanged += delegate { panelWhenDisabled.Visible = !sparse.IsSparseCheckoutEnabled; };

            // When-disabled case should have a separator
            Control separatorWhenDisabled = CreateViewSeparator(DockStyle.Bottom);

            sparse.PropertyChanged += delegate { separatorWhenDisabled.Visible = !sparse.IsSparseCheckoutEnabled; };

            // When enabled: a less bold link to disable
            string labelBeforeLink  = Globalized.Strings.SparseWorkingCopySupportIsEnabled.Text + ' ';
            string labelWithLink    = labelBeforeLink + Globalized.Strings.DisableForThisRepository.Text;
            var    labelWhenEnabled = new LinkLabel {
                Text = labelWithLink, Dock = DockStyle.Bottom, AutoSize = true, Padding = new Padding(10, 10, 10, 5), FlatStyle = FlatStyle.System, UseCompatibleTextRendering = true
            };

            labelWhenEnabled.Links.Add(new LinkLabel.Link(labelBeforeLink.Length, labelWithLink.Length - labelBeforeLink.Length));
            labelWhenEnabled.LinkClicked += delegate { sparse.IsSparseCheckoutEnabled = false; };
            tooltip.SetToolTip(labelWhenEnabled, string.Format(Globalized.Strings.SetsTheGitPropertyToFalseForTheLocalRepository.Text, FormSparseWorkingCopyViewModel.SettingCoreSparseCheckout));
            sparse.PropertyChanged += delegate { labelWhenEnabled.Visible = sparse.IsSparseCheckoutEnabled; };

            return(new Panel {
                Dock = DockStyle.Fill, Controls = { panelWhenDisabled, separatorWhenDisabled, labelWhenEnabled }, Margin = Padding.Empty, Padding = Padding.Empty, AutoSize = true
            });
        }
示例#19
0
        void TextEditorMouseHover(object sender, MouseEventArgs e)
        {
            ToolTipRequestEventArgs args = new ToolTipRequestEventArgs(this.adapter);
            var pos = adapter.TextEditor.GetPositionFromPoint(e.GetPosition(this));

            args.InDocument = pos.HasValue;
            if (pos.HasValue)
            {
                args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value.Location);
            }

            if (!args.Handled)
            {
                // if request wasn't handled by a marker, pass it to the ToolTipRequestService
                ToolTipRequestService.RequestToolTip(args);
            }

            if (args.ContentToShow != null)
            {
                var contentToShowITooltip = args.ContentToShow as ITooltip;

                if (contentToShowITooltip != null && contentToShowITooltip.ShowAsPopup)
                {
                    if (!(args.ContentToShow is UIElement))
                    {
                        throw new NotSupportedException("Content to show in Popup must be UIElement: " + args.ContentToShow);
                    }
                    if (popup == null)
                    {
                        popup = CreatePopup();
                    }
                    if (TryCloseExistingPopup(false))
                    {
                        // when popup content decides to close, close the popup
                        contentToShowITooltip.Closed += (closedSender, closedArgs) => { popup.IsOpen = false; };
                        popup.Child = (UIElement)args.ContentToShow;
                        //ICSharpCode.SharpDevelop.Debugging.DebuggerService.CurrentDebugger.IsProcessRunningChanged
                        SetPopupPosition(popup, e);
                        popup.IsOpen = true;
                    }
                    e.Handled = true;
                }
                else
                {
                    if (toolTip == null)
                    {
                        toolTip         = new ToolTip();
                        toolTip.Closed += delegate { toolTip = null; };
                    }
                    toolTip.PlacementTarget = this.adapter.TextEditor;                     // required for property inheritance

                    if (args.ContentToShow is string)
                    {
                        toolTip.Content = new TextBlock
                        {
                            Text         = args.ContentToShow as string,
                            TextWrapping = TextWrapping.Wrap
                        };
                    }
                    else
                    {
                        toolTip.Content = args.ContentToShow;
                    }

                    toolTip.IsOpen = true;
                    e.Handled      = true;
                }
            }
            else
            {
                // close popup if mouse hovered over empty area
                if (popup != null)
                {
                    e.Handled = true;
                }
                TryCloseExistingPopup(false);
            }
        }
示例#20
0
        private void Init()
        {
            this.Title = "Craft the Toolbar";

            RoutedUICommand[] comms =
            {
                ApplicationCommands.New, ApplicationCommands.Open, ApplicationCommands.Save,  ApplicationCommands.Print,
                ApplicationCommands.Cut, ApplicationCommands.Copy, ApplicationCommands.Paste, ApplicationCommands.Delete
            };

            string[] strImages =
            {
                "new.png", "open.png", "save.png",  "print.png",
                "cut.png", "copy.png", "paste.png", "delete.png"
            };

            DockPanel dock = new DockPanel();

            //dock.LastChildFill = false;   //为ture时,最后一个控件将会填满剩余的空间
            this.Content = dock;

            ToolBar toolbar = new ToolBar();

            toolbar.Header = "工具栏";
            dock.Children.Add(toolbar);
            DockPanel.SetDock(toolbar, Dock.Top);

            RichTextBox txtBox = new RichTextBox();

            dock.Children.Add(txtBox);

            for (int i = 0; i < 8; i++)
            {
                if (i == 4)
                {
                    toolbar.Items.Add(new Separator());
                }

                Button btn = new Button();
                btn.Height  = (btn.Width = 36) * 16.0 / 9.0; // Width : Height = 9 : 16
                btn.Command = comms[i];
                toolbar.Items.Add(btn);

                StackPanel stack = new StackPanel();
                stack.Orientation = Orientation.Vertical;
                btn.Content       = stack;

                Image img = new Image();
                img.Source  = new BitmapImage(new Uri($"pack://application:,,/Images/{strImages[i]}"));
                img.Stretch = Stretch.Uniform;
                stack.Children.Add(img);

                TextBlock txtblk = new TextBlock();
                txtblk.Text = comms[i].Text;
                txtblk.HorizontalAlignment = HorizontalAlignment.Center;
                stack.Children.Add(txtblk);

                ToolTip tip = new ToolTip();
                tip.Content = comms[i].Text;
                btn.ToolTip = tip;

                this.CommandBindings.Add(new CommandBinding(comms[i], ToolBarButtonOnClick));
                //快捷键Ctrl+N,Ctrl+O,Ctrl+S,Ctrl+P,Ctrl+X,Ctrl+C,Ctrl+V,Delete也会触发对应的命令
            }

            txtBox.Focus();
        }
示例#21
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(MARC_Importer_Form));
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.progressBar1         = new System.Windows.Forms.ProgressBar();
     this.panel1               = new System.Windows.Forms.Panel();
     this.tabControl1          = new System.Windows.Forms.TabControl();
     this.tabPage2             = new System.Windows.Forms.TabPage();
     this.pnlConstants         = new System.Windows.Forms.Panel();
     this.step2Label           = new System.Windows.Forms.Label();
     this.step1Label           = new System.Windows.Forms.Label();
     this.browseButton         = new System.Windows.Forms.Button();
     this.sourceTextBox        = new System.Windows.Forms.TextBox();
     this.label3               = new System.Windows.Forms.Label();
     this.labelStatus          = new System.Windows.Forms.Label();
     this.step4Label           = new System.Windows.Forms.Label();
     this.mainPanel            = new System.Windows.Forms.Panel();
     this.folderTextBox        = new System.Windows.Forms.TextBox();
     this.browse2Button        = new System.Windows.Forms.Button();
     this.folderLabel          = new System.Windows.Forms.Label();
     this.step3Label           = new System.Windows.Forms.Label();
     this.executeButton        = new SobekCM.METS_Editor.Forms.Round_Button();
     this.cancelButton         = new SobekCM.METS_Editor.Forms.Round_Button();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.helpPictureBox       = new System.Windows.Forms.PictureBox();
     this.titleLabel           = new System.Windows.Forms.Label();
     this.toolTip1             = new System.Windows.Forms.ToolTip(this.components);
     this.panel1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.mainPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.helpPictureBox)).BeginInit();
     this.SuspendLayout();
     //
     // openFileDialog1
     //
     this.openFileDialog1.Title = "MARC Source File";
     //
     // progressBar1
     //
     this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar1.Location = new System.Drawing.Point(27, 568);
     this.progressBar1.Maximum  = 10;
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(541, 13);
     this.progressBar1.Step     = 1;
     this.progressBar1.TabIndex = 0;
     this.progressBar1.Visible  = false;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.Transparent;
     this.panel1.Controls.Add(this.tabControl1);
     this.panel1.Controls.Add(this.step2Label);
     this.panel1.Location = new System.Drawing.Point(3, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(574, 335);
     this.panel1.TabIndex = 29;
     //
     // tabControl1
     //
     this.tabControl1.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.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Font          = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tabControl1.Location      = new System.Drawing.Point(13, 32);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(550, 300);
     this.tabControl1.TabIndex      = 4;
     //
     // tabPage2
     //
     this.tabPage2.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.tabPage2.Controls.Add(this.pnlConstants);
     this.tabPage2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     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(542, 274);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Constants";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // pnlConstants
     //
     this.pnlConstants.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.pnlConstants.AutoScroll  = true;
     this.pnlConstants.BackColor   = System.Drawing.SystemColors.ControlLight;
     this.pnlConstants.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlConstants.Location    = new System.Drawing.Point(6, 6);
     this.pnlConstants.Name        = "pnlConstants";
     this.pnlConstants.Size        = new System.Drawing.Size(532, 262);
     this.pnlConstants.TabIndex    = 0;
     //
     // step2Label
     //
     this.step2Label.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.step2Label.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.step2Label.Location  = new System.Drawing.Point(4, 8);
     this.step2Label.Name      = "step2Label";
     this.step2Label.Size      = new System.Drawing.Size(544, 21);
     this.step2Label.TabIndex  = 28;
     this.step2Label.Text      = "Step 2: Select constants to apply to resulting METS files";
     //
     // step1Label
     //
     this.step1Label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.step1Label.BackColor = System.Drawing.Color.Transparent;
     this.step1Label.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.step1Label.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.step1Label.Location  = new System.Drawing.Point(7, 4);
     this.step1Label.Name      = "step1Label";
     this.step1Label.Size      = new System.Drawing.Size(574, 23);
     this.step1Label.TabIndex  = 8;
     this.step1Label.Text      = "Step 1: Select the source data file to import MARC files.";
     //
     // browseButton
     //
     this.browseButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.browseButton.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.browseButton.Location = new System.Drawing.Point(491, 30);
     this.browseButton.Name     = "browseButton";
     this.browseButton.Size     = new System.Drawing.Size(75, 24);
     this.browseButton.TabIndex = 0;
     this.browseButton.Text     = "SELECT";
     this.browseButton.UseVisualStyleBackColor = true;
     this.browseButton.Click += new System.EventHandler(this.browseButton_Click);
     //
     // sourceTextBox
     //
     this.sourceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.sourceTextBox.Font       = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sourceTextBox.Location   = new System.Drawing.Point(69, 32);
     this.sourceTextBox.Name       = "sourceTextBox";
     this.sourceTextBox.Size       = new System.Drawing.Size(416, 20);
     this.sourceTextBox.TabIndex   = 1;
     this.sourceTextBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.directoryTextBox_MouseDown);
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.Color.Transparent;
     this.label3.Font      = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location  = new System.Drawing.Point(32, 30);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(48, 23);
     this.label3.TabIndex  = 35;
     this.label3.Text      = "File:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // labelStatus
     //
     this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.labelStatus.BackColor = System.Drawing.Color.Transparent;
     this.labelStatus.Font      = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelStatus.Location  = new System.Drawing.Point(26, 535);
     this.labelStatus.Name      = "labelStatus";
     this.labelStatus.Size      = new System.Drawing.Size(372, 23);
     this.labelStatus.TabIndex  = 37;
     this.labelStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // step4Label
     //
     this.step4Label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.step4Label.BackColor = System.Drawing.Color.Transparent;
     this.step4Label.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.step4Label.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.step4Label.Location  = new System.Drawing.Point(7, 448);
     this.step4Label.Name      = "step4Label";
     this.step4Label.Size      = new System.Drawing.Size(544, 29);
     this.step4Label.TabIndex  = 38;
     this.step4Label.Text      = "Step 4: Click the Execute button";
     //
     // mainPanel
     //
     this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.mainPanel.BackColor   = System.Drawing.Color.White;
     this.mainPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.mainPanel.Controls.Add(this.folderTextBox);
     this.mainPanel.Controls.Add(this.browse2Button);
     this.mainPanel.Controls.Add(this.browseButton);
     this.mainPanel.Controls.Add(this.folderLabel);
     this.mainPanel.Controls.Add(this.step3Label);
     this.mainPanel.Controls.Add(this.sourceTextBox);
     this.mainPanel.Controls.Add(this.step4Label);
     this.mainPanel.Controls.Add(this.panel1);
     this.mainPanel.Controls.Add(this.step1Label);
     this.mainPanel.Controls.Add(this.label3);
     this.mainPanel.Location = new System.Drawing.Point(12, 48);
     this.mainPanel.Name     = "mainPanel";
     this.mainPanel.Size     = new System.Drawing.Size(582, 478);
     this.mainPanel.TabIndex = 39;
     //
     // folderTextBox
     //
     this.folderTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.folderTextBox.Enabled  = false;
     this.folderTextBox.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.folderTextBox.Location = new System.Drawing.Point(105, 421);
     this.folderTextBox.Name     = "folderTextBox";
     this.folderTextBox.Size     = new System.Drawing.Size(380, 20);
     this.folderTextBox.TabIndex = 55;
     //
     // browse2Button
     //
     this.browse2Button.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.browse2Button.Enabled  = false;
     this.browse2Button.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.browse2Button.Location = new System.Drawing.Point(491, 419);
     this.browse2Button.Name     = "browse2Button";
     this.browse2Button.Size     = new System.Drawing.Size(75, 24);
     this.browse2Button.TabIndex = 54;
     this.browse2Button.Text     = "SELECT";
     this.browse2Button.UseVisualStyleBackColor = true;
     this.browse2Button.Click += new System.EventHandler(this.browse2Button_Click);
     //
     // folderLabel
     //
     this.folderLabel.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.folderLabel.BackColor = System.Drawing.Color.Transparent;
     this.folderLabel.Font      = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.folderLabel.ForeColor = System.Drawing.SystemColors.GrayText;
     this.folderLabel.Location  = new System.Drawing.Point(24, 419);
     this.folderLabel.Name      = "folderLabel";
     this.folderLabel.Size      = new System.Drawing.Size(93, 23);
     this.folderLabel.TabIndex  = 56;
     this.folderLabel.Text      = "Destination:";
     this.folderLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // step3Label
     //
     this.step3Label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.step3Label.BackColor = System.Drawing.Color.Transparent;
     this.step3Label.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.step3Label.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.step3Label.Location  = new System.Drawing.Point(7, 394);
     this.step3Label.Name      = "step3Label";
     this.step3Label.Size      = new System.Drawing.Size(544, 29);
     this.step3Label.TabIndex  = 53;
     this.step3Label.Text      = "Step 3: Select destination folder for METS files";
     //
     // executeButton
     //
     this.executeButton.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.executeButton.BackColor       = System.Drawing.Color.Transparent;
     this.executeButton.Button_Enabled  = true;
     this.executeButton.Button_Text     = "EXECUTE";
     this.executeButton.Button_Type     = SobekCM.METS_Editor.Forms.Round_Button.Button_Type_Enum.Forward;
     this.executeButton.Font            = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.executeButton.Location        = new System.Drawing.Point(494, 532);
     this.executeButton.Name            = "executeButton";
     this.executeButton.Size            = new System.Drawing.Size(100, 26);
     this.executeButton.TabIndex        = 43;
     this.executeButton.Button_Pressed += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.BackColor       = System.Drawing.Color.Transparent;
     this.cancelButton.Button_Enabled  = true;
     this.cancelButton.Button_Text     = "CANCEL";
     this.cancelButton.Button_Type     = SobekCM.METS_Editor.Forms.Round_Button.Button_Type_Enum.Backward;
     this.cancelButton.Font            = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cancelButton.Location        = new System.Drawing.Point(379, 532);
     this.cancelButton.Name            = "cancelButton";
     this.cancelButton.Size            = new System.Drawing.Size(100, 26);
     this.cancelButton.TabIndex        = 42;
     this.cancelButton.Button_Pressed += new System.EventHandler(this.cancelButton_Click);
     //
     // folderBrowserDialog1
     //
     this.folderBrowserDialog1.Description = "Select destination folder for METS files";
     //
     // helpPictureBox
     //
     this.helpPictureBox.Anchor                = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.helpPictureBox.BackColor             = System.Drawing.Color.Transparent;
     this.helpPictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.helpPictureBox.Cursor                = System.Windows.Forms.Cursors.Hand;
     this.helpPictureBox.Image    = global::SobekCM.METS_Editor.Properties.Resources.help_button1;
     this.helpPictureBox.Location = new System.Drawing.Point(570, 12);
     this.helpPictureBox.Name     = "helpPictureBox";
     this.helpPictureBox.Size     = new System.Drawing.Size(24, 24);
     this.helpPictureBox.TabIndex = 45;
     this.helpPictureBox.TabStop  = false;
     this.toolTip1.SetToolTip(this.helpPictureBox, "Get online help regarding this function");
     this.helpPictureBox.Click += new System.EventHandler(this.helpPictureBox_Click);
     //
     // titleLabel
     //
     this.titleLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.titleLabel.BackColor = System.Drawing.Color.Transparent;
     this.titleLabel.Font      = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.titleLabel.ForeColor = System.Drawing.Color.MediumBlue;
     this.titleLabel.Location  = new System.Drawing.Point(39, 5);
     this.titleLabel.Name      = "titleLabel";
     this.titleLabel.Size      = new System.Drawing.Size(519, 42);
     this.titleLabel.TabIndex  = 44;
     this.titleLabel.Text      = "MARC21 Batch Processor";
     this.titleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // MARC_Importer_Form
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
     this.ClientSize        = new System.Drawing.Size(606, 592);
     this.Controls.Add(this.helpPictureBox);
     this.Controls.Add(this.titleLabel);
     this.Controls.Add(this.executeButton);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.labelStatus);
     this.Controls.Add(this.mainPanel);
     this.Controls.Add(this.progressBar1);
     this.Font          = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MaximumSize   = new System.Drawing.Size(1000, 630);
     this.MinimumSize   = new System.Drawing.Size(622, 630);
     this.Name          = "MARC_Importer_Form";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "METS Editor - MARC21 Batch Processor";
     this.panel1.ResumeLayout(false);
     this.tabControl1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.mainPanel.ResumeLayout(false);
     this.mainPanel.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.helpPictureBox)).EndInit();
     this.ResumeLayout(false);
 }
        public static bool CustomValidate(Control oFrm, ToolTip cTool)
        {
            System.Windows.Forms.DateTimePicker oCntDTPicker;
            string  sType;
            Control oCntl  = oFrm.GetNextControl(oFrm, true);
            bool    bError = false;

            while (oCntl != null)
            {
                //foreach(Control oCntl in oFrm.Controls)

                sType = oCntl.GetType().ToString().ToLower();
                switch (sType)
                {
                case "Forest.Forestlibrary.imphonetextbox":
                {
                    if (oCntl.Name.ToLower().IndexOf("_optional", 0) >= 0)
                    {
                        if (!UtilityFunctions.IsValidPhoneNumber(oCntl.Text) && oCntl.Text != "")
                        {
                            bError = true;
                            break;
                        }
                    }
                    else
                    {
                        if (!UtilityFunctions.IsValidPhoneNumber(oCntl.Text) || oCntl.Text.Trim() == "")
                        {
                            bError = true;
                            break;
                        }
                    }
                    break;
                }

                case "Forest.Forestlibrary.imdatetimepicker":
                {
                    if (oCntl.Name.ToLower().IndexOf("_optional", 0) >= 0)
                    {
                        if (!UtilityFunctions.IsDate(oCntl.Text) && oCntl.Text != "")
                        {
                            bError = true;
                            break;
                        }
                    }
                    else
                    {
                        if (!UtilityFunctions.IsDate(oCntl.Text) || oCntl.Text.Trim() == "")
                        {
                            bError = true;
                            break;
                        }
                    }
                    break;
                }

                case "system.windows.forms.textbox":
                {
                    if (oCntl.Enabled && oCntl.Visible)
                    {
                        ///////////////////Text box checking/////////////////////////////////////
                        //optional entry field
                        //oCntl.Text = oCntl.Text.ToUpper();
                        if (oCntl.Name.ToLower().IndexOf("_optional", 0) >= 0)
                        {
                            //Nothing will be done for the optional fields
                            //if(the optional field is a Positive number field
                            if (oCntl.Name.ToLower().IndexOf("_pnum", 0) >= 0)
                            {
                                if (oCntl.Text.Trim() != "" && !UtilityFunctions.IsPositiveNumber(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                            }    //number field
                            else if (oCntl.Name.ToLower().IndexOf("_num", 0) >= 0)
                            {
                                if (oCntl.Text.Trim() != "" && !UtilityFunctions.IsNumeric(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                            }    //Percentage number field
                            else if (oCntl.Name.ToLower().IndexOf("_percent", 0) >= 0)
                            {
                                if (oCntl.Text.Trim() != "" && (!UtilityFunctions.IsPositiveNumber(oCntl.Text) || UtilityFunctions.ValueOf(oCntl.Text) > 100))
                                {
                                    bError = true;
                                    break;
                                }
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_wnum", 0) >= 0)
                            {
                                if (oCntl.Text.Trim() != "" && !UtilityFunctions.IsWholeNumeric(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                                //Percentage number field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_date", 0) >= 0)
                            {
                                if (oCntl.Text.Trim() != "" && !UtilityFunctions.IsDate(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                            }
                        }
                        else
                        {
                            if (oCntl.Name.IndexOf("SSN", 0) >= 0)
                            {
                                if ((oCntl.Text.Length != 11))
                                {
                                    bError = true;
                                }
                                //if((oCntl.Text.Length != 9 && oCntl.Text.Length != 8) || !UtilityFunctions.IsPositiveNumber(oCntl.Text))
                                //Email field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("email", 0) >= 0)
                            {
                                oCntl.Text = oCntl.Text.ToLower();
                                if (!UtilityFunctions.IsValidEmail(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                                //Positive number field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_pnum", 0) >= 0)
                            {
                                if (!UtilityFunctions.IsPositiveNumber(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                                //number field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_num", 0) >= 0)
                            {
                                if (!UtilityFunctions.IsNumeric(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                                //Percentage number field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_wnum", 0) >= 0)
                            {
                                if (!UtilityFunctions.IsWholeNumeric(oCntl.Text))
                                {
                                    bError = true;
                                    break;
                                }
                                //Percentage number field
                            }
                            else if (oCntl.Name.ToLower().IndexOf("_percent", 0) >= 0)
                            {
                                if (!UtilityFunctions.IsPositiveNumber(oCntl.Text) || UtilityFunctions.ValueOf(oCntl.Text) > 100)
                                {
                                    bError = true;
                                    break;
                                }
                            }
                            //Normal Field (if(nothing is specifed we assume it as required field)
                            else if (oCntl.Text.Trim() == "")
                            {
                                bError = true;
                                break;
                            }
                        }
                    }

                    /////////////////End of Text box checking////////////////////////////////


                    break;
                }

                case "system.windows.forms.combobox":
                {
                    ComboBox oCombo;

                    oCombo = (ComboBox)oCntl;

                    if (oCntl.Enabled && oCntl.Visible)
                    {
                        if (oCntl.Name.ToLower().IndexOf("_optional", 0) >= 0)
                        {
                            //Nothing will be done for the optional fields
                            //if u want to enhance you code that part here
                            //  Or (oCntl.Text = "--Please select--")
                        }
                        else if (oCntl.Text == "" || Convert.ToInt32(oCombo.SelectedIndex) <= 0)
                        {
                            bError = true;
                            break;
                        }
                    }
                    break;
                }
                //case "system.windows.forms.checkbox":
                //    {
                //        CheckBox oCheck;

                //        oCheck = (CheckBox)oCntl;

                //        if (oCntl.Enabled && oCntl.Visible)
                //        {

                //            if (oCheck.Checked)
                //            {
                //                //Nothing will be done for the optional fields
                //                //if u want to enhance you code that part here
                //                //  Or (oCntl.Text = "--Please select--")
                //            }
                //            else if (!oCheck.Checked)
                //            {
                //                bError = true;
                //                break;
                //            }


                //        }
                //        break;
                //    }
                case "system.windows.forms.datetimepicker":
                {
                    oCntDTPicker = (System.Windows.Forms.DateTimePicker)oCntl;
                    if (oCntDTPicker.Enabled && oCntDTPicker.Visible)
                    {
                        if (oCntDTPicker.Name.ToLower().IndexOf("_optional", 0) >= 0)
                        {
                            //Nothing will be done for the optional fields
                            //if u want to enhance you code that part here

                            //Normal Date picker control(if nothing is specifed we assume it as required field)
                            //UPGRADE_WARNING: Couldn't resolve default property of object oCntl.Value. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"'
                        }
                        else if (oCntDTPicker.ShowCheckBox && !oCntDTPicker.Checked)
                        {
                            bError = true;
                            break;
                        }
                    }
                    break;
                }
                }
                if (bError)
                {
                    break;
                }
                else
                {
                    oCntl = oFrm.GetNextControl(oCntl, true);
                }
            }
            cTool.ShowAlways = false;
            if (bError && oCntl != null)
            {
                string sMsg = "Please enter a value.";
                if (oCntl.Tag != null && oCntl.Tag.ToString().Length > 0)
                {
                    sMsg = oCntl.Tag.ToString();
                }
                if (cTool != null)
                {
                    cTool.ToolTipTitle = "SSCRM Application";
                    cTool.UseFading    = true;
                    cTool.UseAnimation = true;
                    cTool.IsBalloon    = true;

                    cTool.ShowAlways   = true;
                    cTool.AutoPopDelay = 5000;
                    cTool.InitialDelay = 1000;
                    cTool.ReshowDelay  = 500;
                    cTool.SetToolTip(oCntl, "Required information missing");
                }
                if (cTool != null)
                {
                    cTool.Show(sMsg, oCntl);
                }
                else
                {
                    MessageBox.Show(sMsg, "SSCRM Application", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

                oCntl.Focus();
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#23
0
        void initCommonControls()
        {
            int i, j;
            int index;
            int resIndex;
            int x, y;
            int x0, y0;
            int gapX, gapY;
            int pic2GapX;
            int width, height;
            int numOfLines;
            int numOfProcess;

            int[] buttonY      = { 85, 100, 103, 124, 124, 134 };
            int[] buttonWidth  = { 78, 86, 89, 89, 89, 100 };
            int[] buttonHeight = { 22, 27, 32, 33, 34, 36 };

            //production line motion PICs
            int[] pic1Width  = { 842, 842, 842, 1052, 1052, 1052 };
            int[] pic1Height = { 80, 80, 80, 99, 99, 99 };

            //progresss bar for dispatch
            int[] pic2Width  = { 88, 100, 100, 114, 114, 104 };
            int[] pic2Height = { 10, 12, 12, 14, 14, 14 };

            float[,] titleFontSize =
            {
                { 21F, 24F, 27F, 28F, 30F, 32F },
                { 19F, 22F, 24F, 25F, 26F, 28F },
                { 15F, 16F, 18F, 19F, 20F, 24F },
            };

            float[,] buttonFontSize =
            {
                { 8F, 8F, 9F, 9F, 10F, 12F },
                { 7F, 7F, 7F, 7F,  8F, 10F },
                { 6F, 6F, 6F, 7F,  7F,  8F },
            };
            int[] resIndexTableX = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, };
            int[] resIndexTableY = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, };

            int[] labelY = { 28, 30, 30, 35, 37, 42 };

            int[] offsetY = { 10, 10, 8, 8, 10, 0 };
            //buttons stand for machines
            Button[] bArray = { button1,  button2,  button3,  button4,  button5,  button6,  button7,  button8,  button9, button10,
                                button11, button14, button13, button15, button21, button22, button23, button24, };

            //pictures stand for prodction lines
            PictureBox[] picArray1 = { pictureBox1, pictureBox2, pictureBox3, pictureBox5, pictureBox8 };

            Rectangle rect = new Rectangle();

            numOfProcess = 4;
            numOfLines   = 5;
            notVisible1  = 11;
            notVisible2  = 13;

            rect   = Screen.GetWorkingArea(this);
            width  = rect.Width;
            height = rect.Height;

            resIndex = gVariable.resolutionLevel;
            x0       = (width - pic1Width[resIndex]) / 2;
            y0       = buttonY[resIndex];

            gapX = pic1Width[resIndex] / numOfProcess;
            gapY = (height - y0 - 10) / numOfLines + offsetY[resIndex];

            for (i = 0, j = 0; i < resIndexTableX.Length; j++, i++)
            {
                if (i == notVisible1 || i == notVisible2)  //these 2 machine dosenot exist
                {
                    j--;
                    bArray[i].Visible = false;
                }

                x = x0 + resIndexTableX[i] * gapX + 5;
                y = y0 + resIndexTableY[i] * gapY;
                bArray[i].Location = new System.Drawing.Point(x, y);
                bArray[i].Size     = new System.Drawing.Size(buttonWidth[resIndex], buttonHeight[resIndex]);

                index          = gVariable.allMachineIDForZihua[j];
                bArray[i].Text = machineNameArray[index - 1];

                bArray[i].Font = new System.Drawing.Font("Microsoft Sans Serif", buttonFontSize[gVariable.dpiValue, resIndex], System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                buttonArray[i] = bArray[i];

                tipArray[i] = new ToolTip();

                tipArray[i].AutoPopDelay = 10000;
                tipArray[i].InitialDelay = 100;
                tipArray[i].ReshowDelay  = 500;
                tipArray[i].ShowAlways   = true;
            }

            for (i = 0; i < picArray1.Length; i++)
            {
                x = x0;
                y = y0 + i * gapY + buttonHeight[resIndex] + 3;
                picArray1[i].Location = new System.Drawing.Point(x, y);
                picArray1[i].Size     = new System.Drawing.Size(pic1Width[resIndex], pic1Height[resIndex]);

                pictureBoxArray1[i] = picArray1[i];
            }

            pic2GapX = (pic1Width[resIndex] / numOfProcess - buttonWidth[resIndex] - pic2Width[resIndex]) / 5;
            for (i = 0; i < percentageRectArray.Length; i++)
            {
                if (i == notVisible1 || i == notVisible2)
                {
                    continue;
                }

                percentageRectArray[i].X = x0 + resIndexTableX[i] * gapX + pic2GapX + buttonWidth[resIndex] + 5;
                percentageRectArray[i].Y = y0 + resIndexTableY[i] * gapY + buttonHeight[resIndex] - pic2Height[resIndex] - 4;

                backupRectangleY[i] = percentageRectArray[i].Y;

                percentageRectArray[i].Width  = pic2Width[resIndex];
                percentageRectArray[i].Height = pic2Height[resIndex];
            }

            //resIndex = gVariable.resolutionLevel;
            label6.Font     = new System.Drawing.Font("Microsoft Sans Serif", titleFontSize[gVariable.dpiValue, resIndex], System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            x               = (width - label6.Size.Width) / 2;
            y               = labelY[resIndex];
            label6.Location = new System.Drawing.Point(x, y);
        }
 public static bool ClearValidate(Control oFrm, ToolTip cTool)
 {
     return(false);
 }
示例#25
0
 void InitControls()
 {
     toolTip1 = new ToolTip(components);
 }
 /// <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(Form1));
     this.toolTip1         = new System.Windows.Forms.ToolTip(this.components);
     this.button1          = new Syncfusion.Windows.Forms.ButtonAdv();
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.label2           = new System.Windows.Forms.Label();
     this.label4           = new System.Windows.Forms.Label();
     this.textBox1         = new System.Windows.Forms.TextBox();
     this.label5           = new System.Windows.Forms.Label();
     this.comboBox1        = new System.Windows.Forms.ComboBox();
     this.wordDocRadioBtn  = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.wordDocxRadioBtn = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance         = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button1.BeforeTouchSize    = new System.Drawing.Size(108, 23);
     this.button1.BorderStyleAdv     = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.Dashed;
     this.button1.ComboEditBackColor = System.Drawing.Color.Silver;
     this.button1.Font                    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor               = System.Drawing.Color.White;
     this.button1.IsBackStageButton       = false;
     this.button1.KeepFocusRectangle      = false;
     this.button1.Location                = new System.Drawing.Point(254, 249);
     this.button1.Name                    = "button1";
     this.button1.Office2007ColorScheme   = Syncfusion.Windows.Forms.Office2007Theme.Managed;
     this.button1.Size                    = new System.Drawing.Size(108, 23);
     this.button1.TabIndex                = 62;
     this.button1.Text                    = "Generate";
     this.button1.UseVisualStyle          = true;
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(374, 82);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 60;
     this.pictureBox1.TabStop  = false;
     //
     // label2
     //
     this.label2.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label2.Location  = new System.Drawing.Point(0, 85);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(363, 51);
     this.label2.TabIndex  = 68;
     this.label2.Text      = "Click the button to view the generated Word document. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document.";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(9, 186);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(68, 16);
     this.label4.TabIndex = 106;
     this.label4.Text     = "Password";
     //
     // textBox1
     //
     this.textBox1.Font         = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox1.Location     = new System.Drawing.Point(130, 180);
     this.textBox1.Name         = "textBox1";
     this.textBox1.PasswordChar = '*';
     this.textBox1.Size         = new System.Drawing.Size(198, 26);
     this.textBox1.TabIndex     = 105;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(6, 150);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(103, 16);
     this.label5.TabIndex = 107;
     this.label5.Text     = "Protection Type";
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Items.AddRange(new object[] {
         "AllowOnlyFormFields",
         "AllowOnlyComments",
         "AllowOnlyRevisions",
         "AllowOnlyReading"
     });
     this.comboBox1.Location = new System.Drawing.Point(130, 149);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(198, 21);
     this.comboBox1.TabIndex = 108;
     //
     // worddocRadioBtn
     //
     this.wordDocRadioBtn.BeforeTouchSize = new System.Drawing.Size(50, 20);
     this.wordDocRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.wordDocRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocRadioBtn.Location        = new System.Drawing.Point(31, 18);
     this.wordDocRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocRadioBtn.Name            = "wordDocRadioBtn";
     this.wordDocRadioBtn.Size            = new System.Drawing.Size(50, 20);
     this.wordDocRadioBtn.TabIndex        = 44;
     this.wordDocRadioBtn.TabStop         = false;
     this.wordDocRadioBtn.Text            = "DOC";
     this.wordDocRadioBtn.ThemesEnabled   = true;
     //
     // worddocxRadioBtn
     //
     this.wordDocxRadioBtn.BeforeTouchSize = new System.Drawing.Size(56, 20);
     this.wordDocxRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocxRadioBtn.Checked         = true;
     this.wordDocxRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.wordDocxRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocxRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocxRadioBtn.Location        = new System.Drawing.Point(128, 18);
     this.wordDocxRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocxRadioBtn.Name            = "wordDocxRadioBtn";
     this.wordDocxRadioBtn.Size            = new System.Drawing.Size(56, 20);
     this.wordDocxRadioBtn.TabIndex        = 103;
     this.wordDocxRadioBtn.Text            = "DOCX";
     this.wordDocxRadioBtn.ThemesEnabled   = true;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.wordDocxRadioBtn);
     this.groupBox1.Controls.Add(this.wordDocRadioBtn);
     this.groupBox1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(12, 234);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(215, 42);
     this.groupBox1.TabIndex = 109;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Save As";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
     this.BackColor         = System.Drawing.Color.White;
     this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.ClientSize        = new System.Drawing.Size(374, 297);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.pictureBox1);
     this.DropShadow      = true;
     this.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Document Protection";
     this.Load           += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#27
0
        /// <summary>
		/// Shows tooltip for this item.
		/// </summary>
		public virtual void ShowToolTip()
		{
			if(m_DesignMode)
				return;

			if(m_Visible && m_Displayed && !m_Expanded)
			{
				IOwner owner=this.GetOwner() as IOwner;
				if(owner!=null && !owner.ShowToolTips || !this.ShowToolTips)
					return;
                Control container = this.ContainerControl as Control;
                if (container is Bar && !((Bar)container).ShowToolTips)
					return;

                if (container is MenuPanel && !((MenuPanel)container).ShowToolTips)
					return;

				OnTooltip(true);
				if(m_Tooltip!="")
				{
					if(m_ToolTipWnd==null)
						m_ToolTipWnd=new ToolTip();
                    m_ToolTipWnd.Style = EffectiveStyle;
					m_ToolTipWnd.Text=m_Tooltip;
					if(owner!=null && owner.ShowShortcutKeysInToolTips && m_Shortcuts!=null && m_Shortcuts.Count>0)
                        m_ToolTipWnd.Text+=(" ("+GetTooltipShortcutString()+")");
					IOwnerItemEvents ownerEvents=this.GetIOwnerItemEvents();
					if(ownerEvents!=null)
						ownerEvents.InvokeToolTipShowing(this,new EventArgs());

                    m_ToolTipWnd.ReferenceRectangle = ScreenRectangle;

                    OnToolTipVisibleChanged(new EventArgs());
					m_ToolTipWnd.ShowToolTip();
				}
			}
		}
示例#28
0
 public FormKrouzkyMain()
 {
     this.InitializeComponent();
     this.toolTip_        = new ToolTip();
     this.selecteDateTime = this.curDateTime = DateTime.Today;
 }
示例#29
0
 private void InitializeComponent()
 {
     this.components = (IContainer)new Container();
     ResourceManager resourceManager = new ResourceManager(typeof(ToolBar));
     this.chartToolBar = new System.Windows.Forms.ToolBar();
     this.btnCursor = new ToolBarButton();
     this.btnCrosshair = new ToolBarButton();
     this.toolBarButton3 = new ToolBarButton();
     this.btnZoomIn = new ToolBarButton();
     this.btnZoomOut = new ToolBarButton();
     this.toolBarButton6 = new ToolBarButton();
     this.btnLinear = new ToolBarButton();
     this.btnLog = new ToolBarButton();
     this.toolBarButton9 = new ToolBarButton();
     this.btnWholeRange = new ToolBarButton();
     this.btnTrailing = new ToolBarButton();
     this.btnFixed = new ToolBarButton();
     this.toolBarButton2 = new ToolBarButton();
     this.btnCandle = new ToolBarButton();
     this.btnBar = new ToolBarButton();
     this.btnLine = new ToolBarButton();
     this.btnPnF = new ToolBarButton();
     this.imageList = new ImageList(this.components);
     this.toolTip = new ToolTip(this.components);
     this.SuspendLayout();
     this.chartToolBar.Appearance = ToolBarAppearance.Flat;
     this.chartToolBar.Buttons.AddRange(new ToolBarButton[17]
     {
         this.btnCursor,
         this.btnCrosshair,
         this.toolBarButton3,
         this.btnZoomIn,
         this.btnZoomOut,
         this.toolBarButton6,
         this.btnLinear,
         this.btnLog,
         this.toolBarButton9,
         this.btnWholeRange,
         this.btnTrailing,
         this.btnFixed,
         this.toolBarButton2,
         this.btnCandle,
         this.btnBar,
         this.btnLine,
         this.btnPnF
     });
     this.chartToolBar.Dock = DockStyle.Fill;
     this.chartToolBar.DropDownArrows = true;
     this.chartToolBar.ImageList = this.imageList;
     this.chartToolBar.Location = new Point(0, 0);
     this.chartToolBar.Name = "chartToolBar";
     this.chartToolBar.ShowToolTips = true;
     this.chartToolBar.Size = new Size(408, 28);
     this.chartToolBar.TabIndex = 0;
     this.chartToolBar.ButtonClick += new ToolBarButtonClickEventHandler(this.chartToolBar_ButtonClick);
     this.btnCursor.ImageIndex = 7;
     this.btnCursor.ToolTipText = "Cusror";
     this.btnCrosshair.ImageIndex = 8;
     this.btnCrosshair.ToolTipText = "Crosshair";
     this.toolBarButton3.Style = ToolBarButtonStyle.Separator;
     this.btnZoomIn.ImageIndex = 5;
     this.btnZoomIn.ToolTipText = "Zoom In";
     this.btnZoomOut.ImageIndex = 6;
     this.btnZoomOut.ToolTipText = "Zoom Out";
     this.toolBarButton6.Style = ToolBarButtonStyle.Separator;
     this.btnLinear.ImageIndex = 9;
     this.btnLinear.ToolTipText = "Linear Scale";
     this.btnLog.ImageIndex = 10;
     this.btnLog.ToolTipText = "Log Scale";
     this.toolBarButton9.Style = ToolBarButtonStyle.Separator;
     this.btnWholeRange.ImageIndex = 17;
     this.btnWholeRange.ToolTipText = "Whole range mode";
     this.btnWholeRange.Visible = false;
     this.btnTrailing.ImageIndex = 19;
     this.btnTrailing.ToolTipText = "Trailing mode";
     this.btnFixed.ImageIndex = 18;
     this.btnFixed.ToolTipText = "Fixed mode";
     this.toolBarButton2.Style = ToolBarButtonStyle.Separator;
     this.btnCandle.ImageIndex = 11;
     this.btnCandle.ToolTipText = "Candle";
     this.btnBar.ImageIndex = 12;
     this.btnBar.ToolTipText = "Bar";
     this.btnLine.ImageIndex = 13;
     this.btnLine.ToolTipText = "Line";
     this.btnPnF.ImageIndex = 20;
     this.btnPnF.ToolTipText = "Point And Figure";
     this.imageList.ImageSize = new Size(16, 16);
     this.imageList.ImageStream = (ImageListStreamer)resourceManager.GetObject("imageList.ImageStream");
     this.imageList.TransparentColor = Color.Transparent;
     this.Controls.Add((Control)this.chartToolBar);
     this.Name = "ToolBar";
     this.Size = new Size(408, 32);
     this.ResumeLayout(false);
 }
示例#30
0
		protected override void Dispose(bool disposing) {
			if (disposing) {
				if (parent != null)
					parent.Remove(this);
				else if (Manager != null)
					Manager.Remove(this);
				if (Manager.OrderList != null)
					Manager.OrderList.Remove(this);

				// Possibly we added the menu to another parent than this control, 
				// so we dispose it manually, beacause in logic it belongs to this control.        
				if (contextMenu != null) {
					contextMenu.Dispose();
					contextMenu = null;
				}

				// Recursively disposing all controls. The collection might change from its children, 
				// so we check it on count greater than zero.
				if (controls != null) {
					int c = controls.Count;
					for (int i = 0; i < c; i++) {
						if (controls.Count > 0) {
							controls[0].Dispose();
						}
					}
				}

				// Disposes tooltip owned by Manager        
				if (toolTip != null && !Manager.Disposing) {
					toolTip.Dispose();
					toolTip = null;
				}

				// Removing this control from the global stack.
				Stack.Remove(this);

				if (target != null) {
					target.Dispose();
					target = null;
				}
			}
			base.Dispose(disposing);
		}
示例#31
0
        private static Panel CreateViewRules([NotNull] FormSparseWorkingCopyViewModel sparse, [NotNull] ToolTip tooltip, [NotNull] IGitUICommandsSource commandsSource)
        {
            // Label
            var label1 = new Label {
                AutoSize = true, Text = Globalized.Strings.SpecifyTheRulesForIncludingOrExcludingFilesAndDirectories.Text, Dock = DockStyle.Top, Padding = new Padding(10, 5, 10, 0)
            };
            var label2 = new Label {
                AutoSize = true, Text = Globalized.Strings.SpecifyTheRulesForIncludingOrExcludingFilesAndDirectoriesLine2.Text, Dock = DockStyle.Top, Padding = new Padding(25, 3, 10, 3), ForeColor = SystemColors.GrayText
            };

            sparse.PropertyChanged += delegate { label1.Visible = label2.Visible = sparse.IsSparseCheckoutEnabled; };

            // Text editor
            var editor = new FileViewer {
                Dock = DockStyle.Fill, UICommandsSource = commandsSource, IsReadOnly = false
            };

            editor.TextLoaded += (sender, args) => sparse.SetRulesTextAsOnDisk(editor.GetText());
            try
            {
                FileInfo sparseFile = sparse.GetPathToSparseCheckoutFile();
                if (sparseFile.Exists)
                {
                    editor.ViewFileAsync(sparseFile.FullName);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ActiveForm, Globalized.Strings.CannotLoadTheTextOfTheSparseFile.Text + "\n\n" + ex.Message, Globalized.Strings.SparseWorkingCopy.Text + " – " + Globalized.Strings.LoadFile.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            editor.TextChanged += (sender, args) => sparse.RulesText = editor.GetText() ?? "";
            tooltip.SetToolTip(editor, Globalized.Strings.EditsTheContentsOfTheGitInfoSparseCheckoutFile.Text);
            Control separator = CreateViewSeparator(DockStyle.Top);

            sparse.PropertyChanged += delegate { editor.Visible = separator.Visible = sparse.IsSparseCheckoutEnabled; };

            var panel = new Panel {
                Margin = Padding.Empty, Padding = Padding.Empty, Controls = { editor, separator, label2, label1 }, AutoSize = true, Dock = DockStyle.Fill
            };

            return(panel);
        }
示例#32
0
        public ChromiumWebBrowser()
        {
            if (!Cef.IsInitialized && !Cef.Initialize())
            {
                throw new InvalidOperationException("Cef::Initialize() failed");
            }

            BitmapFactory = new BitmapFactory();

            Cef.AddDisposable(this);
            Focusable        = true;
            FocusVisualStyle = null;
            IsTabStop        = true;

            Dispatcher.BeginInvoke((Action)(() => WebBrowser = this));

            Loaded += OnLoaded;

            GotKeyboardFocus  += OnGotKeyboardFocus;
            LostKeyboardFocus += OnLostKeyboardFocus;

            // Drag Drop events
            DragEnter += OnDragEnter;
            DragOver  += OnDragOver;
            DragLeave += OnDragLeave;
            Drop      += OnDrop;

            IsVisibleChanged += OnIsVisibleChanged;

            ToolTip            = toolTip = new ToolTip();
            toolTip.StaysOpen  = true;
            toolTip.Visibility = Visibility.Collapsed;
            toolTip.Closed    += OnTooltipClosed;

            BackCommand       = new DelegateCommand(this.Back, () => CanGoBack);
            ForwardCommand    = new DelegateCommand(this.Forward, () => CanGoForward);
            ReloadCommand     = new DelegateCommand(this.Reload, () => CanReload);
            PrintCommand      = new DelegateCommand(this.Print);
            ZoomInCommand     = new DelegateCommand(ZoomIn);
            ZoomOutCommand    = new DelegateCommand(ZoomOut);
            ZoomResetCommand  = new DelegateCommand(ZoomReset);
            ViewSourceCommand = new DelegateCommand(this.ViewSource);
            CleanupCommand    = new DelegateCommand(Dispose);
            StopCommand       = new DelegateCommand(this.Stop);
            CutCommand        = new DelegateCommand(this.Cut);
            CopyCommand       = new DelegateCommand(this.Copy);
            PasteCommand      = new DelegateCommand(this.Paste);
            SelectAllCommand  = new DelegateCommand(this.SelectAll);
            UndoCommand       = new DelegateCommand(this.Undo);
            RedoCommand       = new DelegateCommand(this.Redo);

            imageTransform           = new ScaleTransform();
            managedCefBrowserAdapter = new ManagedCefBrowserAdapter(this, true);

            disposables.Add(managedCefBrowserAdapter);
            disposables.Add(new DisposableEventWrapper(this, ActualHeightProperty, OnActualSizeChanged));
            disposables.Add(new DisposableEventWrapper(this, ActualWidthProperty, OnActualSizeChanged));

            ResourceHandlerFactory = new DefaultResourceHandlerFactory();
            BrowserSettings        = new BrowserSettings();

            PresentationSource.AddSourceChangedHandler(this, PresentationSourceChangedHandler);
        }
示例#33
0
        private static Panel CreateViewFooter([NotNull] FormSparseWorkingCopyViewModel sparse, [NotNull] ToolTip tooltip, [NotNull] out Button btnSave, [NotNull] out Button btnCancel)
        {
            var tableFooterButtons = new TableLayoutPanel {
                BackColor = SystemColors.ControlLightLight, Dock = DockStyle.Fill, AutoSize = true, AutoSizeMode = AutoSizeMode.GrowAndShrink, ColumnCount = 4, RowCount = 1, Margin = Padding.Empty, ColumnStyles = { new ColumnStyle(SizeType.Percent, 100) }, Padding = new Padding(10, 15, 10, 15), CellBorderStyle = TableLayoutPanelCellBorderStyle.None
            };

            CheckBox check;

            tableFooterButtons.Controls.Add(check = new CheckBox {
                Text = Globalized.Strings.RefreshWorkingCopyUsingTheCurrentSettingsAndRules.Text, Checked = sparse.IsRefreshWorkingCopyOnSave, AutoSize = true, Dock = DockStyle.Fill, Margin = Padding.Empty
            });
            check.CheckedChanged += delegate { sparse.IsRefreshWorkingCopyOnSave = check.Checked; };
            tooltip.SetToolTip(check, string.Format(Globalized.Strings.RefreshWorkingCopyCheckboxHint.Text, FormSparseWorkingCopyViewModel.RefreshWorkingCopyCommandName));

            tableFooterButtons.Controls.Add(btnSave = new Button {
                Width = 75, Height = 23, Text = Globalized.Strings.Save.Text, DialogResult = DialogResult.OK, Dock = DockStyle.Bottom, UseVisualStyleBackColor = true, Margin = Padding.Empty
            });

            tableFooterButtons.Controls.Add(new Control {
                Width = 10, Dock = DockStyle.Fill
            });

            tableFooterButtons.Controls.Add(btnCancel = new Button {
                Width = 75, Height = 23, Text = Globalized.Strings.Cancel.Text, DialogResult = DialogResult.Cancel, Dock = DockStyle.Bottom, UseVisualStyleBackColor = true, Margin = Padding.Empty
            });

            return(tableFooterButtons);
        }
示例#34
0
 // Use this for initialization
 void Start()
 {
     currentTip = null;
 }
示例#35
0
        private void InitToolTips()
        {
            ToolTip commandsTip = new ToolTip(components);

            commandsTip.SetToolTip(EditName,
                                   "The command name is used to connect commands with controls." + Environment.NewLine +
                                   "Unless you specify a Symbol name, this name is also used" + Environment.NewLine +
                                   "as the name of the constant for this command.");
            commandsTip.IsBalloon = false;
            //commandsTip.Popup += CommandsTip_Popup;
            commandsTip.SetToolTip(EditId,
                                   "A unique numeric identifier for the command (the value of" + Environment.NewLine +
                                   "the Symbol constant). Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditSymbol,
                                   "This is the name of the constant that will be generated to access" + Environment.NewLine +
                                   "this command. If not specified, the command Name is used.");
            commandsTip.SetToolTip(EditCaption, "The caption/label title for the command.");
            commandsTip.SetToolTip(EditCaptionId,
                                   "Numeric resource string identifier for the caption." + Environment.NewLine +
                                   "Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditCaptionSymbol,
                                   "Constant name for the resource identifier." + Environment.NewLine +
                                   "If not specified, it is automatically generated.");
            commandsTip.SetToolTip(EditDescription,
                                   "The label description for the command." + Environment.NewLine +
                                   "Is used when the command is displayed in the application menu.");
            commandsTip.SetToolTip(EditDescriptionId,
                                   "Numeric resource string identifier for the description." + Environment.NewLine +
                                   "Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditDescriptionSymbol,
                                   "Constant name for the resource identifier." + Environment.NewLine +
                                   "If not specified, it is automatically generated.");
            commandsTip.SetToolTip(EditTooltipTitle,
                                   "The tooltip title for the command." + Environment.NewLine +
                                   "(This is the bold caption of the tooltip)");
            commandsTip.SetToolTip(EditTooltipTitleId,
                                   "Numeric resource string identifier for the tooltip title." + Environment.NewLine +
                                   "Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditTooltipTitleSymbol,
                                   "Constant name for the resource identifier." + Environment.NewLine +
                                   "If not specified, it is automatically generated.");
            commandsTip.SetToolTip(EditTooltipDescription,
                                   "The tooltip description for the command." + Environment.NewLine +
                                   "(Is displayed below the tooltip title in the tooltip popup)");
            commandsTip.SetToolTip(EditTooltipDescriptionId,
                                   "Numeric resource string identifier for the tooltip description." + Environment.NewLine +
                                   "Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditTooltipDescriptionSymbol,
                                   "Constant name for the resource identifier." + Environment.NewLine +
                                   "If not specified, it is automatically generated.");
            commandsTip.SetToolTip(EditKeytip,
                                   "The keytip for the command. This is key sequence that is shown" + Environment.NewLine +
                                   "when the user pressed the Alt key to access ribbon controls.");
            commandsTip.SetToolTip(EditKeytipId,
                                   "Numeric resource string identifier for the keytip." + Environment.NewLine +
                                   "Use 0 for auto-generated identifiers.");
            commandsTip.SetToolTip(EditKeytipSymbol,
                                   "Constant name for the resource identifier." + Environment.NewLine +
                                   "If not specified, it is automatically generated.");
            commandsTip.SetToolTip(EditComment,
                                   "This text is placed as a comment in the *.h file" + Environment.NewLine +
                                   "containing the constant for this command.");
        }
示例#36
0
 private void btnMemoryRecall_MouseHover(object sender, EventArgs e)
 {
     newTip = new ToolTip();
     newTip.SetToolTip(btnMemoryRecall, "Shows the number from memory");
 }
示例#37
0
        private void InitializeComponent()
        {
            this.components = new Container();
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(WinFormPager));
            this.lblPager       = new Label();
            this.btnFirst       = new Button();
            this.imglstPager    = new ImageList(this.components);
            this.btnPrevious    = new Button();
            this.btnNext        = new Button();
            this.btnLast        = new Button();
            this.btnToPageIndex = new Button();
            this.txtToPageIndex = new TextBox();
            this.toolTipPager   = new ToolTip(this.components);
            //this.label3 = new Label();
            //this.label1 = new Label();
            this.panel1 = new Panel();
            base.SuspendLayout();
            //manager.ApplyResources(this.lblPager, "lblPager");
            this.lblPager.BackColor = Color.Transparent;
            this.lblPager.Name      = "lblPager";
            this.lblPager.AutoSize  = false;
            this.lblPager.TextAlign = ContentAlignment.MiddleLeft;
            this.lblPager.Dock      = DockStyle.Fill;
            //manager.ApplyResources(this.btnFirst, "btnFirst");
            this.btnFirst.BackColor = Color.Transparent;
            this.btnFirst.Cursor    = Cursors.Hand;
            this.btnFirst.FlatAppearance.BorderSize = 0;
            this.btnFirst.ForeColor = SystemColors.ControlText;
            this.btnFirst.ImageList = this.imglstPager;
            this.btnFirst.Name      = "btnFirst";
            this.btnFirst.TabStop   = false;
            this.btnFirst.Width     = 50;
            this.btnFirst.Dock      = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.btnFirst, _BtnTextFirst);
            this.btnFirst.UseVisualStyleBackColor = false;
            this.btnFirst.Click += new EventHandler(this.btnFirst_Click);
            //this.imglstPager.ImageStream = (ImageListStreamer) manager.GetObject("imglstPager.ImageStream");

            this.imglstPager.Images.Add(KellControls.Properties.Resources.resultset_first);
            this.imglstPager.Images.Add(KellControls.Properties.Resources.resultset_previous);
            this.imglstPager.Images.Add(KellControls.Properties.Resources.resultset_next);
            this.imglstPager.Images.Add(KellControls.Properties.Resources.resultset_last);
            this.imglstPager.TransparentColor = Color.Transparent;
            this.imglstPager.Images.SetKeyName(0, "resultset_first.png");
            this.imglstPager.Images.SetKeyName(1, "resultset_previous.png");
            this.imglstPager.Images.SetKeyName(2, "resultset_next.png");
            this.imglstPager.Images.SetKeyName(3, "resultset_last.png");
            //manager.ApplyResources(this.btnPrevious, "btnPrevious");
            this.btnPrevious.BackColor = Color.Transparent;
            this.btnPrevious.Cursor    = Cursors.Hand;
            this.btnPrevious.FlatAppearance.BorderSize = 0;
            this.btnPrevious.ForeColor = SystemColors.ControlText;
            this.btnPrevious.ImageList = this.imglstPager;
            this.btnPrevious.Name      = "btnPrevious";
            this.btnPrevious.TabStop   = false;
            this.btnPrevious.Width     = 50;
            btnPrevious.Dock           = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.btnPrevious, _BtnTextPrevious);
            this.btnPrevious.UseVisualStyleBackColor = false;
            this.btnPrevious.Click += new EventHandler(this.btnPrevious_Click);
            //manager.ApplyResources(this.btnNext, "btnNext");
            this.btnNext.BackColor = Color.Transparent;
            this.btnNext.Cursor    = Cursors.Hand;
            this.btnNext.FlatAppearance.BorderSize = 0;
            this.btnNext.ForeColor = SystemColors.ControlText;
            this.btnNext.ImageList = this.imglstPager;
            this.btnNext.Name      = "btnNext";
            this.btnNext.TabStop   = false;
            this.btnNext.Width     = 50;
            this.btnNext.Dock      = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.btnNext, _BtnTextNext);
            this.btnNext.UseVisualStyleBackColor = false;
            this.btnNext.Click += new EventHandler(this.btnNext_Click);
            //manager.ApplyResources(this.btnLast, "btnLast");
            this.btnLast.BackColor = Color.Transparent;
            this.btnLast.Cursor    = Cursors.Hand;
            this.btnLast.FlatAppearance.BorderSize = 0;
            this.btnLast.ForeColor = SystemColors.ControlText;
            this.btnLast.ImageList = this.imglstPager;
            this.btnLast.Name      = "btnLast";
            this.btnLast.TabStop   = false;
            this.btnLast.Width     = 50;
            this.btnLast.Dock      = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.btnLast, _BtnTextLast);
            this.btnLast.UseVisualStyleBackColor = false;
            this.btnLast.Click += new EventHandler(this.btnLast_Click);
            //manager.ApplyResources(this.label3, "label3");
            //this.label3.BackColor = Color.Transparent;
            //this.label3.Name = "label3";
            //    this.label3.Text = "label3";
            //manager.ApplyResources(this.btnToPageIndex, "btnToPageIndex");
            this.btnToPageIndex.BackColor = Color.Transparent;
            this.btnToPageIndex.Cursor    = Cursors.Hand;
            this.btnToPageIndex.FlatAppearance.BorderSize         = 0;
            this.btnToPageIndex.FlatAppearance.MouseDownBackColor = Color.Transparent;
            this.btnToPageIndex.FlatAppearance.MouseOverBackColor = Color.Transparent;
            this.btnToPageIndex.Name    = "btnToPageIndex";
            this.btnToPageIndex.TabStop = false;
            this.btnToPageIndex.Width   = 50;
            this.btnToPageIndex.Dock    = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.btnToPageIndex, _JumpText);
            this.btnToPageIndex.UseVisualStyleBackColor = false;
            this.btnToPageIndex.Click += new EventHandler(this.btnToPageIndex_Click);
            //manager.ApplyResources(this.txtToPageIndex, "txtToPageIndex");
            this.txtToPageIndex.Name      = "txtToPageIndex";
            this.txtToPageIndex.TabStop   = false;
            this.txtToPageIndex.Width     = 50;
            this.txtToPageIndex.Multiline = true;
            this.txtToPageIndex.Top       = 1;
            this.txtToPageIndex.TextAlign = HorizontalAlignment.Center;
            this.txtToPageIndex.Dock      = DockStyle.Right;
            this.toolTipPager.SetToolTip(this.txtToPageIndex, _PageIndexText);
            this.txtToPageIndex.KeyPress += new KeyPressEventHandler(this.txtToPageIndex_KeyPress);
            //manager.ApplyResources(this.label1, "label1");
            //this.label1.BackColor = Color.Transparent;
            //this.label1.Name = "label1";
            //    this.label1.Text = "label1";
            //manager.ApplyResources(this, "$this");
            this.AutoScaleMode         = AutoScaleMode.Font;
            this.BackColor             = Color.Transparent;
            this.BackgroundImage       = KellControls.Properties.Resources.Pager_PageBg;
            this.BackgroundImageLayout = ImageLayout.Stretch;
            //manager.ApplyResources(this.panel1, "panel1");
            //this.panel1.Size = new Size(200, MinHeight);
            this.panel1.Name         = "panel1";
            this.panel1.AutoSize     = true;
            this.panel1.AutoSizeMode = AutoSizeMode.GrowOnly;
            this.panel1.Dock         = DockStyle.Right;
            this.panel1.BackColor    = Color.Transparent;
            this.panel1.Controls.Add(this.btnFirst);
            this.panel1.Controls.Add(this.btnPrevious);
            this.panel1.Controls.Add(this.btnNext);
            this.panel1.Controls.Add(this.btnLast);
            this.panel1.Controls.Add(this.txtToPageIndex);
            this.panel1.Controls.Add(this.btnToPageIndex);
            //this.panel1.Controls.Add(this.label1);
            //this.panel1.Controls.Add(this.label3);
            this.Controls.Add(panel1);
            this.Controls.Add(this.lblPager);
            this.Height     = this.btnFirst.Height;
            this.Name       = "WinFormPager";
            this.Load      += new EventHandler(this.Pager_Load);
            this.Paint     += new PaintEventHandler(this.Pager_Paint);
            this.MouseMove += new MouseEventHandler(this.WinFormPager_MouseMove);
            this.Resize    += WinFormPager_Resize;
            this.ResumeLayout(false);
            this.PerformLayout();
        }
示例#38
0
文件: Card.cs 项目: roaet/LD28
 void Awake()
 {
     m_sprite = GetComponent<SpriteRenderer>();
     m_toolTip = GetComponent<ToolTip>();
 }
示例#39
0
 void Start()
 {
     this._inv = GameObject.Find("Inventory Panel").GetComponent<Inventory>();
     this._tooltip = this._inv.GetComponent<ToolTip>();
 }
        /// <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(global::StyleCop.CacheOptions));
            this.label1 = new System.Windows.Forms.Label();
            this.enableCache = new System.Windows.Forms.CheckBox();
            this.daysLabel = new System.Windows.Forms.Label();
            this.daysMaskedTextBox = new System.Windows.Forms.MaskedTextBox();
            this.panel3 = new System.Windows.Forms.Panel();
            this.checkForUpdatesLabel = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.autoUpdateCheckBox = new System.Windows.Forms.CheckBox();
            this.toolTip = new System.Windows.Forms.ToolTip(this.components);
            this.label3 = new System.Windows.Forms.Label();
            this.maxViolationCountMaskedTextBox = new System.Windows.Forms.MaskedTextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.cultureComboBox = new System.Windows.Forms.ComboBox();
            this.panel3.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";
            // 
            // enableCache
            // 
            resources.ApplyResources(this.enableCache, "enableCache");
            this.enableCache.Name = "enableCache";
            this.enableCache.UseVisualStyleBackColor = true;
            this.enableCache.CheckedChanged += new System.EventHandler(this.EnableCacheCheckedChanged);
            // 
            // daysLabel
            // 
            resources.ApplyResources(this.daysLabel, "daysLabel");
            this.daysLabel.Name = "daysLabel";
            // 
            // daysMaskedTextBox
            // 
            this.daysMaskedTextBox.AllowPromptAsInput = false;
            this.daysMaskedTextBox.CausesValidation = false;
            this.daysMaskedTextBox.CutCopyMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
            resources.ApplyResources(this.daysMaskedTextBox, "daysMaskedTextBox");
            this.daysMaskedTextBox.Name = "daysMaskedTextBox";
            this.daysMaskedTextBox.RejectInputOnFirstFailure = true;
            this.daysMaskedTextBox.ResetOnPrompt = false;
            this.daysMaskedTextBox.ResetOnSpace = false;
            this.daysMaskedTextBox.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
            this.daysMaskedTextBox.TextChanged += new System.EventHandler(this.DaysMaskedTextBoxTextChanged);
            this.daysMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DaysMaskedTextBoxKeyDown);
            // 
            // panel3
            // 
            resources.ApplyResources(this.panel3, "panel3");
            this.panel3.Controls.Add(this.checkForUpdatesLabel);
            this.panel3.Controls.Add(this.daysLabel);
            this.panel3.Controls.Add(this.daysMaskedTextBox);
            this.panel3.Controls.Add(this.label5);
            this.panel3.Controls.Add(this.autoUpdateCheckBox);
            this.panel3.Name = "panel3";
            // 
            // checkForUpdatesLabel
            // 
            resources.ApplyResources(this.checkForUpdatesLabel, "checkForUpdatesLabel");
            this.checkForUpdatesLabel.Name = "checkForUpdatesLabel";
            // 
            // label5
            // 
            resources.ApplyResources(this.label5, "label5");
            this.label5.Name = "label5";
            // 
            // autoUpdateCheckBox
            // 
            resources.ApplyResources(this.autoUpdateCheckBox, "autoUpdateCheckBox");
            this.autoUpdateCheckBox.Checked = true;
            this.autoUpdateCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
            this.autoUpdateCheckBox.Name = "autoUpdateCheckBox";
            this.autoUpdateCheckBox.UseVisualStyleBackColor = true;
            this.autoUpdateCheckBox.CheckedChanged += new System.EventHandler(this.AutoUpdateCheckBoxCheckedChanged);
            // 
            // label3
            // 
            resources.ApplyResources(this.label3, "label3");
            this.label3.Name = "label3";
            // 
            // maxViolationCountMaskedTextBox
            // 
            this.maxViolationCountMaskedTextBox.AllowPromptAsInput = false;
            this.maxViolationCountMaskedTextBox.CausesValidation = false;
            this.maxViolationCountMaskedTextBox.CutCopyMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
            resources.ApplyResources(this.maxViolationCountMaskedTextBox, "maxViolationCountMaskedTextBox");
            this.maxViolationCountMaskedTextBox.Name = "maxViolationCountMaskedTextBox";
            this.maxViolationCountMaskedTextBox.RejectInputOnFirstFailure = true;
            this.maxViolationCountMaskedTextBox.ResetOnPrompt = false;
            this.maxViolationCountMaskedTextBox.ResetOnSpace = false;
            this.maxViolationCountMaskedTextBox.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
            this.maxViolationCountMaskedTextBox.TextChanged += new System.EventHandler(this.MaxViolationCountTextBoxTextChanged);
            this.maxViolationCountMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MaxViolationCountMaskedTextBoxKeyDown);
            // 
            // label2
            // 
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";
            // 
            // cultureComboBox
            // 
            this.cultureComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cultureComboBox.FormattingEnabled = true;
            resources.ApplyResources(this.cultureComboBox, "cultureComboBox");
            this.cultureComboBox.Name = "cultureComboBox";
            this.cultureComboBox.SelectedIndexChanged += new System.EventHandler(this.CultureComboBoxSelectedIndexChanged);
            // 
            // CacheOptions
            // 
            this.Controls.Add(this.cultureComboBox);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.enableCache);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.maxViolationCountMaskedTextBox);
            this.Controls.Add(this.panel3);
            this.Controls.Add(this.label1);
            this.MinimumSize = new System.Drawing.Size(246, 80);
            this.Name = "CacheOptions";
            resources.ApplyResources(this, "$this");
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
示例#41
0
 public SummaryForm()
 {
     InitializeComponent();
     tooltip   = UIManager.CreateTooltip();
     this.Name = "Tibialyzer (Summary Form)";
 }
示例#42
0
 private void btnMemoryAdd_MouseHover(object sender, EventArgs e)
 {
     newTip = new ToolTip();
     newTip.SetToolTip(btnMemoryAdd, "Adds the number to the memory number");
 }
 /// <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();
     this.button32 = new System.Windows.Forms.RadioButton();
     this.button9 = new System.Windows.Forms.RadioButton();
     this.button17 = new System.Windows.Forms.RadioButton();
     this.button25 = new System.Windows.Forms.RadioButton();
     this.button41 = new System.Windows.Forms.RadioButton();
     this.button33 = new System.Windows.Forms.RadioButton();
     this.button21 = new System.Windows.Forms.RadioButton();
     this.button5 = new System.Windows.Forms.RadioButton();
     this.button29 = new System.Windows.Forms.RadioButton();
     this.button7 = new System.Windows.Forms.RadioButton();
     this.button13 = new System.Windows.Forms.RadioButton();
     this.button2 = new System.Windows.Forms.RadioButton();
     this.button37 = new System.Windows.Forms.RadioButton();
     this.button10 = new System.Windows.Forms.RadioButton();
     this.button38 = new System.Windows.Forms.RadioButton();
     this.button16 = new System.Windows.Forms.RadioButton();
     this.button8 = new System.Windows.Forms.RadioButton();
     this.button18 = new System.Windows.Forms.RadioButton();
     this.button30 = new System.Windows.Forms.RadioButton();
     this.button24 = new System.Windows.Forms.RadioButton();
     this.button12 = new System.Windows.Forms.RadioButton();
     this.button26 = new System.Windows.Forms.RadioButton();
     this.button22 = new System.Windows.Forms.RadioButton();
     this.button34 = new System.Windows.Forms.RadioButton();
     this.button20 = new System.Windows.Forms.RadioButton();
     this.button40 = new System.Windows.Forms.RadioButton();
     this.button14 = new System.Windows.Forms.RadioButton();
     this.button35 = new System.Windows.Forms.RadioButton();
     this.button28 = new System.Windows.Forms.RadioButton();
     this.button3 = new System.Windows.Forms.RadioButton();
     this.button4 = new System.Windows.Forms.RadioButton();
     this.button27 = new System.Windows.Forms.RadioButton();
     this.button36 = new System.Windows.Forms.RadioButton();
     this.button15 = new System.Windows.Forms.RadioButton();
     this.button39 = new System.Windows.Forms.RadioButton();
     this.button19 = new System.Windows.Forms.RadioButton();
     this.button6 = new System.Windows.Forms.RadioButton();
     this.button23 = new System.Windows.Forms.RadioButton();
     this.button31 = new System.Windows.Forms.RadioButton();
     this.button11 = new System.Windows.Forms.RadioButton();
     this.更多颜色_btn = new System.Windows.Forms.Button();
     this.colorDialog1 = new System.Windows.Forms.ColorDialog();
     this.panel1 = new System.Windows.Forms.Panel();
     this.button48 = new System.Windows.Forms.RadioButton();
     this.button47 = new System.Windows.Forms.RadioButton();
     this.button46 = new System.Windows.Forms.RadioButton();
     this.button45 = new System.Windows.Forms.RadioButton();
     this.button44 = new System.Windows.Forms.RadioButton();
     this.button43 = new System.Windows.Forms.RadioButton();
     this.button42 = new System.Windows.Forms.RadioButton();
     this.button1 = new System.Windows.Forms.RadioButton();
     this.checkedlabel1 = new System.Windows.Forms.Label();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // button32
     //
     this.button32.Appearance = System.Windows.Forms.Appearance.Button;
     this.button32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.button32.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button32.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button32.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button32.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button32.Location = new System.Drawing.Point(23, 52);
     this.button32.Name = "button32";
     this.button32.Size = new System.Drawing.Size(14, 14);
     this.button32.TabIndex = 86;
     this.button32.UseVisualStyleBackColor = true;
     this.button32.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button32.Click += new System.EventHandler(this.按钮们_Click);
     this.button32.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button9
     //
     this.button9.Appearance = System.Windows.Forms.Appearance.Button;
     this.button9.BackColor = System.Drawing.Color.Purple;
     this.button9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button9.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button9.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button9.Location = new System.Drawing.Point(131, 68);
     this.button9.Name = "button9";
     this.button9.Size = new System.Drawing.Size(14, 14);
     this.button9.TabIndex = 89;
     this.button9.UseVisualStyleBackColor = true;
     this.button9.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button9.Click += new System.EventHandler(this.按钮们_Click);
     this.button9.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button17
     //
     this.button17.Appearance = System.Windows.Forms.Appearance.Button;
     this.button17.BackColor = System.Drawing.Color.White;
     this.button17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button17.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button17.FlatAppearance.BorderColor = System.Drawing.Color.Black;
     this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button17.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button17.Location = new System.Drawing.Point(5, 4);
     this.button17.Name = "button17";
     this.button17.Size = new System.Drawing.Size(14, 14);
     this.button17.TabIndex = 88;
     this.button17.UseVisualStyleBackColor = true;
     this.button17.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button17.Click += new System.EventHandler(this.按钮们_Click);
     this.button17.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button25
     //
     this.button25.Appearance = System.Windows.Forms.Appearance.Button;
     this.button25.BackColor = System.Drawing.Color.Gray;
     this.button25.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button25.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button25.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button25.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button25.Location = new System.Drawing.Point(5, 52);
     this.button25.Name = "button25";
     this.button25.Size = new System.Drawing.Size(14, 14);
     this.button25.TabIndex = 85;
     this.button25.UseVisualStyleBackColor = true;
     this.button25.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button25.Click += new System.EventHandler(this.按钮们_Click);
     this.button25.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button41
     //
     this.button41.Appearance = System.Windows.Forms.Appearance.Button;
     this.button41.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.button41.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button41.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button41.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button41.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button41.Location = new System.Drawing.Point(77, 20);
     this.button41.Name = "button41";
     this.button41.Size = new System.Drawing.Size(14, 14);
     this.button41.TabIndex = 82;
     this.button41.UseVisualStyleBackColor = true;
     this.button41.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button41.Click += new System.EventHandler(this.按钮们_Click);
     this.button41.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button33
     //
     this.button33.Appearance = System.Windows.Forms.Appearance.Button;
     this.button33.BackColor = System.Drawing.Color.Silver;
     this.button33.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button33.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button33.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button33.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button33.Location = new System.Drawing.Point(5, 36);
     this.button33.Name = "button33";
     this.button33.Size = new System.Drawing.Size(14, 14);
     this.button33.TabIndex = 81;
     this.button33.UseVisualStyleBackColor = true;
     this.button33.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button33.Click += new System.EventHandler(this.按钮们_Click);
     this.button33.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button21
     //
     this.button21.Appearance = System.Windows.Forms.Appearance.Button;
     this.button21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.button21.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button21.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button21.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button21.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button21.Location = new System.Drawing.Point(77, 4);
     this.button21.Name = "button21";
     this.button21.Size = new System.Drawing.Size(14, 14);
     this.button21.TabIndex = 84;
     this.button21.UseVisualStyleBackColor = true;
     this.button21.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button21.Click += new System.EventHandler(this.按钮们_Click);
     this.button21.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button5
     //
     this.button5.Appearance = System.Windows.Forms.Appearance.Button;
     this.button5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button5.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button5.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button5.Location = new System.Drawing.Point(95, 4);
     this.button5.Name = "button5";
     this.button5.Size = new System.Drawing.Size(14, 14);
     this.button5.TabIndex = 83;
     this.button5.UseVisualStyleBackColor = true;
     this.button5.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button5.Click += new System.EventHandler(this.按钮们_Click);
     this.button5.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button29
     //
     this.button29.Appearance = System.Windows.Forms.Appearance.Button;
     this.button29.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.button29.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button29.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button29.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button29.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button29.Location = new System.Drawing.Point(77, 52);
     this.button29.Name = "button29";
     this.button29.Size = new System.Drawing.Size(14, 14);
     this.button29.TabIndex = 90;
     this.button29.UseVisualStyleBackColor = true;
     this.button29.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button29.Click += new System.EventHandler(this.按钮们_Click);
     this.button29.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button7
     //
     this.button7.Appearance = System.Windows.Forms.Appearance.Button;
     this.button7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
     this.button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button7.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button7.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button7.Location = new System.Drawing.Point(41, 20);
     this.button7.Name = "button7";
     this.button7.Size = new System.Drawing.Size(14, 14);
     this.button7.TabIndex = 97;
     this.button7.UseVisualStyleBackColor = true;
     this.button7.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button7.Click += new System.EventHandler(this.按钮们_Click);
     this.button7.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button13
     //
     this.button13.Appearance = System.Windows.Forms.Appearance.Button;
     this.button13.BackColor = System.Drawing.Color.Fuchsia;
     this.button13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button13.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button13.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button13.Location = new System.Drawing.Point(131, 36);
     this.button13.Name = "button13";
     this.button13.Size = new System.Drawing.Size(14, 14);
     this.button13.TabIndex = 96;
     this.button13.UseVisualStyleBackColor = true;
     this.button13.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button13.Click += new System.EventHandler(this.按钮们_Click);
     this.button13.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button2
     //
     this.button2.Appearance = System.Windows.Forms.Appearance.Button;
     this.button2.BackColor = System.Drawing.Color.Maroon;
     this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button2.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button2.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button2.Location = new System.Drawing.Point(23, 68);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(14, 14);
     this.button2.TabIndex = 99;
     this.button2.UseVisualStyleBackColor = true;
     this.button2.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button2.Click += new System.EventHandler(this.按钮们_Click);
     this.button2.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button37
     //
     this.button37.Appearance = System.Windows.Forms.Appearance.Button;
     this.button37.BackColor = System.Drawing.Color.Green;
     this.button37.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button37.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button37.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button37.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button37.Location = new System.Drawing.Point(77, 68);
     this.button37.Name = "button37";
     this.button37.Size = new System.Drawing.Size(14, 14);
     this.button37.TabIndex = 98;
     this.button37.UseVisualStyleBackColor = true;
     this.button37.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button37.Click += new System.EventHandler(this.按钮们_Click);
     this.button37.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button10
     //
     this.button10.Appearance = System.Windows.Forms.Appearance.Button;
     this.button10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
     this.button10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button10.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button10.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button10.Location = new System.Drawing.Point(41, 36);
     this.button10.Name = "button10";
     this.button10.Size = new System.Drawing.Size(14, 14);
     this.button10.TabIndex = 95;
     this.button10.UseVisualStyleBackColor = true;
     this.button10.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button10.Click += new System.EventHandler(this.按钮们_Click);
     this.button10.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button38
     //
     this.button38.Appearance = System.Windows.Forms.Appearance.Button;
     this.button38.BackColor = System.Drawing.Color.Blue;
     this.button38.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button38.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button38.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button38.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button38.Location = new System.Drawing.Point(113, 36);
     this.button38.Name = "button38";
     this.button38.Size = new System.Drawing.Size(14, 14);
     this.button38.TabIndex = 91;
     this.button38.UseVisualStyleBackColor = true;
     this.button38.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button38.Click += new System.EventHandler(this.按钮们_Click);
     this.button38.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button16
     //
     this.button16.Appearance = System.Windows.Forms.Appearance.Button;
     this.button16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.button16.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button16.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button16.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button16.Location = new System.Drawing.Point(113, 20);
     this.button16.Name = "button16";
     this.button16.Size = new System.Drawing.Size(14, 14);
     this.button16.TabIndex = 94;
     this.button16.UseVisualStyleBackColor = true;
     this.button16.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button16.Click += new System.EventHandler(this.按钮们_Click);
     this.button16.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button8
     //
     this.button8.Appearance = System.Windows.Forms.Appearance.Button;
     this.button8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.button8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button8.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button8.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button8.Location = new System.Drawing.Point(5, 68);
     this.button8.Name = "button8";
     this.button8.Size = new System.Drawing.Size(14, 14);
     this.button8.TabIndex = 93;
     this.button8.UseVisualStyleBackColor = true;
     this.button8.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button8.Click += new System.EventHandler(this.按钮们_Click);
     this.button8.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button18
     //
     this.button18.Appearance = System.Windows.Forms.Appearance.Button;
     this.button18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
     this.button18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button18.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button18.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button18.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button18.Location = new System.Drawing.Point(41, 52);
     this.button18.Name = "button18";
     this.button18.Size = new System.Drawing.Size(14, 14);
     this.button18.TabIndex = 92;
     this.button18.UseVisualStyleBackColor = true;
     this.button18.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button18.Click += new System.EventHandler(this.按钮们_Click);
     this.button18.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button30
     //
     this.button30.Appearance = System.Windows.Forms.Appearance.Button;
     this.button30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
     this.button30.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button30.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button30.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button30.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button30.Location = new System.Drawing.Point(131, 52);
     this.button30.Name = "button30";
     this.button30.Size = new System.Drawing.Size(14, 14);
     this.button30.TabIndex = 87;
     this.button30.UseVisualStyleBackColor = true;
     this.button30.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button30.Click += new System.EventHandler(this.按钮们_Click);
     this.button30.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button24
     //
     this.button24.Appearance = System.Windows.Forms.Appearance.Button;
     this.button24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
     this.button24.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button24.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button24.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button24.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button24.Location = new System.Drawing.Point(113, 52);
     this.button24.Name = "button24";
     this.button24.Size = new System.Drawing.Size(14, 14);
     this.button24.TabIndex = 66;
     this.button24.UseVisualStyleBackColor = true;
     this.button24.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button24.Click += new System.EventHandler(this.按钮们_Click);
     this.button24.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button12
     //
     this.button12.Appearance = System.Windows.Forms.Appearance.Button;
     this.button12.BackColor = System.Drawing.Color.Aqua;
     this.button12.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button12.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button12.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button12.Location = new System.Drawing.Point(95, 36);
     this.button12.Name = "button12";
     this.button12.Size = new System.Drawing.Size(14, 14);
     this.button12.TabIndex = 65;
     this.button12.UseVisualStyleBackColor = true;
     this.button12.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button12.Click += new System.EventHandler(this.按钮们_Click);
     this.button12.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button26
     //
     this.button26.Appearance = System.Windows.Forms.Appearance.Button;
     this.button26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.button26.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button26.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button26.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button26.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button26.Location = new System.Drawing.Point(131, 20);
     this.button26.Name = "button26";
     this.button26.Size = new System.Drawing.Size(14, 14);
     this.button26.TabIndex = 67;
     this.button26.UseVisualStyleBackColor = true;
     this.button26.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button26.Click += new System.EventHandler(this.按钮们_Click);
     this.button26.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button22
     //
     this.button22.Appearance = System.Windows.Forms.Appearance.Button;
     this.button22.BackColor = System.Drawing.Color.Navy;
     this.button22.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button22.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button22.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button22.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button22.Location = new System.Drawing.Point(113, 68);
     this.button22.Name = "button22";
     this.button22.Size = new System.Drawing.Size(14, 14);
     this.button22.TabIndex = 69;
     this.button22.UseVisualStyleBackColor = true;
     this.button22.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button22.Click += new System.EventHandler(this.按钮们_Click);
     this.button22.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button34
     //
     this.button34.Appearance = System.Windows.Forms.Appearance.Button;
     this.button34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.button34.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button34.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button34.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button34.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button34.Location = new System.Drawing.Point(59, 52);
     this.button34.Name = "button34";
     this.button34.Size = new System.Drawing.Size(14, 14);
     this.button34.TabIndex = 68;
     this.button34.UseVisualStyleBackColor = true;
     this.button34.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button34.Click += new System.EventHandler(this.按钮们_Click);
     this.button34.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button20
     //
     this.button20.Appearance = System.Windows.Forms.Appearance.Button;
     this.button20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.button20.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button20.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button20.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button20.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button20.Location = new System.Drawing.Point(95, 20);
     this.button20.Name = "button20";
     this.button20.Size = new System.Drawing.Size(14, 14);
     this.button20.TabIndex = 61;
     this.button20.UseVisualStyleBackColor = true;
     this.button20.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button20.Click += new System.EventHandler(this.按钮们_Click);
     this.button20.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button40
     //
     this.button40.Appearance = System.Windows.Forms.Appearance.Button;
     this.button40.BackColor = System.Drawing.Color.Red;
     this.button40.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button40.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button40.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button40.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button40.Location = new System.Drawing.Point(23, 36);
     this.button40.Name = "button40";
     this.button40.Size = new System.Drawing.Size(14, 14);
     this.button40.TabIndex = 60;
     this.button40.UseVisualStyleBackColor = true;
     this.button40.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button40.Click += new System.EventHandler(this.按钮们_Click);
     this.button40.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button14
     //
     this.button14.Appearance = System.Windows.Forms.Appearance.Button;
     this.button14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.button14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button14.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button14.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button14.Location = new System.Drawing.Point(113, 4);
     this.button14.Name = "button14";
     this.button14.Size = new System.Drawing.Size(14, 14);
     this.button14.TabIndex = 62;
     this.button14.UseVisualStyleBackColor = true;
     this.button14.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button14.Click += new System.EventHandler(this.按钮们_Click);
     this.button14.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button35
     //
     this.button35.Appearance = System.Windows.Forms.Appearance.Button;
     this.button35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.button35.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button35.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button35.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button35.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button35.Location = new System.Drawing.Point(59, 20);
     this.button35.Name = "button35";
     this.button35.Size = new System.Drawing.Size(14, 14);
     this.button35.TabIndex = 64;
     this.button35.UseVisualStyleBackColor = true;
     this.button35.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button35.Click += new System.EventHandler(this.按钮们_Click);
     this.button35.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button28
     //
     this.button28.Appearance = System.Windows.Forms.Appearance.Button;
     this.button28.BackColor = System.Drawing.Color.Teal;
     this.button28.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button28.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button28.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button28.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button28.Location = new System.Drawing.Point(95, 68);
     this.button28.Name = "button28";
     this.button28.Size = new System.Drawing.Size(14, 14);
     this.button28.TabIndex = 63;
     this.button28.UseVisualStyleBackColor = true;
     this.button28.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button28.Click += new System.EventHandler(this.按钮们_Click);
     this.button28.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button3
     //
     this.button3.Appearance = System.Windows.Forms.Appearance.Button;
     this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button3.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button3.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button3.Location = new System.Drawing.Point(23, 4);
     this.button3.Name = "button3";
     this.button3.Size = new System.Drawing.Size(14, 14);
     this.button3.TabIndex = 76;
     this.button3.UseVisualStyleBackColor = true;
     this.button3.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button3.Click += new System.EventHandler(this.按钮们_Click);
     this.button3.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button4
     //
     this.button4.Appearance = System.Windows.Forms.Appearance.Button;
     this.button4.BackColor = System.Drawing.Color.Lime;
     this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button4.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button4.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button4.Location = new System.Drawing.Point(77, 36);
     this.button4.Name = "button4";
     this.button4.Size = new System.Drawing.Size(14, 14);
     this.button4.TabIndex = 75;
     this.button4.UseVisualStyleBackColor = true;
     this.button4.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button4.Click += new System.EventHandler(this.按钮们_Click);
     this.button4.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button27
     //
     this.button27.Appearance = System.Windows.Forms.Appearance.Button;
     this.button27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.button27.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button27.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button27.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button27.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button27.Location = new System.Drawing.Point(59, 4);
     this.button27.Name = "button27";
     this.button27.Size = new System.Drawing.Size(14, 14);
     this.button27.TabIndex = 77;
     this.button27.UseVisualStyleBackColor = true;
     this.button27.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button27.Click += new System.EventHandler(this.按钮们_Click);
     this.button27.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button36
     //
     this.button36.Appearance = System.Windows.Forms.Appearance.Button;
     this.button36.BackColor = System.Drawing.Color.Yellow;
     this.button36.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button36.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button36.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button36.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button36.Location = new System.Drawing.Point(59, 36);
     this.button36.Name = "button36";
     this.button36.Size = new System.Drawing.Size(14, 14);
     this.button36.TabIndex = 79;
     this.button36.UseVisualStyleBackColor = true;
     this.button36.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button36.Click += new System.EventHandler(this.按钮们_Click);
     this.button36.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button15
     //
     this.button15.Appearance = System.Windows.Forms.Appearance.Button;
     this.button15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.button15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button15.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button15.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button15.Location = new System.Drawing.Point(41, 4);
     this.button15.Name = "button15";
     this.button15.Size = new System.Drawing.Size(14, 14);
     this.button15.TabIndex = 78;
     this.button15.UseVisualStyleBackColor = true;
     this.button15.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button15.Click += new System.EventHandler(this.按钮们_Click);
     this.button15.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button39
     //
     this.button39.Appearance = System.Windows.Forms.Appearance.Button;
     this.button39.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.button39.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button39.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button39.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button39.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button39.Location = new System.Drawing.Point(5, 20);
     this.button39.Name = "button39";
     this.button39.Size = new System.Drawing.Size(14, 14);
     this.button39.TabIndex = 71;
     this.button39.UseVisualStyleBackColor = true;
     this.button39.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button39.Click += new System.EventHandler(this.按钮们_Click);
     this.button39.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button19
     //
     this.button19.Appearance = System.Windows.Forms.Appearance.Button;
     this.button19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.button19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button19.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button19.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button19.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button19.Location = new System.Drawing.Point(95, 52);
     this.button19.Name = "button19";
     this.button19.Size = new System.Drawing.Size(14, 14);
     this.button19.TabIndex = 70;
     this.button19.UseVisualStyleBackColor = true;
     this.button19.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button19.Click += new System.EventHandler(this.按钮们_Click);
     this.button19.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button6
     //
     this.button6.Appearance = System.Windows.Forms.Appearance.Button;
     this.button6.BackColor = System.Drawing.Color.Olive;
     this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button6.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button6.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button6.Location = new System.Drawing.Point(59, 68);
     this.button6.Name = "button6";
     this.button6.Size = new System.Drawing.Size(14, 14);
     this.button6.TabIndex = 72;
     this.button6.UseVisualStyleBackColor = true;
     this.button6.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button6.Click += new System.EventHandler(this.按钮们_Click);
     this.button6.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button23
     //
     this.button23.Appearance = System.Windows.Forms.Appearance.Button;
     this.button23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
     this.button23.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button23.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button23.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button23.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button23.Location = new System.Drawing.Point(41, 68);
     this.button23.Name = "button23";
     this.button23.Size = new System.Drawing.Size(14, 14);
     this.button23.TabIndex = 74;
     this.button23.UseVisualStyleBackColor = true;
     this.button23.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button23.Click += new System.EventHandler(this.按钮们_Click);
     this.button23.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button31
     //
     this.button31.Appearance = System.Windows.Forms.Appearance.Button;
     this.button31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.button31.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button31.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button31.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button31.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button31.Location = new System.Drawing.Point(23, 20);
     this.button31.Name = "button31";
     this.button31.Size = new System.Drawing.Size(14, 14);
     this.button31.TabIndex = 73;
     this.button31.UseVisualStyleBackColor = true;
     this.button31.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button31.Click += new System.EventHandler(this.按钮们_Click);
     this.button31.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button11
     //
     this.button11.Appearance = System.Windows.Forms.Appearance.Button;
     this.button11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.button11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button11.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button11.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button11.Location = new System.Drawing.Point(131, 4);
     this.button11.Name = "button11";
     this.button11.Size = new System.Drawing.Size(14, 14);
     this.button11.TabIndex = 80;
     this.button11.UseVisualStyleBackColor = true;
     this.button11.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button11.Click += new System.EventHandler(this.按钮们_Click);
     this.button11.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // 更多颜色_btn
     //
     this.更多颜色_btn.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.更多颜色_btn.FlatAppearance.MouseDownBackColor = System.Drawing.Color.White;
     this.更多颜色_btn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.更多颜色_btn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.更多颜色_btn.Location = new System.Drawing.Point(5, 102);
     this.更多颜色_btn.Name = "更多颜色_btn";
     this.更多颜色_btn.Size = new System.Drawing.Size(140, 23);
     this.更多颜色_btn.TabIndex = 100;
     this.更多颜色_btn.Text = "更多颜色...";
     this.toolTip1.SetToolTip(this.更多颜色_btn, "更多颜色...");
     this.更多颜色_btn.UseVisualStyleBackColor = true;
     this.更多颜色_btn.Click += new System.EventHandler(this.更多颜色_btn_Click);
     //
     // colorDialog1
     //
     this.colorDialog1.AnyColor = true;
     this.colorDialog1.FullOpen = true;
     this.colorDialog1.ShowHelp = true;
     this.colorDialog1.SolidColorOnly = true;
     //
     // panel1
     //
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.button17);
     this.panel1.Controls.Add(this.button32);
     this.panel1.Controls.Add(this.button48);
     this.panel1.Controls.Add(this.button9);
     this.panel1.Controls.Add(this.button11);
     this.panel1.Controls.Add(this.button25);
     this.panel1.Controls.Add(this.button31);
     this.panel1.Controls.Add(this.button41);
     this.panel1.Controls.Add(this.button47);
     this.panel1.Controls.Add(this.button23);
     this.panel1.Controls.Add(this.button33);
     this.panel1.Controls.Add(this.button46);
     this.panel1.Controls.Add(this.button6);
     this.panel1.Controls.Add(this.button21);
     this.panel1.Controls.Add(this.button19);
     this.panel1.Controls.Add(this.button5);
     this.panel1.Controls.Add(this.button39);
     this.panel1.Controls.Add(this.button29);
     this.panel1.Controls.Add(this.button15);
     this.panel1.Controls.Add(this.button7);
     this.panel1.Controls.Add(this.button36);
     this.panel1.Controls.Add(this.button13);
     this.panel1.Controls.Add(this.button45);
     this.panel1.Controls.Add(this.button27);
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.button44);
     this.panel1.Controls.Add(this.button4);
     this.panel1.Controls.Add(this.button37);
     this.panel1.Controls.Add(this.button3);
     this.panel1.Controls.Add(this.button43);
     this.panel1.Controls.Add(this.button10);
     this.panel1.Controls.Add(this.button28);
     this.panel1.Controls.Add(this.button38);
     this.panel1.Controls.Add(this.button35);
     this.panel1.Controls.Add(this.button16);
     this.panel1.Controls.Add(this.button42);
     this.panel1.Controls.Add(this.button14);
     this.panel1.Controls.Add(this.button8);
     this.panel1.Controls.Add(this.button40);
     this.panel1.Controls.Add(this.button18);
     this.panel1.Controls.Add(this.button20);
     this.panel1.Controls.Add(this.button30);
     this.panel1.Controls.Add(this.button34);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.button24);
     this.panel1.Controls.Add(this.button22);
     this.panel1.Controls.Add(this.button12);
     this.panel1.Controls.Add(this.button26);
     this.panel1.Controls.Add(this.更多颜色_btn);
     this.panel1.Controls.Add(this.checkedlabel1);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Margin = new System.Windows.Forms.Padding(0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(152, 130);
     this.panel1.TabIndex = 102;
     //
     // button48
     //
     this.button48.Appearance = System.Windows.Forms.Appearance.Button;
     this.button48.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
     this.button48.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button48.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button48.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button48.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button48.Location = new System.Drawing.Point(131, 84);
     this.button48.Name = "button48";
     this.button48.Size = new System.Drawing.Size(14, 14);
     this.button48.TabIndex = 89;
     this.button48.UseVisualStyleBackColor = true;
     this.button48.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button48.Click += new System.EventHandler(this.按钮们_Click);
     this.button48.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button47
     //
     this.button47.Appearance = System.Windows.Forms.Appearance.Button;
     this.button47.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.button47.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button47.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button47.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button47.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button47.Location = new System.Drawing.Point(41, 84);
     this.button47.Name = "button47";
     this.button47.Size = new System.Drawing.Size(14, 14);
     this.button47.TabIndex = 74;
     this.button47.UseVisualStyleBackColor = true;
     this.button47.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button47.Click += new System.EventHandler(this.按钮们_Click);
     this.button47.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button46
     //
     this.button46.Appearance = System.Windows.Forms.Appearance.Button;
     this.button46.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
     this.button46.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button46.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button46.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button46.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button46.Location = new System.Drawing.Point(59, 84);
     this.button46.Name = "button46";
     this.button46.Size = new System.Drawing.Size(14, 14);
     this.button46.TabIndex = 72;
     this.button46.UseVisualStyleBackColor = true;
     this.button46.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button46.Click += new System.EventHandler(this.按钮们_Click);
     this.button46.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button45
     //
     this.button45.Appearance = System.Windows.Forms.Appearance.Button;
     this.button45.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.button45.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button45.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button45.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button45.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button45.Location = new System.Drawing.Point(23, 84);
     this.button45.Name = "button45";
     this.button45.Size = new System.Drawing.Size(14, 14);
     this.button45.TabIndex = 99;
     this.button45.UseVisualStyleBackColor = true;
     this.button45.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button45.Click += new System.EventHandler(this.按钮们_Click);
     this.button45.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button44
     //
     this.button44.Appearance = System.Windows.Forms.Appearance.Button;
     this.button44.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
     this.button44.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button44.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button44.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button44.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button44.Location = new System.Drawing.Point(77, 84);
     this.button44.Name = "button44";
     this.button44.Size = new System.Drawing.Size(14, 14);
     this.button44.TabIndex = 98;
     this.button44.UseVisualStyleBackColor = true;
     this.button44.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button44.Click += new System.EventHandler(this.按钮们_Click);
     this.button44.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button43
     //
     this.button43.Appearance = System.Windows.Forms.Appearance.Button;
     this.button43.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.button43.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button43.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button43.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button43.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button43.Location = new System.Drawing.Point(95, 84);
     this.button43.Name = "button43";
     this.button43.Size = new System.Drawing.Size(14, 14);
     this.button43.TabIndex = 63;
     this.button43.UseVisualStyleBackColor = true;
     this.button43.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button43.Click += new System.EventHandler(this.按钮们_Click);
     this.button43.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button42
     //
     this.button42.Appearance = System.Windows.Forms.Appearance.Button;
     this.button42.BackColor = System.Drawing.Color.Black;
     this.button42.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button42.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button42.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button42.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button42.Location = new System.Drawing.Point(5, 84);
     this.button42.Name = "button42";
     this.button42.Size = new System.Drawing.Size(14, 14);
     this.button42.TabIndex = 93;
     this.button42.UseVisualStyleBackColor = true;
     this.button42.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button42.Click += new System.EventHandler(this.按钮们_Click);
     this.button42.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // button1
     //
     this.button1.Appearance = System.Windows.Forms.Appearance.Button;
     this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
     this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.button1.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button1.ImageAlign = System.Drawing.ContentAlignment.BottomRight;
     this.button1.Location = new System.Drawing.Point(113, 84);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(14, 14);
     this.button1.TabIndex = 69;
     this.button1.UseVisualStyleBackColor = true;
     this.button1.CheckedChanged += new System.EventHandler(this.按钮们_CheckedChanged);
     this.button1.Click += new System.EventHandler(this.按钮们_Click);
     this.button1.MouseEnter += new System.EventHandler(this.按钮_MouseEnter);
     //
     // checkedlabel1
     //
     this.checkedlabel1.BackColor = System.Drawing.Color.Black;
     this.checkedlabel1.Location = new System.Drawing.Point(93, 109);
     this.checkedlabel1.Name = "checkedlabel1";
     this.checkedlabel1.Size = new System.Drawing.Size(16, 16);
     this.checkedlabel1.TabIndex = 101;
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // ColorPickerForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(155, 137);
     this.Controls.Add(this.panel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "ColorPickerForm";
     this.Text = "ColorPickerForm";
     this.Load += new System.EventHandler(this.ColorPickerForm_Load);
     this.Shown += new System.EventHandler(this.ColorPickerForm_Shown);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#44
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();
            this.ToolTip1         = new System.Windows.Forms.ToolTip(this.components);
            this.cmdStopRead      = new System.Windows.Forms.Button();
            this.tmrReadCount     = new System.Windows.Forms.Timer(this.components);
            this.lblShowCountRead = new System.Windows.Forms.Label();
            this.lblCountRead     = new System.Windows.Forms.Label();
            this.lblShowLoadVal   = new System.Windows.Forms.Label();
            this.lblCountLoaded   = new System.Windows.Forms.Label();
            this.lblNoteFreqIn    = new System.Windows.Forms.Label();
            this.lblDemoFunction  = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // cmdStopRead
            //
            this.cmdStopRead.BackColor   = System.Drawing.SystemColors.Control;
            this.cmdStopRead.Cursor      = System.Windows.Forms.Cursors.Default;
            this.cmdStopRead.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdStopRead.ForeColor   = System.Drawing.SystemColors.ControlText;
            this.cmdStopRead.Location    = new System.Drawing.Point(200, 208);
            this.cmdStopRead.Name        = "cmdStopRead";
            this.cmdStopRead.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.cmdStopRead.Size        = new System.Drawing.Size(57, 33);
            this.cmdStopRead.TabIndex    = 6;
            this.cmdStopRead.Text        = "Quit";
            this.cmdStopRead.Click      += new System.EventHandler(this.cmdStopRead_Click);
            //
            // tmrReadCount
            //
            this.tmrReadCount.Enabled  = true;
            this.tmrReadCount.Interval = 500;
            this.tmrReadCount.Tick    += new System.EventHandler(this.tmrReadCount_Tick);
            //
            // lblShowCountRead
            //
            this.lblShowCountRead.BackColor   = System.Drawing.SystemColors.Window;
            this.lblShowCountRead.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblShowCountRead.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblShowCountRead.ForeColor   = System.Drawing.Color.Blue;
            this.lblShowCountRead.Location    = new System.Drawing.Point(200, 168);
            this.lblShowCountRead.Name        = "lblShowCountRead";
            this.lblShowCountRead.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblShowCountRead.Size        = new System.Drawing.Size(65, 17);
            this.lblShowCountRead.TabIndex    = 5;
            //
            // lblCountRead
            //
            this.lblCountRead.BackColor   = System.Drawing.SystemColors.Window;
            this.lblCountRead.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblCountRead.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblCountRead.ForeColor   = System.Drawing.SystemColors.WindowText;
            this.lblCountRead.ImageAlign  = System.Drawing.ContentAlignment.MiddleRight;
            this.lblCountRead.Location    = new System.Drawing.Point(48, 168);
            this.lblCountRead.Name        = "lblCountRead";
            this.lblCountRead.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblCountRead.Size        = new System.Drawing.Size(145, 17);
            this.lblCountRead.TabIndex    = 3;
            this.lblCountRead.Text        = "Value read from counter:";
            //
            // lblShowLoadVal
            //
            this.lblShowLoadVal.BackColor   = System.Drawing.SystemColors.Window;
            this.lblShowLoadVal.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblShowLoadVal.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblShowLoadVal.ForeColor   = System.Drawing.Color.Blue;
            this.lblShowLoadVal.Location    = new System.Drawing.Point(200, 136);
            this.lblShowLoadVal.Name        = "lblShowLoadVal";
            this.lblShowLoadVal.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblShowLoadVal.Size        = new System.Drawing.Size(65, 17);
            this.lblShowLoadVal.TabIndex    = 4;
            //
            // lblCountLoaded
            //
            this.lblCountLoaded.BackColor   = System.Drawing.SystemColors.Window;
            this.lblCountLoaded.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblCountLoaded.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblCountLoaded.ForeColor   = System.Drawing.SystemColors.WindowText;
            this.lblCountLoaded.ImageAlign  = System.Drawing.ContentAlignment.MiddleRight;
            this.lblCountLoaded.Location    = new System.Drawing.Point(16, 136);
            this.lblCountLoaded.Name        = "lblCountLoaded";
            this.lblCountLoaded.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblCountLoaded.Size        = new System.Drawing.Size(177, 17);
            this.lblCountLoaded.TabIndex    = 2;
            //
            // lblNoteFreqIn
            //
            this.lblNoteFreqIn.BackColor   = System.Drawing.SystemColors.Window;
            this.lblNoteFreqIn.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblNoteFreqIn.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblNoteFreqIn.ForeColor   = System.Drawing.Color.Red;
            this.lblNoteFreqIn.Location    = new System.Drawing.Point(24, 80);
            this.lblNoteFreqIn.Name        = "lblNoteFreqIn";
            this.lblNoteFreqIn.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblNoteFreqIn.Size        = new System.Drawing.Size(233, 33);
            this.lblNoteFreqIn.TabIndex    = 1;
            this.lblNoteFreqIn.Text        = "NOTE: There must be a TTL frequency at the counter 1 input.";
            this.lblNoteFreqIn.TextAlign   = System.Drawing.ContentAlignment.TopCenter;
            //
            // lblDemoFunction
            //
            this.lblDemoFunction.BackColor   = System.Drawing.SystemColors.Window;
            this.lblDemoFunction.Cursor      = System.Windows.Forms.Cursors.Default;
            this.lblDemoFunction.Font        = new System.Drawing.Font("Arial", 8.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblDemoFunction.ForeColor   = System.Drawing.SystemColors.WindowText;
            this.lblDemoFunction.Location    = new System.Drawing.Point(16, 16);
            this.lblDemoFunction.Name        = "lblDemoFunction";
            this.lblDemoFunction.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblDemoFunction.Size        = new System.Drawing.Size(249, 41);
            this.lblDemoFunction.TabIndex    = 0;
            this.lblDemoFunction.Text        = "Demonstration of 8254 Counter Functions";
            this.lblDemoFunction.TextAlign   = System.Drawing.ContentAlignment.TopCenter;
            //
            // frmCountTest
            //
            this.AcceptButton      = this.cmdStopRead;
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 13);
            this.BackColor         = System.Drawing.SystemColors.Window;
            this.ClientSize        = new System.Drawing.Size(280, 261);
            this.Controls.AddRange(new System.Windows.Forms.Control[] { this.cmdStopRead, this.lblShowCountRead, this.lblCountRead, this.lblShowLoadVal, this.lblCountLoaded, this.lblNoteFreqIn, this.lblDemoFunction });
            this.Font          = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ForeColor     = System.Drawing.SystemColors.WindowText;
            this.Location      = new System.Drawing.Point(7, 103);
            this.Name          = "frmCountTest";
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.Text          = "Universal Library 8254 Counter";
            this.ResumeLayout(false);
        }
示例#45
0
        /// <summary>
        /// Loads default ToolTips if required. 
        /// Currently only one tooltip is supported
        /// </summary>
        private void LoadToolTips()
        {
            if (ToolTips.Count == 0)
            {
                ToolTip toolTip = new ToolTip() { Chart = this, Visibility = Visibility.Collapsed };
                ToolTips.Add(toolTip);
            }

            _toolTip = ToolTips[0];

            _toolTip.Chart = this;

            _toolTipCanvas.Children.Add(_toolTip);

            // Attach events to the root element of the chart to track mouse movement over chart.
            this._rootElement.MouseLeave += new MouseEventHandler(Chart_MouseLeave);
        }
        private void SearchTextBox_Enter(object sender, EventArgs e)
        {
            var toolTip = new ToolTip();

            toolTip.Show("Search Donor by their name", SearchTextBox, 0, SearchTextBox.Height, 2000);
        }
 void TextViewMouseHoverStopped(object sender, PointerEventArgs e)
 {
     ToolTip.SetIsOpen(this, false);
 }
示例#48
0
 private void InitializeComponent()
 {
     this.FontSize = 13.33333F;
     this.SetResourceReference(SoundManager.SoundsProperty, "Sounds");
     InitializeElementResources(this);
     // e_0 element
     this.e_0 = new Grid();
     this.Content = this.e_0;
     this.e_0.Name = "e_0";
     RowDefinition row_e_0_0 = new RowDefinition();
     row_e_0_0.Height = new GridLength(110F, GridUnitType.Pixel);
     this.e_0.RowDefinitions.Add(row_e_0_0);
     RowDefinition row_e_0_1 = new RowDefinition();
     this.e_0.RowDefinitions.Add(row_e_0_1);
     ColumnDefinition col_e_0_0 = new ColumnDefinition();
     this.e_0.ColumnDefinitions.Add(col_e_0_0);
     ColumnDefinition col_e_0_1 = new ColumnDefinition();
     this.e_0.ColumnDefinitions.Add(col_e_0_1);
     // e_1 element
     this.e_1 = new StackPanel();
     this.e_0.Children.Add(this.e_1);
     this.e_1.Name = "e_1";
     this.e_1.Background = new SolidColorBrush(new ColorW(0, 0, 0, 255));
     Grid.SetColumnSpan(this.e_1, 2);
     // logo element
     this.logo = new Image();
     this.e_1.Children.Add(this.logo);
     this.logo.Name = "logo";
     this.logo.HorizontalAlignment = HorizontalAlignment.Center;
     BitmapImage logo_bm = new BitmapImage();
     logo_bm.TextureAsset = "Images/EmptyKeysLogoTextSmall";
     this.logo.Source = logo_bm;
     this.logo.Stretch = Stretch.None;
     this.logo.SetResourceReference(Image.SourceProperty, "logoEmptyKeys");
     // e_2 element
     this.e_2 = new TextBlock();
     this.e_1.Children.Add(this.e_2);
     this.e_2.Name = "e_2";
     this.e_2.HorizontalAlignment = HorizontalAlignment.Center;
     this.e_2.VerticalAlignment = VerticalAlignment.Center;
     this.e_2.Foreground = new SolidColorBrush(new ColorW(211, 211, 211, 255));
     this.e_2.TextWrapping = TextWrapping.Wrap;
     this.e_2.FontFamily = new FontFamily("Segoe UI");
     this.e_2.FontSize = 20F;
     this.e_2.FontStyle = FontStyle.Bold;
     this.e_2.SetResourceReference(TextBlock.TextProperty, "TitleResource");
     // e_3 element
     this.e_3 = new StackPanel();
     this.e_0.Children.Add(this.e_3);
     this.e_3.Name = "e_3";
     Grid.SetRow(this.e_3, 1);
     // combo element
     this.combo = new ComboBox();
     this.e_3.Children.Add(this.combo);
     this.combo.Name = "combo";
     this.combo.Width = 200F;
     this.combo.Margin = new Thickness(5F, 5F, 5F, 5F);
     Func<UIElement, UIElement> combo_dtFunc = combo_dtMethod;
     this.combo.ItemTemplate = new DataTemplate(combo_dtFunc);
     Binding binding_combo_ItemsSource = new Binding("ComboBoxSource");
     this.combo.SetBinding(ComboBox.ItemsSourceProperty, binding_combo_ItemsSource);
     Binding binding_combo_SelectedIndex = new Binding("SelectedIndex");
     this.combo.SetBinding(ComboBox.SelectedIndexProperty, binding_combo_SelectedIndex);
     // button1 element
     this.button1 = new Button();
     this.e_3.Children.Add(this.button1);
     this.button1.Name = "button1";
     this.button1.Height = 30F;
     this.button1.Width = 200F;
     this.button1.Margin = new Thickness(5F, 5F, 5F, 5F);
     ToolTip tt_button1 = new ToolTip();
     this.button1.ToolTip = tt_button1;
     tt_button1.Content = "Click Me!";
     this.button1.Content = "1";
     this.button1.CommandParameter = "Click Button 1";
     Binding binding_button1_Command = new Binding("ButtonCommand");
     this.button1.SetBinding(Button.CommandProperty, binding_button1_Command);
     // button2 element
     this.button2 = new Button();
     this.e_3.Children.Add(this.button2);
     this.button2.Name = "button2";
     this.button2.Height = 30F;
     this.button2.Margin = new Thickness(5F, 5F, 5F, 5F);
     this.button2.Content = "2";
     this.button2.CommandParameter = "Click Button 2";
     Binding binding_button2_Command = new Binding("ButtonCommand");
     this.button2.SetBinding(Button.CommandProperty, binding_button2_Command);
     this.button2.SetResourceReference(Button.StyleProperty, "buttonStyle");
     // button3 element
     this.button3 = new Button();
     this.e_3.Children.Add(this.button3);
     this.button3.Name = "button3";
     this.button3.Height = 30F;
     this.button3.Width = 200F;
     this.button3.Margin = new Thickness(5F, 5F, 5F, 5F);
     this.button3.FontFamily = new FontFamily("Segoe UI");
     this.button3.FontSize = 20F;
     this.button3.FontStyle = FontStyle.Bold;
     this.button3.Content = "3";
     this.button3.CommandParameter = "Click Button 3";
     Binding binding_button3_Command = new Binding("OpenMessageBox");
     this.button3.SetBinding(Button.CommandProperty, binding_button3_Command);
     this.button3.SetResourceReference(Button.ToolTipProperty, "ToolTipText");
     // buttonResult element
     this.buttonResult = new TextBlock();
     this.e_3.Children.Add(this.buttonResult);
     this.buttonResult.Name = "buttonResult";
     this.buttonResult.HorizontalAlignment = HorizontalAlignment.Center;
     Binding binding_buttonResult_Text = new Binding("ButtonResult");
     this.buttonResult.SetBinding(TextBlock.TextProperty, binding_buttonResult_Text);
     // slider element
     this.slider = new Slider();
     this.e_3.Children.Add(this.slider);
     this.slider.Name = "slider";
     this.slider.Width = 200F;
     this.slider.Minimum = 5F;
     this.slider.Maximum = 20F;
     Binding binding_slider_Value = new Binding("SliderValue");
     this.slider.SetBinding(Slider.ValueProperty, binding_slider_Value);
     // textBox element
     this.textBox = new TextBox();
     this.e_3.Children.Add(this.textBox);
     this.textBox.Name = "textBox";
     this.textBox.Width = 200F;
     this.textBox.Margin = new Thickness(5F, 5F, 5F, 5F);
     Binding binding_textBox_Text = new Binding("TextBoxText");
     this.textBox.SetBinding(TextBox.TextProperty, binding_textBox_Text);
     // checkBox element
     this.checkBox = new CheckBox();
     this.e_3.Children.Add(this.checkBox);
     this.checkBox.Name = "checkBox";
     this.checkBox.Margin = new Thickness(5F, 5F, 5F, 5F);
     this.checkBox.HorizontalAlignment = HorizontalAlignment.Center;
     this.checkBox.Content = "Check Box";
     // e_5 element
     this.e_5 = new TabControl();
     this.e_3.Children.Add(this.e_5);
     this.e_5.Name = "e_5";
     this.e_5.Height = 150F;
     this.e_5.Width = 400F;
     this.e_5.ItemsSource = Get_e_5_Items();
     // e_18 element
     this.e_18 = new ProgressBar();
     this.e_3.Children.Add(this.e_18);
     this.e_18.Name = "e_18";
     this.e_18.Height = 30F;
     this.e_18.Width = 400F;
     this.e_18.Margin = new Thickness(5F, 5F, 5F, 5F);
     this.e_18.Value = 39F;
     // imageButton element
     this.imageButton = new Button();
     this.e_3.Children.Add(this.imageButton);
     this.imageButton.Name = "imageButton";
     this.imageButton.Height = 68F;
     this.imageButton.Width = 57F;
     ImageBrush imageButton_Background = new ImageBrush();
     BitmapImage imageButton_Background_bm = new BitmapImage();
     imageButton_Background_bm.TextureAsset = "Images/SunBurn";
     imageButton_Background.ImageSource = imageButton_Background_bm;
     imageButton_Background.Stretch = Stretch.None;
     this.imageButton.Background = imageButton_Background;
     // e_19 element
     this.e_19 = new StackPanel();
     this.e_0.Children.Add(this.e_19);
     this.e_19.Name = "e_19";
     Grid.SetColumn(this.e_19, 1);
     Grid.SetRow(this.e_19, 1);
     // animButton1 element
     this.animButton1 = new Button();
     this.e_19.Children.Add(this.animButton1);
     this.animButton1.Name = "animButton1";
     this.animButton1.Content = "Mouse Over me!";
     this.animButton1.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
     // animButton2 element
     this.animButton2 = new Button();
     this.e_19.Children.Add(this.animButton2);
     this.animButton2.Name = "animButton2";
     this.animButton2.Content = "Mouse Over me!";
     this.animButton2.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
     // animButton3 element
     this.animButton3 = new Button();
     this.e_19.Children.Add(this.animButton3);
     this.animButton3.Name = "animButton3";
     this.animButton3.Content = "Mouse Over me!";
     this.animButton3.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
     // animButton4 element
     this.animButton4 = new Button();
     this.e_19.Children.Add(this.animButton4);
     this.animButton4.Name = "animButton4";
     this.animButton4.Content = "Mouse Over me!";
     this.animButton4.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
     // e_20 element
     this.e_20 = new Grid();
     this.e_19.Children.Add(this.e_20);
     this.e_20.Name = "e_20";
     // animBorder1 element
     this.animBorder1 = new Border();
     this.e_20.Children.Add(this.animBorder1);
     this.animBorder1.Name = "animBorder1";
     this.animBorder1.Height = 100F;
     this.animBorder1.Width = 200F;
     this.animBorder1.Margin = new Thickness(0F, 10F, 0F, 10F);
     EventTrigger animBorder1_ET_0 = new EventTrigger(Border.LoadedEvent, this.animBorder1);
     animBorder1.Triggers.Add(animBorder1_ET_0);
     BeginStoryboard animBorder1_ET_0_AC_0 = new BeginStoryboard();
     animBorder1_ET_0_AC_0.Name = "animBorder1_ET_0_AC_0";
     animBorder1_ET_0.AddAction(animBorder1_ET_0_AC_0);
     Storyboard animBorder1_ET_0_AC_0_SB = new Storyboard();
     animBorder1_ET_0_AC_0.Storyboard = animBorder1_ET_0_AC_0_SB;
     animBorder1_ET_0_AC_0_SB.Name = "animBorder1_ET_0_AC_0_SB";
     SolidColorBrushAnimation animBorder1_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation();
     animBorder1_ET_0_AC_0_SB_TL_0.Name = "animBorder1_ET_0_AC_0_SB_TL_0";
     animBorder1_ET_0_AC_0_SB_TL_0.AutoReverse = true;
     animBorder1_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 5, 0));
     animBorder1_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever;
     animBorder1_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 255, 0, 255);
     animBorder1_ET_0_AC_0_SB_TL_0.To = new ColorW(0, 0, 255, 255);
     ExponentialEase animBorder1_ET_0_AC_0_SB_TL_0_EA = new ExponentialEase();
     animBorder1_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder1_ET_0_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetName(animBorder1_ET_0_AC_0_SB_TL_0, "animBorder1");
     Storyboard.SetTargetProperty(animBorder1_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty);
     animBorder1_ET_0_AC_0_SB.Children.Add(animBorder1_ET_0_AC_0_SB_TL_0);
     // animBorder2 element
     this.animBorder2 = new Border();
     this.e_20.Children.Add(this.animBorder2);
     this.animBorder2.Name = "animBorder2";
     this.animBorder2.Height = 50F;
     this.animBorder2.Width = 100F;
     this.animBorder2.Margin = new Thickness(50F, 35F, 50F, 35F);
     EventTrigger animBorder2_ET_0 = new EventTrigger(Border.LoadedEvent, this.animBorder2);
     animBorder2.Triggers.Add(animBorder2_ET_0);
     BeginStoryboard animBorder2_ET_0_AC_0 = new BeginStoryboard();
     animBorder2_ET_0_AC_0.Name = "animBorder2_ET_0_AC_0";
     animBorder2_ET_0.AddAction(animBorder2_ET_0_AC_0);
     Storyboard animBorder2_ET_0_AC_0_SB = new Storyboard();
     animBorder2_ET_0_AC_0.Storyboard = animBorder2_ET_0_AC_0_SB;
     animBorder2_ET_0_AC_0_SB.Name = "animBorder2_ET_0_AC_0_SB";
     SolidColorBrushAnimation animBorder2_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation();
     animBorder2_ET_0_AC_0_SB_TL_0.Name = "animBorder2_ET_0_AC_0_SB_TL_0";
     animBorder2_ET_0_AC_0_SB_TL_0.AutoReverse = true;
     animBorder2_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 3, 0));
     animBorder2_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever;
     animBorder2_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 0, 0, 255);
     animBorder2_ET_0_AC_0_SB_TL_0.To = new ColorW(255, 255, 255, 255);
     CubicEase animBorder2_ET_0_AC_0_SB_TL_0_EA = new CubicEase();
     animBorder2_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder2_ET_0_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_0, "animBorder2");
     Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty);
     animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_0);
     FloatAnimation animBorder2_ET_0_AC_0_SB_TL_1 = new FloatAnimation();
     animBorder2_ET_0_AC_0_SB_TL_1.Name = "animBorder2_ET_0_AC_0_SB_TL_1";
     animBorder2_ET_0_AC_0_SB_TL_1.AutoReverse = true;
     animBorder2_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 4, 0));
     animBorder2_ET_0_AC_0_SB_TL_1.RepeatBehavior = RepeatBehavior.Forever;
     animBorder2_ET_0_AC_0_SB_TL_1.From = 1F;
     animBorder2_ET_0_AC_0_SB_TL_1.To = 0F;
     Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_1, "animBorder2");
     Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_1, Border.OpacityProperty);
     animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_1);
     ImageManager.Instance.AddImage("Images/EmptyKeysLogoTextSmall");
     ImageManager.Instance.AddImage("Images/SunBurn");
     FontManager.Instance.AddFont("Segoe UI", 13.33333F, FontStyle.Regular, "Segoe_UI_10_Regular");
     FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold");
     FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
 }
示例#49
0
    public MainDialog()
    {
        leftPadCol1 = 11;
        leftPadCol2 = 181;
        leftPadCol3 = 311;

        Text="Mouse";
        StartPosition = FormStartPosition.Manual;
        Location = new Point(100, 100);
        Size = new Size(600, 400);

        Closed += new EventHandler(MainDialog_Closed);

        //left column
        m_LB = new ListBox();
        m_LB.Items.Clear();
        m_LB.IntegralHeight = false;
        m_LB.Location = new Point(leftPadCol1, 10);
        m_LB.Size = new Size(160, 190);
        m_LB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"});
        m_LB.SelectionMode = SelectionMode.One;
        m_LB.SetSelected(1, true);
        m_LB.SelectedIndexChanged += new EventHandler(LB_SelIndChanged);
        Controls.Add(m_LB);

        m_B_Create = new Button();
        m_B_Create.Text = "Create";
        m_B_Create.Location = new Point(5, 20);
        m_B_Create.Size = new Size(100, 24);
        m_B_Create.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Create.Click += new System.EventHandler(B_C_Create);
        m_B_Create.BackColor = Color.Green;
        Controls.Add(m_B_Create);

        m_B_Edit = new Button();
        m_B_Edit.Text = "Edit";
        m_B_Edit.Location = new Point(5, 50);
        m_B_Edit.Size = new Size(100, 24);
        m_B_Edit.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Edit.Click += new System.EventHandler(B_C_Edit);
        m_B_Edit.BackColor = Color.Blue;
        Controls.Add(m_B_Edit);

        m_B_Delete = new Button();
        m_B_Delete.Text = "Delete";
        m_B_Delete.Location = new Point(5, 80);
        m_B_Delete.Size = new Size(100, 24);
        m_B_Delete.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Delete.Click += new System.EventHandler(B_C_Delete);
        m_B_Delete.BackColor = Color.Red;
        Controls.Add(m_B_Delete);

        m_GB_Button = new GroupBox();
        m_GB_Button.Text = "Edit list";
        m_GB_Button.Location = new Point(leftPadCol1, 211);
        m_GB_Button.Size = new Size(110, 110);
        m_GB_Button.Controls.AddRange(new Control[] {m_B_Create, m_B_Edit, m_B_Delete});
        Controls.Add(m_GB_Button);

        //middle column
        m_LabelName = new Label();
        m_LabelName.Text = "Name";
        m_LabelName.Name = "LabelName";
        m_LabelName.Location = new Point(leftPadCol2, 10);
        m_LabelName.Size = new Size(120, 16);
        m_LabelName.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelName.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelName.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelName);

        m_LabelColor = new Label();
        m_LabelColor.Text = "Color";
        m_LabelColor.Name = "LabelColor";
        m_LabelColor.Location = new Point(leftPadCol2, 40);
        m_LabelColor.Size = new Size(120, 16);
        m_LabelColor.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelColor.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelColor.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelColor);

        m_LabelSite = new Label();
        m_LabelSite.Text = "Web Site";
        m_LabelSite.Name = "LabelSite";
        m_LabelSite.Location = new Point(leftPadCol2, 130);
        m_LabelSite.Size = new Size(120, 16);
        m_LabelSite.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelSite.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelSite.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelSite);

        //right column
        m_TBName = new TextBox();
        m_TBName.Text = "";
        m_TBName.Location = new Point(leftPadCol3, 10);
        m_TBName.Size = new Size(120, 16);
        m_TBName.Multiline = false;
        m_TBName.MaxLength = 1000;
        m_TBName.ScrollBars = ScrollBars.Both;
        m_TBName.WordWrap = false;
        m_TBName.TextChanged += new EventHandler(TB_TextChanged);
        Controls.Add(m_TBName);

        m_RB_Red = new RadioButton();
        m_RB_Red.Text = "Red";
        m_RB_Red.Checked = false;
        m_RB_Red.Location = new Point(16, 16);
        m_RB_Red.Size = new Size(80, 20);
        m_RB_Red.Click += new System.EventHandler(RB_Click);
        m_RB_Red.Click += new System.EventHandler(RB_Click_Mes);

        m_RB_Green = new RadioButton();
        m_RB_Green.Text = "Green";
        m_RB_Green.Checked = true;
        m_RB_Green.Location = new Point(16, 36);
        m_RB_Green.Size = new Size(80, 20);
        m_RB_Green.Click += new System.EventHandler(RB_Click);

        m_RB_Blue = new RadioButton();
        m_RB_Blue.Text = "Blue";
        m_RB_Blue.Checked = false;
        m_RB_Blue.Location = new Point(16, 56);
        m_RB_Blue.Size = new Size(80, 20);
        m_RB_Blue.Click += new System.EventHandler(RB_Click);

        m_GB_Color = new GroupBox();
        m_GB_Color.Text = "Choose color";
        m_GB_Color.Location = new Point(leftPadCol3, 40);
        m_GB_Color.Size = new Size(120, 80);
        m_GB_Color.Controls.AddRange(new Control[] {m_RB_Red, m_RB_Green, m_RB_Blue});
        Controls.Add(m_GB_Color);

        m_LLabel = new LinkLabel();
        m_LLabel.Name = "Label2";
        m_LLabel.Text = "www.logitec.com";
        //m_LLabel.Text = "text.txt";
        m_LLabel.Location = new Point(leftPadCol3, 130);
        m_LLabel.Size = new Size(120, 16);
        m_LLabel.TextAlign = ContentAlignment.MiddleLeft;
        m_LLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(L2_LClicked);
        Controls.Add(m_LLabel);

        m_TT = new ToolTip();
        m_TT.AutomaticDelay = 300;
        m_TT.ShowAlways = true;
        m_TT.SetToolTip(m_B_Create, "pressing the button will display message box");

        m_CLB = new CheckedListBox();
        m_CLB.Items.Clear();
        m_CLB.IntegralHeight = false;
        m_CLB.Location = new Point(310, 310);
        m_CLB.Size = new Size(160, 90);
        m_CLB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"});
        m_CLB.SelectionMode = SelectionMode.One;
        m_CLB.SetSelected(1, true);
        m_CLB.CheckOnClick = true;
        m_CLB.SelectedIndexChanged += new EventHandler(CLB_SelIndChanged);
        Controls.Add(m_CLB);

        // Создаем экземпляр класса
        XmlDocument xmlDoc = new XmlDocument();
        // Загружаем XML-документ из файла
        xmlDoc.Load("db.xml");
        // Загружаем XML-документ из строки
        // xmlDoc.LoadXML(s1);

        // Получаем всех детей корневого элемента
        // xmlDoc.DocumentElement - корневой элемент
        foreach (XmlNode table in xmlDoc.DocumentElement.ChildNodes)
        {
            // перебираем все атрибуты элемента
            foreach (XmlAttribute attr in table.Attributes)
            {
                // attr.Name - имя текущего атрибута
                // attr.Value - значение текущего атрибута
                m_LB.Items.Add(attr.Name + ":" + attr.Value);
            }

            // перебираем всех детей текущего узла
            foreach (XmlNode ch in table.ChildNodes)
            {

            }
            // Получаем текст хранящийся в текущем узле
            //MessageBox.Show(s);
        }
    }
示例#50
0
		/// <summary>
		/// Creates new instance of BaseItem and assigns item name and item text.
		/// </summary>
		/// <param name="sItemName">Item Name</param>
		/// <param name="ItemText">Item Text</param>
		public BaseItem(string sItemName, string ItemText)
		{
            if (ItemText == null)
                ItemText = "";
			m_Text=ItemText;
			if(m_Text!="")
				m_AccessKey=NativeFunctions.GetAccessKey(m_Text);
			m_Rect=System.Drawing.Rectangle.Empty;
			m_ContainerControl=null;
			m_HotSubItem=null;
			m_IsContainer=false;
			m_SubItems=null;
			m_Parent=null;
			m_NeedRecalcSize=true;
			m_Visible=true;
			m_Expanded=false;
			m_AutoExpand=false;
			m_ItemData="";
			m_Enabled=true;
			m_BeginGroup=false;
			m_Style=eDotNetBarStyle.OfficeXP;
			m_Description="";
			m_Tooltip="";
			m_Name=sItemName;
			m_Category="";
			m_Orientation=eOrientation.Horizontal;
			m_ToolTipWnd=null;
			m_Id=++s_IdCounter;
			m_IsOnCustomizeMenu=false;
			m_IsOnCustomizeDialog=false;
			m_SystemItem=false;
			//m_AccessKey=;
			m_Shortcuts=null;
			m_DesignMode=false;
			m_CanCustomize=true;
			m_ShowSubItems=true;
			m_ItemAlignment=eItemAlignment.Near;
			m_Focused=false;
			m_Owner=null;
            MarkupTextChanged();
        }
示例#51
0
        public static void SetSelectedDayWeatherNotes(this DateTime dateTime, IDictionary <DateTime, DayData> dayDataDictionary, TextBox selectedDayNotes, Label selectedDayWeather)
        {
            if (dayDataDictionary != null && selectedDayNotes != null && selectedDayWeather != null && dayDataDictionary.ContainsKey(dateTime))
            {
                DayData dayData = dayDataDictionary[dateTime];

                selectedDayNotes.Text = dayData.Notes;
                if (dayData.WeatherGenerated && dayData.Weather != null)
                {
                    WeatherData weather = dayData.Weather;

                    StringBuilder ttBuilder = new StringBuilder("Weather Penalities - ");
                    StringBuilder builder   = new StringBuilder("Today's Temperature is: ");

                    double range = 0.1; //(new WeatherGenerator.Dice { Sides = 5 }.Roll() + 7) * 0.01;
                    double tMin = weather.Temperature - range * weather.Temperature, tMax = weather.Temperature + range * weather.Temperature;
                    double temperature = weather.Temperature;
                    if (temperature > 90 || temperature < 40)
                    {
                        ttBuilder.AppendLine();
                        ttBuilder.Append("Temp.: ");
                        if (temperature > 140)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[6]);
                        }
                        else if (temperature > 110)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[5]);
                        }
                        else if (temperature > 90)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[4]);
                        }
                        else if (temperature < -20)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[0]);
                        }
                        else if (temperature < 0)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[1]);
                        }
                        else if (temperature < 40)
                        {
                            ttBuilder.Append(DescriptionData.TEMP_DESCRIPTIONS[2]);
                        }
                    }

                    builder.Append(tMin.ToString("0.#°"));
                    builder.Append(" to ");
                    builder.Append(tMax.ToString("0.#° F"));
                    builder.AppendLine();
                    StringBuilder subBuilder = new StringBuilder("Wind: ");
                    subBuilder.Append(weather.Wind.Level.ToString());
                    if (weather.Wind.Level != WindLevel.Calm)
                    {
                        subBuilder.Append(" (");
                        subBuilder.Append(weather.Wind.Speed.ToString("0"));
                        subBuilder.Append(" mph ");
                        subBuilder.Append(weather.Wind.Direction.ToString());
                        subBuilder.Append(")");

                        if ((int)weather.Wind.Level > (int)WindLevel.Moderate)
                        {
                            ttBuilder.AppendLine();
                            ttBuilder.Append("Wind: ");
                            ttBuilder.Append(DescriptionData.WIND_DESCRIPTIONS[(int)weather.Wind.Level]);
                        }
                    }
                    if (subBuilder.Length < 22)
                    {
                        subBuilder.Append(TB);
                    }
                    if (subBuilder.Length < 17)
                    {
                        subBuilder.Append(TB);
                    }
                    subBuilder.Append(TB);
                    subBuilder.Append(TB);
                    subBuilder.Append("Overcast: ");
                    subBuilder.Append(weather.Precipitation.CloudCover.ToString());
                    if (weather.Precipitation.CloudCover == OvercastLevel.Heavy)
                    {
                        ttBuilder.AppendLine();
                        ttBuilder.Append("Overcast: ");
                        ttBuilder.Append(DescriptionData.HEAVY_OVERCAST_DESCRIPTION);
                    }

                    builder.Append(subBuilder.ToString());


                    DescriptionData.AddPrecipitationDesciption(weather, builder, ttBuilder);

                    if (weather.MorningFog.Level != FogLevel.None)
                    {
                        builder.AppendLine();
                        builder.Append("Morning: ");
                        builder.Append(weather.MorningFog.Level.ToString());
                        builder.Append(" Fog for ");
                        builder.Append(weather.MorningFog.Duration);
                        builder.Append(" Hours.");
                        ttBuilder.AppendLine();
                        ttBuilder.Append("Morning Fog: ");
                        ttBuilder.Append(DescriptionData.FOG_DESCRIPTIONS[(int)weather.MorningFog.Level]);
                    }

                    if (weather.EveningFog.Level != FogLevel.None)
                    {
                        builder.AppendLine();
                        builder.Append("Evening: ");
                        builder.Append(weather.EveningFog.Level.ToString());
                        builder.Append(" Fog for ");
                        builder.Append(weather.EveningFog.Duration);
                        builder.Append(" Hours.");
                        ttBuilder.AppendLine();
                        ttBuilder.Append("Evening Fog: ");
                        ttBuilder.Append(DescriptionData.FOG_DESCRIPTIONS[(int)weather.EveningFog.Level]);
                    }

                    string holidayText = HolidayData.GetHolidayText(dateTime);
                    if (holidayText != null)
                    {
                        builder.AppendLine();
                        builder.Append("Holiday(s) Today - ");
                        builder.AppendLine();
                        builder.Append(holidayText);
                    }

                    selectedDayWeather.Content = builder.ToString();

                    if (ttBuilder.ToString() != "Weather Penalities - ")
                    {
                        ToolTip temp = new ToolTip();
                        temp.Content = ttBuilder.ToString();
                        selectedDayWeather.ToolTip = temp;
                    }
                    else
                    {
                        selectedDayWeather.ToolTip = null;
                    }
                }
                else
                {
                    string holidayText = HolidayData.GetHolidayText(dateTime);
                    if (holidayText != null)
                    {
                        selectedDayWeather.Content = DEFAULT_WEATHER_TEXT + NL + "Holiday(s) Today - " + NL + holidayText;
                    }
                    else
                    {
                        selectedDayWeather.Content = DEFAULT_WEATHER_TEXT;
                    }
                    selectedDayWeather.ToolTip = null;
                }
            }
            else
            {
                selectedDayNotes.Text = DEFAULT_DAILY_NOTES_TEXT;
                string holidayText = HolidayData.GetHolidayText(dateTime);
                if (holidayText != null)
                {
                    selectedDayWeather.Content = DEFAULT_WEATHER_TEXT + NL + "Holiday(s) Today - " + NL + holidayText;
                }
                else
                {
                    selectedDayWeather.Content = DEFAULT_WEATHER_TEXT;
                }
                selectedDayWeather.ToolTip = null;
            }
        }
示例#52
0
        protected void MyInitializeComponents()
        {
            InitializeComponent();

            foreach (Control ctl in Controls.GetRecursive())
            {
                ctl.Text = StringParser.Parse(ctl.Text);
            }
            this.Text = StringParser.Parse(this.Text);

            ImageList imglist = new ImageList();

            imglist.ColorDepth = ColorDepth.Depth32Bit;
            imglist.Images.Add(IconService.GetBitmap("Icons.16x16.OpenFolderBitmap"));
            imglist.Images.Add(IconService.GetBitmap("Icons.16x16.ClosedFolderBitmap"));
            categoryTreeView.ImageList = imglist;

            templateListView.SelectedIndexChanged += new EventHandler(SelectedIndexChange);
            categoryTreeView.AfterSelect          += new TreeViewEventHandler(CategoryChange);
            categoryTreeView.BeforeSelect         += new TreeViewCancelEventHandler(OnBeforeExpand);
            categoryTreeView.BeforeExpand         += new TreeViewCancelEventHandler(OnBeforeExpand);
            categoryTreeView.BeforeCollapse       += new TreeViewCancelEventHandler(OnBeforeCollapse);
            solutionNameTextBox.TextChanged       += new EventHandler(PathChanged);
            nameTextBox.TextChanged     += new EventHandler(PathChanged);
            locationTextBox.TextChanged += new EventHandler(PathChanged);

            if (createNewSolution)
            {
                createDirectoryForSolutionCheckBox.Checked         = CreateDirectoryForSolution;
                createDirectoryForSolutionCheckBox.CheckedChanged += delegate {
                    CreateDirectoryForSolution = createDirectoryForSolutionCheckBox.Checked;
                };
            }
            else
            {
                solutionNameTextBox.Visible = false;
                solutionNameLabel.Visible   = false;
                createDirectoryForSolutionCheckBox.Visible = false;
                bottomPanel.Height -= solutionNameTextBox.Height;

                createDirectoryForSolutionCheckBox.Checked = false;
            }

            largeIconsRadioButton.Checked         = PropertyService.Get("Dialogs.NewProjectDialog.LargeImages", true);
            largeIconsRadioButton.CheckedChanged += new EventHandler(IconSizeChange);
            largeIconsRadioButton.Image           = IconService.GetBitmap("Icons.16x16.LargeIconsIcon");

            smallIconsRadioButton.Checked         = !PropertyService.Get("Dialogs.NewProjectDialog.LargeImages", true);
            smallIconsRadioButton.CheckedChanged += new EventHandler(IconSizeChange);
            smallIconsRadioButton.Image           = IconService.GetBitmap("Icons.16x16.SmallIconsIcon");

            openButton.Click   += new EventHandler(OpenEvent);
            browseButton.Click += new EventHandler(BrowseDirectories);
            createDirectoryForSolutionCheckBox.CheckedChanged += new EventHandler(PathChanged);

            ToolTip tooltip = new ToolTip();

            tooltip.SetToolTip(largeIconsRadioButton, StringParser.Parse("${res:Global.LargeIconToolTip}"));
            tooltip.SetToolTip(smallIconsRadioButton, StringParser.Parse("${res:Global.SmallIconToolTip}"));
            tooltip.Active = true;

            IconSizeChange(this, EventArgs.Empty);
        }
                protected internal DockPaneStripFromBase(DockPane pane)
                    : base(pane)
                {
                    SetStyle(ControlStyles.ResizeRedraw, true);
                    SetStyle(ControlStyles.UserPaint, true);
                    SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                    SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
                    SetStyle(ControlStyles.SupportsTransparentBackColor, true);

                    SuspendLayout();
                    Font = SystemInformation.MenuFont;
                    BackColor = Color.FromArgb(228, 226, 213);

                    m_components = new Container();
                    m_toolTip = new ToolTip(Components);

                    m_buttonClose = new PopupButton(ImageCloseEnabled, ImageCloseDisabled);
                    m_buttonClose.IsActivated = true;
                    m_buttonClose.ActiveBackColorGradientBegin = Color.FromArgb(228, 226, 213);
                    m_buttonClose.ActiveBackColorGradientEnd = Color.FromArgb(228, 226, 213);
                    m_buttonClose.ToolTipText = ToolTipClose;
                    m_buttonClose.Anchor = AnchorStyles.Top || AnchorStyles.Right;

                    m_buttonOptions = new PopupButton(ImageOptionsEnabled, ImageOptionsDisabled);
                    m_buttonOptions.IsActivated = true;
                    m_buttonOptions.ActiveBackColorGradientBegin = Color.FromArgb(228, 226, 213);
                    m_buttonOptions.ActiveBackColorGradientEnd = Color.FromArgb(228, 226, 213);
                    m_buttonOptions.ToolTipText = ToolTipOptions;
                    m_buttonOptions.Anchor = AnchorStyles.Top || AnchorStyles.Right;

                    m_buttonClose.Click += new System.EventHandler(Close_Click);
                    m_buttonOptions.Click += new System.EventHandler(Options_Click);
                    Controls.AddRange(new Control[] {m_buttonClose, m_buttonOptions});
                    ResumeLayout();
                }
示例#54
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(Form1));
     this.button1          = new Syncfusion.Windows.Forms.ButtonAdv();
     this.btnFill          = new Syncfusion.Windows.Forms.ButtonAdv();
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.toolTip1         = new System.Windows.Forms.ToolTip(this.components);
     this.label2           = new System.Windows.Forms.Label();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.wordDocxRadioBtn = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.wordDocRadioBtn  = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.pdfRadioBtn      = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pdfRadioBtn)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance         = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button1.BeforeTouchSize    = new System.Drawing.Size(108, 23);
     this.button1.BorderStyleAdv     = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.Dashed;
     this.button1.ComboEditBackColor = System.Drawing.Color.Silver;
     this.button1.Font                    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor               = System.Drawing.Color.White;
     this.button1.ImageAlign              = System.Drawing.ContentAlignment.MiddleRight;
     this.button1.IsBackStageButton       = false;
     this.button1.KeepFocusRectangle      = false;
     this.button1.Location                = new System.Drawing.Point(245, 152);
     this.button1.Name                    = "button1";
     this.button1.Office2007ColorScheme   = Syncfusion.Windows.Forms.Office2007Theme.Managed;
     this.button1.Size                    = new System.Drawing.Size(108, 23);
     this.button1.TabIndex                = 0;
     this.button1.Text                    = "Create Form";
     this.button1.UseVisualStyle          = true;
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // btnFill
     //
     this.btnFill.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnFill.Appearance         = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.btnFill.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.btnFill.BeforeTouchSize    = new System.Drawing.Size(108, 23);
     this.btnFill.BorderStyleAdv     = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.Dashed;
     this.btnFill.ComboEditBackColor = System.Drawing.Color.Silver;
     this.btnFill.Enabled            = false;
     this.btnFill.Font                    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnFill.ForeColor               = System.Drawing.Color.White;
     this.btnFill.ImageAlign              = System.Drawing.ContentAlignment.MiddleRight;
     this.btnFill.IsBackStageButton       = false;
     this.btnFill.KeepFocusRectangle      = false;
     this.btnFill.Location                = new System.Drawing.Point(245, 184);
     this.btnFill.Name                    = "btnFill";
     this.btnFill.Office2007ColorScheme   = Syncfusion.Windows.Forms.Office2007Theme.Managed;
     this.btnFill.Size                    = new System.Drawing.Size(108, 23);
     this.btnFill.TabIndex                = 2;
     this.btnFill.Text                    = "Fill Form";
     this.btnFill.UseVisualStyle          = true;
     this.btnFill.UseVisualStyleBackColor = false;
     this.btnFill.Click                  += new System.EventHandler(this.btnFill_Click);
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(365, 82);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 70;
     this.pictureBox1.TabStop  = false;
     //
     // label2
     //
     this.label2.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label2.Location  = new System.Drawing.Point(0, 85);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(363, 64);
     this.label2.TabIndex  = 74;
     this.label2.Text      = "Click the button to view the generated Word document or PDF. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document and PDF viewer is required to view the resultant PDF.";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.wordDocxRadioBtn);
     this.groupBox1.Controls.Add(this.wordDocRadioBtn);
     this.groupBox1.Controls.Add(this.pdfRadioBtn);
     this.groupBox1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(12, 152);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(209, 44);
     this.groupBox1.TabIndex = 101;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Save As";
     //
     // worddocxRadioBtn
     //
     this.wordDocxRadioBtn.BeforeTouchSize = new System.Drawing.Size(54, 20);
     this.wordDocxRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocxRadioBtn.Checked         = true;
     this.wordDocxRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.wordDocxRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocxRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocxRadioBtn.Location        = new System.Drawing.Point(83, 18);
     this.wordDocxRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocxRadioBtn.Name            = "wordDocxRadioBtn";
     this.wordDocxRadioBtn.Size            = new System.Drawing.Size(54, 20);
     this.wordDocxRadioBtn.TabIndex        = 103;
     this.wordDocxRadioBtn.Text            = "DOCX";
     this.wordDocxRadioBtn.ThemesEnabled   = true;
     //
     // worddocRadioBtn
     //
     this.wordDocRadioBtn.BeforeTouchSize = new System.Drawing.Size(46, 20);
     this.wordDocRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.wordDocRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocRadioBtn.Location        = new System.Drawing.Point(6, 18);
     this.wordDocRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocRadioBtn.Name            = "wordDocRadioBtn";
     this.wordDocRadioBtn.Size            = new System.Drawing.Size(46, 20);
     this.wordDocRadioBtn.TabIndex        = 44;
     this.wordDocRadioBtn.Text            = "DOC";
     this.wordDocRadioBtn.ThemesEnabled   = true;
     //
     // pdfRadioBtn
     //
     this.pdfRadioBtn.BeforeTouchSize = new System.Drawing.Size(45, 20);
     this.pdfRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.pdfRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.pdfRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.pdfRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.pdfRadioBtn.Location        = new System.Drawing.Point(164, 18);
     this.pdfRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.pdfRadioBtn.Name            = "pdfRadioBtn";
     this.pdfRadioBtn.Size            = new System.Drawing.Size(45, 20);
     this.pdfRadioBtn.TabIndex        = 45;
     this.pdfRadioBtn.Text            = "PDF";
     this.pdfRadioBtn.ThemesEnabled   = true;
     //
     // Form1
     //
     this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.ClientSize          = new System.Drawing.Size(365, 219);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.btnFill);
     this.DropShadow      = true;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Forms";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pdfRadioBtn)).EndInit();
     this.ResumeLayout(false);
 }
示例#55
0
		/// <summary>
		/// Destroys tooltip window.
		/// </summary>
		internal protected void HideToolTip()
		{
			if(m_ToolTipWnd!=null)
			{
				System.Drawing.Rectangle tipRect=m_ToolTipWnd.Bounds;
				tipRect.Width+=5;
				tipRect.Height+=6;
				
				OnTooltip(false);
                OnToolTipVisibleChanged(new EventArgs());
				try
				{
					if(m_ToolTipWnd!=null)
					{
						m_ToolTipWnd.Hide();
						m_ToolTipWnd.Dispose();
						m_ToolTipWnd=null;
					}
				}
				catch{}

				if(this.ContainerControl!=null)
				{
					System.Windows.Forms.Control ctrl=this.ContainerControl as System.Windows.Forms.Control;
					if(ctrl!=null)
						ctrl.Invalidate(ctrl.RectangleToClient(tipRect),false);
				}
			}
		}
示例#56
0
        private void tooltips()
        {
            ToolTip tip = new ToolTip();

            tip.SetToolTip(buttonDrag, "Перетягнути вікно");
        }
 void Start()
 {
     inv = GameObject.Find("Inventory").GetComponent<Inventory>();
     tooltip = inv.GetComponent<ToolTip>();
 }
示例#58
0
        public static void CreatePluginToggles(StackPanel togglePanel)
        {
            // Add sideloader maintaining mode toggle ----------------------
            if (EnvironmentHelper.SideloaderMaintainerMode)
            {
                var toggleSideloadMaintain = new CheckBox
                {
                    Name       = "toggleSideloaderMaintain",
                    Content    = "Sideloader Maintainer Mode",
                    Foreground = Brushes.White,
                    IsChecked  = EnvironmentHelper.SideloaderMaintainerEnabled
                };
                toggleSideloadMaintain.Checked   += (sender, args) => EnvironmentHelper.SideloaderMaintainerEnabled = true;
                toggleSideloadMaintain.Unchecked += (sender, args) => EnvironmentHelper.SideloaderMaintainerEnabled = false;
                toggleSideloadMaintain.ToolTip    = "Enable test modpack.\nOnly meant for testing new modpack builds.";
                togglePanel.Children.Add(toggleSideloadMaintain);
            }

            // Add developer mode toggle ------------------------------------
            if (EnvironmentHelper.IsBepIn)
            {
                var toggleConsole = new CheckBox
                {
                    Name       = "toggleConsole",
                    Content    = Localizable.ToggleConsole,
                    Foreground = Brushes.White,
                    IsChecked  = EnvironmentHelper.DeveloperModeEnabled
                };
                toggleConsole.Checked   += (sender, args) => EnvironmentHelper.DeveloperModeEnabled = true;
                toggleConsole.Unchecked += (sender, args) => EnvironmentHelper.DeveloperModeEnabled = false;
                toggleConsole.ToolTip    = "Enable console to see game status console.";
                togglePanel.Children.Add(toggleConsole);
            }

            // Add experimental mode toggle ---------------------------------
            var toggleExperimental = new CheckBox
            {
                Name       = "toggleExperimental",
                Content    = Localizable.ExperimentalMode,
                Foreground = Brushes.White,
                IsChecked  = EnvironmentHelper.BleedingModeEnabled
            };

            toggleExperimental.Checked   += (sender, args) => EnvironmentHelper.BleedingModeEnabled = true;
            toggleExperimental.Unchecked += (sender, args) => EnvironmentHelper.BleedingModeEnabled = false;
            toggleExperimental.ToolTip    = "Allow installation of experimental mods to this game.";
            togglePanel.Children.Add(toggleExperimental);



            // Add toggles from the list ------------------------------------
            foreach (var c in _toggleList)
            {
                var rootDir = c.IsIPA ? EnvironmentHelper.IPAPluginsDir : EnvironmentHelper.BepinPluginsDir;

                if (!Directory.Exists(rootDir))
                {
                    continue;
                }

                var pluginFile = Directory.GetFiles(rootDir, c.PluginDllWithoutExtension + ".dl*", SearchOption.AllDirectories).FirstOrDefault();

                if (pluginFile == null)
                {
                    continue;
                }

                var f    = new FileInfo(pluginFile);
                var name = pluginFile.Substring(0, f.FullName.Length - f.Extension.Length + 1);

                // Doing a quick check to make sure there isn't both enabled and disabled variants in the folder
                var DupCheck = Path.Combine(f.FullName, name);
                if (File.Exists(DupCheck + ".dll") && File.Exists(DupCheck + ".dl_"))
                {
                    File.Delete(DupCheck + ".dl_");
                }

                var tooltip = new ToolTip
                {
                    Content = c.PluginToolTip
                };

                var toggle = new CheckBox
                {
                    Name       = c.CodeId,
                    Content    = c.DisplayName,
                    Foreground = Brushes.White,
                    IsChecked  = f.Extension == ".dll"
                };
                toggle.Checked += (sender, args) =>
                {
                    c.EnabledChangedAction?.Invoke(true);
                    f.MoveTo(Path.Combine(f.FullName, name + ".dll"));
                };
                toggle.Unchecked += (sender, args) =>
                {
                    c.EnabledChangedAction?.Invoke(false);
                    f.MoveTo(Path.Combine(f.FullName, name + ".dl_"));
                };

                if (c.PluginToolTip != "")
                {
                    toggle.ToolTip = tooltip;
                }

                c._toggle = toggle;

                togglePanel.Children.Add(toggle);
            }
        }
示例#59
0
 protected virtual void Init()
 {
     InitializeComponent();
     #if GTK
     this.fToolTip = new ToolTip(this);
     #else
     this.ResizeRedraw = true;
     this.SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick | ControlStyles.UserPaint, true);
     this.fToolTip = new ToolTip();
     #endif
     this.fPadsForeColor = Color.White;
     this.fPads = new PadList();
     AddPad(0, 0, 1, 1);
     this.fPadSplit = false;
     this.fPadSplitIndex = 0;
     DoubleBufferingEnabled = true;
     this.fSmoothingEnabled = false;
     this.fAntiAliasingEnabled = false;       
     this.fIsUpdating = false;
     PrintX = 10;
     PrintY = 10;
     PrintWidth = 600;
     PrintHeight = 400;
     PrintAlign = EPrintAlign.None;
     this.fPrintLayout = EPrintLayout.Portrait;
     this.fSessionGridColor = Color.Blue;
 }
示例#60
0
 public static void SetContent(this ToolTip toolTip, Control control, object content) => ToolTip.SetTip(control, content);