Inheritance: Control
 public static void AddDeleteAction(Shape shape, ref ListBox listBoxShapes, ref GroupBox groupBoxShape)
 {
     if (IsActionTrackingDisabled)
         return;
     UpdateUndoRedoValues();
     actions.Add(new UndoRedo.WorkingActionDelete(shape, Editor.Shapes, ref listBoxShapes, ref groupBoxShape));
 }
Example #2
1
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
     this.label1 = new System.Windows.Forms.Label();
     this.listBox1 = new System.Windows.Forms.ListBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(64, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(248, 32);
     this.label1.TabIndex = 1;
     this.label1.Text = "HyperLoad 2.0";
     //
     // listBox1
     //
     this.listBox1.Items.AddRange(new object[] {
     "This program is completely free to use!",
     "",
     "Hyperload is an open-source program that can be used to",
     "program *.HEX files to your microcontroller.",
     "",
     "The Hyperload Protocol & related information can be found at:",
     "www.sociaLLedge.com/sjsu"});
     this.listBox1.Location = new System.Drawing.Point(14, 84);
     this.listBox1.Name = "listBox1";
     this.listBox1.Size = new System.Drawing.Size(304, 108);
     this.listBox1.TabIndex = 5;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.listBox1);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(320, 210);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop = false;
     //
     // AboutForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size(338, 225);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "AboutForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "About";
     this.Deactivate += new System.EventHandler(this.AboutForm_Deactivate);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #3
0
	private void AddPageLayout ()
	{
		
		groupPageLayout = new GroupBox();
		groupPageLayout.Location = new Point (16,110);
		groupPageLayout.Size = new System.Drawing.Size(360, 48);
		groupPageLayout.Text = "Page Layout";
		
		radioStandardLayout = new RadioButton();
		radioStandardLayout.Text = "Standard";
		radioStandardLayout.Location = new Point(24,15);
		radioStandardLayout.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
		radioStandardLayout.CheckedChanged += SetSuccessor;
		
		groupPageLayout.Controls.Add(radioStandardLayout);
		
		radioLandscape = new RadioButton();
		radioLandscape.Text = "Landscape";
		radioLandscape.Location = new Point (150,15);
		radioLandscape.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
		radioLandscape.CheckedChanged += SetSuccessor;
		
		groupPageLayout.Controls.Add(radioLandscape);
		
		this.groupBox1.Controls.Add(groupPageLayout);
	}
Example #4
0
File: Note.cs Project: burstas/rmps
 public void InitView(GroupBox gBox)
 {
     Location = new System.Drawing.Point(6, 18);
     Size = new System.Drawing.Size(296, 156);
     TabIndex = 0;
     gBox.Controls.Add(this);
 }
Example #5
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Labelled));
     this.groupBox1 = new GroupBox();
     this.textBox1 = new TextBox();
     this.groupBox1.SuspendLayout();
     base.SuspendLayout();
     this.groupBox1.Controls.Add(this.textBox1);
     this.groupBox1.Location = new Point(13, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new Size(0x128, 0x189);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "标签说明:";
     this.textBox1.Location = new Point(7, 0x15);
     this.textBox1.Multiline = true;
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new Size(0x11b, 0x162);
     this.textBox1.TabIndex = 0;
     this.textBox1.Text = resources.GetString("textBox1.Text");
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x141, 0x199);
     base.Controls.Add(this.groupBox1);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "Labelled";
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "Labelled";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     base.ResumeLayout(false);
 }
Example #6
0
        // Groupbox
        private void InitializeMyGroupBox()
        {
            // Create and initialize a GroupBox and a Button control.
            GroupBox groupBox11 = new GroupBox();
            Button button11 = new Button();
            button11.Location = new Point(1000, 420);

            // Set the FlatStyle of the GroupBox.
            groupBox11.FlatStyle = FlatStyle.Flat;

            // Add the Button to the GroupBox.
            groupBox11.Controls.Add(button11);

            // Add the GroupBox to the Form.
            Controls.Add(groupBox11);

            // Create and initialize a GroupBox and a Button control.
            GroupBox groupBox21 = new GroupBox();
            Button button21 = new Button();
            button21.Location = new Point(1000, 320);
            groupBox21.Location = new Point(1000, 320);

            // Set the FlatStyle of the GroupBox.
            groupBox21.FlatStyle = FlatStyle.Standard;

            // Add the Button to the GroupBox.
            groupBox21.Controls.Add(button21);

            // Add the GroupBox to the Form.
            Controls.Add(groupBox21);
        }
Example #7
0
 private void InitializeComponent()
 {
   this.groupBox1 = new GroupBox();
   this.propertyGrid = new PropertyGrid();
   this.groupBox1.SuspendLayout();
   this.SuspendLayout();
   this.groupBox1.Controls.Add((Control) this.propertyGrid);
   this.groupBox1.Location = new Point(16, 16);
   this.groupBox1.Name = "groupBox1";
   this.groupBox1.Size = new Size(368, 328);
   this.groupBox1.TabIndex = 0;
   this.groupBox1.TabStop = false;
   this.groupBox1.Text = "Settings";
   this.propertyGrid.Dock = DockStyle.Fill;
   this.propertyGrid.HelpVisible = false;
   this.propertyGrid.Location = new Point(3, 16);
   this.propertyGrid.Name = "propertyGrid";
   this.propertyGrid.Size = new Size(362, 309);
   this.propertyGrid.TabIndex = 0;
   this.propertyGrid.ToolbarVisible = false;
   this.propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(this.propertyGrid_PropertyValueChanged);
   this.AutoScaleDimensions = new SizeF(6f, 13f);
   this.Controls.Add((Control) this.groupBox1);
   this.Name = "EditorOptionsPanel";
   this.groupBox1.ResumeLayout(false);
   this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InformacjaOProdukcie));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.button1 = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     this.label1.Click += new System.EventHandler(this.label1_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.label2);
     resources.ApplyResources(this.groupBox2, "groupBox2");
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.TabStop = false;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // button1
     //
     resources.ApplyResources(this.button1, "button1");
     this.button1.Name = "button1";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // InformacjaOProdukcie
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.button1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "InformacjaOProdukcie";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.Load += new System.EventHandler(this.InformacjaOProdukcie_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #9
0
        protected override void AbstractDelete()
        {
            ListVal.DeleteCtrl(); //これが無いと、グループの中のコントロールが2回目以降表示されなくなる

            Remove(Panel, _border);
            _border = null;
        }
Example #10
0
        protected override void AbstractCreate(object value, ref int tabIndex)
        {
            int left = Margin;
            int top = Margin;

            // ボーダライン(groupPanel)の生成
            _border = (GroupBox) Create(Panel, new GroupBox(), left, top, -1);
            //border.setBorder(BorderFactory.createTitledBorder(getHelp()));
            _border.Text = Help;
            _border.AutoSize = false;

            //グループに含まれるコントロールを描画する
            var x = left + 8;
            var y = top + 12;
            ListVal.CreateCtrl(_border, x, y, ref tabIndex);
            var dimension = ListVal.Size;

            // borderのサイズ指定
            _border.Size = new Size(OptionDlg.Width() - 15, dimension.Height +18); // 横はダイアログ幅、縦は、含まれるコントロールで決まる

            // オフセット移動
            left += _border.Width;
            top += _border.Height;

            //値の設定
            AbstractWrite(value);

            // パネルのサイズ設定
            //Panel.setSize(left + width +Margin, top + height +Margin * 2);
            Panel.Size = new Size(left + Margin, top + Margin);
        }
Example #11
0
        private GroupBox createCustomGB(String name)
        {
            GroupBox gb = new GroupBox();
            gb.AutoSize = true;
            gb.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            gb.Anchor = AnchorStyles.Left | AnchorStyles.Right;

            FlowLayoutPanel p = new FlowLayoutPanel();
            p.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            p.AutoSize = true;
            p.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            p.WrapContents = true;
            p.Location = new System.Drawing.Point(6, 19);

            gb.Controls.Add(p);
            gb.Text = String.Format("Group {0}", name);

            for (int i = 0; i < 4; i++)
            {
                Button b = new Button();
                b.Text = String.Format("Button {0}", i);
                p.Controls.Add(b);
            }

            gb.MinimumSize = new Size(
                flowLayoutPanel1.Size.Width - flowLayoutPanel1.Margin.Right - 10,
                0
            );

            return gb;
        }
Example #12
0
		private void InitializeComponent()
		{
            this.grpLocalizacao = new System.Windows.Forms.GroupBox();
            this.trVwLocalizacao = new System.Windows.Forms.TreeView();
            this.grpLocalizacao.SuspendLayout();
            this.SuspendLayout();
            // 
            // grpLocalizacao
            // 
            this.grpLocalizacao.Controls.Add(this.trVwLocalizacao);
            this.grpLocalizacao.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grpLocalizacao.Location = new System.Drawing.Point(0, 0);
            this.grpLocalizacao.Name = "grpLocalizacao";
            this.grpLocalizacao.Size = new System.Drawing.Size(448, 224);
            this.grpLocalizacao.TabIndex = 0;
            this.grpLocalizacao.TabStop = false;
            // 
            // trVwLocalizacao
            // 
            this.trVwLocalizacao.Dock = System.Windows.Forms.DockStyle.Fill;
            this.trVwLocalizacao.HideSelection = false;
            this.trVwLocalizacao.Location = new System.Drawing.Point(3, 16);
            this.trVwLocalizacao.Name = "trVwLocalizacao";
            this.trVwLocalizacao.Size = new System.Drawing.Size(442, 205);
            this.trVwLocalizacao.TabIndex = 0;
            // 
            // ControloLocalizacao
            // 
            this.Controls.Add(this.grpLocalizacao);
            this.Name = "ControloLocalizacao";
            this.Size = new System.Drawing.Size(448, 224);
            this.grpLocalizacao.ResumeLayout(false);
            this.ResumeLayout(false);

		}
Example #13
0
 private void InitializeComponent()
 {
     this.grbMain = new GroupBox();
     this.btnBack = new Button();
     this.grbMain.SuspendLayout();
     base.SuspendLayout();
     this.grbMain.Controls.Add(this.btnBack);
     this.grbMain.Location = new Point(0, 0);
     this.grbMain.Name = "grbMain";
     this.grbMain.Size = new Size(470, 0x29);
     this.grbMain.TabIndex = 0x80;
     this.grbMain.TabStop = false;
     this.grbMain.Text = "Go back to the Configuration section";
     this.btnBack.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.btnBack.Location = new Point(0x175, 15);
     this.btnBack.Name = "btnBack";
     this.btnBack.Size = new Size(0x5b, 20);
     this.btnBack.TabIndex = 0x7b;
     this.btnBack.Text = "Back";
     this.btnBack.UseVisualStyleBackColor = true;
     this.btnBack.Click += new EventHandler(this.btnBack_Click);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(this.grbMain);
     base.Name = "BackButton";
     base.Size = new Size(470, 0x29);
     base.Tag = "";
     this.grbMain.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Example #14
0
        /******************************************************************************/
        public FuzzyMemFunc(Control parent, string caption, int index, int top, int left, MemFuncEventHandler handler)
        {
            _container = (GroupBox)parent;
              _index = index;
              _handler = handler;
              _text_box_list = new List<TextBox>();

              Font f_reg = new Font("Microsoft Sans Serif", 7);

              Label lbl = new Label();
              lbl.Font = f_reg;
              lbl.Location = new Point(LABEL_LEFT, top + (TB_HEIGHT * index) + 2);
              lbl.AutoSize = false;
              lbl.RightToLeft = RightToLeft.Yes;
              lbl.Size = new Size(LABEL_WIDTH, LABEL_HEIGHT);
              lbl.Text = caption;
              parent.Controls.Add(lbl);

              // Build 4 textboxes to hold trapezoidal func elements
              for(int i = 0; i < 4; i++)
              {
            TextBox tb = new TextBox();
            tb.Font = f_reg;
            tb.Size = new Size(TB_WIDTH, TB_HEIGHT);
            tb.Location = new Point(left + (TB_WIDTH * i), top + (TB_HEIGHT * index));
            tb.Text = string.Empty;
            parent.Controls.Add(tb);

            _text_box_list.Add(tb);
              }
        }
 public AssignmentDay(GroupBox par, int num, int x)
 {
     gbX = x;
     myNumber = num;
     parent = par;
     labels = new List<Label>();
 }
Example #16
0
 private void SetGroupBoxProperties(GroupBox gb)
 {
     gb.Left = groupBoxPropertiesRoot.Left;
     gb.Top = groupBoxPropertiesRoot.Top;
     gb.Size = groupBoxPropertiesRoot.Size;
     gb.Anchor = groupBoxPropertiesRoot.Anchor;
 }
        public void Incijaliziraj_Company(String text1, String text2, String text3,String text4)
        {
            gb = new GroupBox();

            gb.Size = new Size(500, 40);
            this.Controls.Add(gb);
            gb.Location = new Point(0, 0);


            text1Lbl = new Label();
            gb.Controls.Add(text1Lbl);
            text1Lbl.Text = text1;
            text1Lbl.Font = new Font("Verdana", 10, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
            text1Lbl.Size = new Size(150, 20);
            text1Lbl.Location = new Point(5, 15);

            text2Lbl = new Label();
            gb.Controls.Add(text2Lbl);
            text2Lbl.Text = text2;
            text2Lbl.Size = new Size(100, 15);
            text2Lbl.Location = new Point(this.text1Lbl.Location.X + 150,15);

            text3Lbl = new Label();
            gb.Controls.Add(text3Lbl);
            text3Lbl.Text = text3;
            text3Lbl.Size = new Size(100, 15);
            text3Lbl.Location = new Point(this.text1Lbl.Location.X + 250, 15);

            text4Lbl = new Label();
            gb.Controls.Add(text4Lbl);
            text4Lbl.Text = text4;
            text4Lbl.Size = new Size(50, 15);
            text4Lbl.Location = new Point(this.text1Lbl.Location.X + 440, 15);
        }
Example #18
0
        public Configuration(Map map, GroupBox fieldGroupbox, CheckBox checkAllFields, int featureLayer = 0, int polygonLayer = 0, List<string> ignoreList = null, bool selectMutipleFied = true)
        {
            this._map = map;
            this._fieldsGroupbox = fieldGroupbox;
            this._checkAllFields = checkAllFields;
            this._featureLayerIndex = featureLayer;
            this._polygonLayerIndex = 0;
            this._selectMutipleFied = selectMutipleFied;

            if (ignoreList != null)
                this.reserveFields = ignoreList;
            else
                this.reserveFields = new List<string>();

            SetLayers();

            this._checkAllFields.Visible = selectMutipleFied;

            this._checkAllFields.CheckStateChanged += CheckAllFields_CheckStateChanged;

            loadCheckListboxCollection();

            if (!this._selectMutipleFied)
            {
                bindCheckedEvent();
            }
        }
Example #19
0
	private static void DropHook(GroupBox sender)
	{
		
		sender.AllowDrop=true;
		sender.DragDrop+=new DragEventHandler(Drag_Drop);
		sender.DragEnter+=new DragEventHandler(Drag_Enter);
	}
Example #20
0
        public void GetTextures()
        {
            if (avatar.Textures == null) return;

            lblName.Text = this.avatar.Name;

            for (int j = 0; j < avatar.Textures.FaceTextures.Length; j++)
            {
                Primitive.TextureEntryFace face = avatar.Textures.FaceTextures[j];

                if (face != null)
                {
                    if (face.TextureID != AppearanceManager.DEFAULT_AVATAR_TEXTURE)
                    {
                        SLImageHandler img = new SLImageHandler(instance, face.TextureID, ((AvatarTextureIndex)j).ToString());

                        GroupBox gbx = new GroupBox();
                        gbx.Dock = DockStyle.Top;
                        gbx.Text = img.Text;
                        gbx.Height = 550;

                        img.Dock = DockStyle.Fill;
                        gbx.Controls.Add(img);
                        pnlImages.Controls.Add(gbx);
                    }
                }
            }
        }
Example #21
0
        // Radiobuttons
        public void InitializeRadioButtons()
        {
            this.groupBox11 = new System.Windows.Forms.GroupBox();
            this.radioButton21 = new System.Windows.Forms.RadioButton();
            this.radioButton11 = new System.Windows.Forms.RadioButton();
            // adding members into the groupbox

            this.groupBox11.Controls.Add(this.radioButton11);
            this.groupBox11.Controls.Add(this.radioButton21);
            this.groupBox11.Location = new System.Drawing.Point(1000, 200);
            this.groupBox11.Size = new System.Drawing.Size(200, 100);
            this.groupBox11.Text = "Radio Buttons";

            this.radioButton21.Location = new System.Drawing.Point(1000, 250);
            this.radioButton21.Size = new System.Drawing.Size(67, 17);
            this.radioButton21.Text = "Choice 2";

            this.radioButton11.Location = new System.Drawing.Point(1000, 350);
            this.radioButton11.Name = "radioButton1";
            this.radioButton11.Size = new System.Drawing.Size(67, 17);
            this.radioButton11.Text = "Choice 1";

            this.ClientSize = new System.Drawing.Size(1000, 266);
            this.Controls.Add(this.groupBox11);
        }
        internal static void limpiarTodosLosControles(GroupBox control)
        {
            foreach (System.Windows.Forms.Control c in control.Controls)
               {
               if (c.GetType() == typeof(ListBox))
               {

                   ((ListBox)c).Items.Clear();

               }
               if (c.GetType() == typeof(TextBox))
               {

                   ((TextBox)c).ResetText();

               }
               if (c.GetType() == typeof(ComboBox))
               {

                   ((ComboBox)c).SelectedIndex=-1;

               }

               }
        }
Example #23
0
		public void AutoSize ()
		{
			if (TestHelper.RunningOnUnix)
				Assert.Ignore ("Dependent on font height and theme, values are for windows.");
				
			Form f = new Form ();
			f.ShowInTaskbar = false;

			GroupBox p = new GroupBox ();
			p.AutoSize = true;
			f.Controls.Add (p);

			Button b = new Button ();
			b.Size = new Size (200, 200);
			b.Location = new Point (200, 200);
			p.Controls.Add (b);

			f.Show ();

			Assert.AreEqual (new Size (406, 419), p.ClientSize, "A1");

			p.Controls.Remove (b);
			Assert.AreEqual (new Size (200, 100), p.ClientSize, "A2");

			p.AutoSizeMode = AutoSizeMode.GrowAndShrink;
			Assert.AreEqual (new Size (6, 19), p.ClientSize, "A3");

			f.Dispose ();
		}
Example #24
0
 public bool GetTime(ComboBox cmb_Hour, ComboBox cmb_Minute,CheckBox chb,GroupBox gbx)
 {
     using (ds=new DataSet())
     {
         ds = tpdal.GetTime();
         if (ds != null && ds.Tables.Count > 0)
         {
             if (ds.Tables.Count > 0)
             {
                 string str = ds.Tables[0].Rows[0][0].ToString();
                 if (str.Equals("0"))
                 {
                     chb.Checked = false;
                     gbx.Enabled = false;
                     cmb_Hour.Text = "00";
                     cmb_Minute.Text = "00";
                 }
                 else
                 {
                     chb.Checked = true;
                     gbx.Enabled = true;
                     cmb_Hour.Text = str.Substring(0, 2);
                     cmb_Minute.Text = str.Substring(3, 2);
                 }
                 return true;
             }
         }
     }
     return false;
 }
Example #25
0
 /***************************Successor***********************************
 * Successor(char RegNumber, ref Load obj, ref GroupBox gb) Function is *
 * used to increase the current value in Register by 1                  *
 *- RegNumber: Represent the Index of Register place in memory          *
 ************************************************************************/
 private void Successor(char RegNumber, ref Load obj, ref GroupBox gb)
 {
     int index = int.Parse(RegNumber.ToString());
     int Regvalue = obj.Get_RegArray(index);
     Regvalue++;
     obj.Set_RegArray(index, Regvalue.ToString());
 }
Example #26
0
 //Función que obtiene los controles tipo textbox y los deja vacios
 protected void Limpiar(GroupBox gb)
 {
     foreach(Control control in gb.Controls)
     {
         if(control.GetType() == typeof(TextBox)) control.Text = string.Empty;
     }
 }
        public Controller(GroupBox b, Label date)
        {
            if (!Directory.Exists(filePath))
            {
                Directory.CreateDirectory("C:\\Users\\" + Environment.UserName + "\\Documents\\Data\\Homework\\");
                for (int i = 0; i < 10; i++)
                {
                    StreamWriter sw = new StreamWriter(filePath + i + ".txt");
                    sw.Close();
                }

                //Writing for last friday:
                DateTime start = DateTime.Now;
                while (!start.DayOfWeek.ToString().Equals("Monday"))
                    start = start.AddDays(-1);

                start = start.AddDays(-3);
                StreamWriter sw2 = new StreamWriter(filePath + "10.txt");
                sw2.WriteLine(start.ToShortDateString());
                sw2.Close();
            }

            this.date = date;
            parent = b;
            days = new List<AssignmentDay>();
            repeatingDays = new List<AssignmentDay>();
            go();
        }
Example #28
0
 private void AssignCheckedStateChanged(GroupBox groupBox)
 {
     foreach (CheckBox cb in groupBox.Controls.OfType<CheckBox>())
         cb.CheckStateChanged += CheckStateChanged;
     foreach (TextBox cb in groupBox.Controls.OfType<TextBox>())
         cb.TextChanged += TextSettingChanged;
 }
Example #29
0
	public osd_screen (int num, OSD aosd)
	{
		number=num;
		osd=aosd;
		
		num+=1;
		
		this.tabPage = new System.Windows.Forms.TabPage();		
		this.panelItems=new Panel[64];
		this.panelItems_default = new Panel[64];
		this.LIST_items=new System.Windows.Forms.TreeView();
		this.rbtSortCategory = new System.Windows.Forms.RadioButton();
           this.rbtSortAlphabetic = new System.Windows.Forms.RadioButton();
		this.groupBox = new System.Windows.Forms.GroupBox();
		this.label2 = new System.Windows.Forms.Label();
           this.label1 = new System.Windows.Forms.Label();
           this.NUM_Y = new System.Windows.Forms.NumericUpDown();
           this.NUM_X = new System.Windows.Forms.NumericUpDown();
		this.pictureBox = new System.Windows.Forms.PictureBox();
		this.chkSign = new System.Windows.Forms.CheckBox();
		
		this.tabPage.SuspendLayout();
		this.groupBox.SuspendLayout();
		this.pictureBox.SuspendLayout();
	}
Example #30
0
        public void Preview()
        {
            FlowLayoutPanel mainPanel = new FlowLayoutPanel() { Dock = DockStyle.Fill, FlowDirection = FlowDirection.LeftToRight };
            mainPanel.AutoScroll = true;
            mainPanel.DoubleClick += mainPanel_DoubleClick;
            mainPanel.Click += mainPanel_Click;

            int i = 0;

            foreach (string group in Table.GetUIGroups())
            {
                GroupBox gb = new GroupBox() { Text = group, AutoSize = true};
                mainPanel.Controls.Add(gb);

                FlowLayoutPanel groupPanel = new FlowLayoutPanel() { AutoSize = true, FlowDirection = FlowDirection.TopDown, Left = 16, Top = 22};
                gb.Controls.Add(groupPanel);

                foreach (string column in Table.GetUIGroupColumns(group))
                {
                    Table.Columns[column].GenerateUIMetadata().DisplayOrder = i++;
                    var c = getControl(Table.Columns[column]);
                    if (c != null)
                        groupPanel.Controls.Add(c);
                }
            }

            this.Controls.Clear();
            this.Controls.Add(mainPanel);
        }