Exemplo n.º 1
0
		public FormOrder() : base(4,2, false)
		{
			labelid = new Label("Id :");
			labelid.SetAlignment(0, (float)0.5);
			labelcust = new Label("Customer :");
			labelcust.SetAlignment(0, (float)0.5);
			labelpay = new Label("Payment :");
			labelpay.SetAlignment(0, (float)0.5);
			labeltax = new Label("Tax :");
			labeltax.SetAlignment(0, (float)0.5);
			
			entryid = new Entry();
			entryid.Sensitive = false;
			
			combocust = new ComboBoxCustomers();
			combopay = new ComboBoxPayments();
			combopay.NoneRow = true;
			combotax = new ComboBoxTaxes();
			combotax.NoneRow = true;
			
			this.ColumnSpacing = 6;
			Attach(labelid, 0, 1, 0, 1);
			Attach(labelcust, 0, 1, 1, 2);
			Attach(labelpay, 0, 1, 2, 3);
			Attach(labeltax, 0, 1, 3, 4);

			Attach(entryid, 1, 2, 0, 1);
			Attach(combocust, 1, 2, 1, 2);
			Attach(combopay, 1, 2, 2, 3);
			Attach(combotax, 1, 2, 3, 4);
			
			this.ShowAll();
		}
Exemplo n.º 2
0
		public FormOrderDetail() : base(3, 2, false)
		{
			
			
			Label labeltax;
			labeltax = new Label("Tax :");
			labeltax.SetAlignment(0, 0.5f);
			
			Label labelprice;
			labelprice = new Label("Price :");
			labelprice.SetAlignment(0, 0.5f);
			
			Label labelquant;
			labelquant = new Label("Quantity :");
			labelquant.SetAlignment(0, 0.5f);
			
			combotax = new ComboBoxTaxes();
			
			spinprice = new SpinButton(0.0f, (double)System.Decimal.MaxValue, 0.01f);
			spinprice.Digits = 2;
			
			spinquant = new SpinButton(0.0f, (double)System.Int64.MaxValue, 1.0f);
			spinquant.Digits = 0;
			
			this.BorderWidth = 6;
			this.ColumnSpacing = 6;
			
			this.Attach(labeltax, 0, 1, 0, 1, AttachOptions.Fill, AttachOptions.Fill, 0, 0);
			this.Attach(labelprice, 0, 1, 1, 2, AttachOptions.Fill, AttachOptions.Fill, 0, 0);
			this.Attach(labelquant, 0, 1, 2, 3, AttachOptions.Fill, AttachOptions.Fill, 0, 0);
			this.Attach(combotax, 1, 2, 0, 1, AttachOptions.Expand|AttachOptions.Fill, AttachOptions.Expand|AttachOptions.Fill, 0, 0);
			this.Attach(spinprice, 1, 2, 1, 2, AttachOptions.Fill, AttachOptions.Fill, 0, 0);
			this.Attach(spinquant, 1, 2, 2, 3, AttachOptions.Fill, AttachOptions.Fill, 0, 0);
			
			this.ShowAll();
		}