Beispiel #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 protected virtual void InitializeComponent()
 {
     System.Resources.ResourceManager resources =
         new System.Resources.ResourceManager(typeof(BaseCalculator));
     this.toggleOffOn = new Mockingbird.HP.Control_Library.Toggle();
     this.SuspendLayout();
     //
     // toggleOffOn
     //
     this.toggleOffOn.LeftText     = "OFF";
     this.toggleOffOn.LeftWidth    = 30;
     this.toggleOffOn.Location     = new System.Drawing.Point(8, 56);
     this.toggleOffOn.MainWidth    = 50;
     this.toggleOffOn.Name         = "toggleOffOn";
     this.toggleOffOn.Position     = Mockingbird.HP.Control_Library.TogglePosition.Right;
     this.toggleOffOn.RightText    = "ON";
     this.toggleOffOn.RightWidth   = 30;
     this.toggleOffOn.Size         = new System.Drawing.Size(110, 16);
     this.toggleOffOn.TabIndex     = 2;
     this.toggleOffOn.ToggleClick += new Mockingbird.HP.Control_Library.Toggle.ToggleClickEvent(this.toggleOffOn_ToggleClick);
     //
     // BaseCalculator
     //
     this.Controls.Add(this.toggleOffOn);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview  = true;
     this.MaximizeBox = false;
     this.Closing    += new System.ComponentModel.CancelEventHandler(Calculator_Closing);
     this.KeyDown    += new System.Windows.Forms.KeyEventHandler(Calculator_KeyDown);
     this.KeyUp      += new System.Windows.Forms.KeyEventHandler(Calculator_KeyUp);
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        protected override void InitializeComponent()
        {
            base.InitializeComponent();
            System.Resources.ResourceManager resources =
                new System.Resources.ResourceManager(typeof(ProgrammableCalculator));
            this.toggleWprgmRun = new Mockingbird.HP.Control_Library.Toggle();
            this.contextMenu    = new System.Windows.Forms.ContextMenu();
            this.openMenuItem   = new System.Windows.Forms.MenuItem();
            this.saveMenuItem   = new System.Windows.Forms.MenuItem();
            this.saveAsMenuItem = new System.Windows.Forms.MenuItem();
            this.printMenuItem  = new System.Windows.Forms.MenuItem();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
            this.printDocument  = new System.Drawing.Printing.PrintDocument();
            this.SuspendLayout();
            //
            // toggleWprgmRun
            //
            this.toggleWprgmRun.LeftText     = "W/PRGM";
            this.toggleWprgmRun.LeftWidth    = 60;
            this.toggleWprgmRun.Location     = new System.Drawing.Point(160, 56);
            this.toggleWprgmRun.MainWidth    = 50;
            this.toggleWprgmRun.Name         = "toggleWprgmRun";
            this.toggleWprgmRun.Position     = Mockingbird.HP.Control_Library.TogglePosition.Right;
            this.toggleWprgmRun.RightText    = "RUN";
            this.toggleWprgmRun.RightWidth   = 30;
            this.toggleWprgmRun.Size         = new System.Drawing.Size(140, 16);
            this.toggleWprgmRun.TabIndex     = 3;
            this.toggleWprgmRun.ToggleClick += new Mockingbird.HP.Control_Library.Toggle.ToggleClickEvent(this.toggleWprgmRun_ToggleClick);
            //
            // contextMenu
            //
            this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                this.openMenuItem,
                this.saveMenuItem,
                this.saveAsMenuItem,
                this.printMenuItem
            });
            //
            // openMenuItem
            //
            this.openMenuItem.Index  = 0;
            this.openMenuItem.Text   = "&Open...";
            this.openMenuItem.Click += new System.EventHandler(this.openMenuItem_Click);
            //
            // saveMenuItem
            //
            this.saveMenuItem.Index  = 1;
            this.saveMenuItem.Text   = "&Save";
            this.saveMenuItem.Click += new System.EventHandler(this.saveMenuItem_Click);
            //
            // saveAsMenuItem
            //
            this.saveAsMenuItem.Index  = 2;
            this.saveAsMenuItem.Text   = "Save &As...";
            this.saveAsMenuItem.Click += new System.EventHandler(this.saveAsMenuItem_Click);
            //
            // printMenuItem
            //
            this.printMenuItem.Index  = 3;
            this.printMenuItem.Text   = "Print";
            this.printMenuItem.Click += new System.EventHandler(this.printMenuItem_Click);
            //
            // openFileDialog
            //
            this.openFileDialog.Filter = "HP67 Card Files (*.hp67)|*.hp67|All files (*.*)|*.*";
            //
            // saveFileDialog
            //
            this.saveFileDialog.Filter = "HP67 Card Files (*.hp67)|*.hp67|All files (*.*)|*.*";
            //
            // printDocument
            //
            this.printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument_PrintPage);
            //
            // ProgrammableCalculator
            //
            this.ContextMenu = this.contextMenu;
            this.Controls.Add(this.toggleWprgmRun);
            this.ResumeLayout(false);

            // Localize the UI.
            openMenuItem.Text   = Localization.GetString(Localization.OpenMenuItem);
            printMenuItem.Text  = Localization.GetString(Localization.PrintMenuItem);
            saveMenuItem.Text   = Localization.GetString(Localization.SaveMenuItem);
            saveAsMenuItem.Text = Localization.GetString(Localization.SaveAsMenuItem);
        }