public override void open(Sybase.PowerBuilder.PBString commandline)
	{
		#line hidden
		#line 1
		Sybase.PowerBuilder.WPF.PBSystemFunctions.Open(ref PBGlobalDefinitions_wpfapp.GetInstance().w_home);
		#line hidden
	}
示例#2
0
	void _init()
	{
		Width = new Sybase.PowerBuilder.PBInt(1386);
		#line hidden
		Height = new Sybase.PowerBuilder.PBInt(1168);
		#line hidden
		TextSize = new Sybase.PowerBuilder.PBInt(-10);
		#line hidden
		Weight = new Sybase.PowerBuilder.PBInt(400);
		#line hidden
		FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
		#line hidden
		FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
		#line hidden
		FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
		#line hidden
		FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
		#line hidden
		BackColor = new Sybase.PowerBuilder.PBLong(15793151);
		#line hidden
		Text = new Sybase.PowerBuilder.PBString("Some sample text");
		#line hidden
		BorderStyle = (new Sybase.PowerBuilder.PBBorderStyleValue(Sybase.PowerBuilder.PBBorderStyle.StyleLowered));
		#line hidden
		this.ID = "u_mle";
		this.CreateEvent -= new Sybase.PowerBuilder.PBEventHandler(this.create);
		this.DestroyEvent -= new Sybase.PowerBuilder.PBEventHandler(this.destroy);

		OnInitialUpdate();
	}
	void _init()
	{
		AppName = new Sybase.PowerBuilder.PBString("wpfapp");
		#line hidden
		this.CreateEvent += new Sybase.PowerBuilder.PBEventHandler(this.create);
		this.DestroyEvent += new Sybase.PowerBuilder.PBEventHandler(this.destroy);
		this.OpenEvent += new Sybase.PowerBuilder.PBOpenHandler(this.open);
	}
示例#4
0
	public virtual Sybase.PowerBuilder.PBString getdetailmessage()
	{
		Sybase.PowerBuilder.IPBValue[] __PBNIInteralArgs = new Sybase.PowerBuilder.IPBValue[0];
		System.Type[] __PBNIInteralArgTypes = new System.Type[0];
		bool[] __PBNIInteralArgsByRef = new bool[0];
		Sybase.PowerBuilder.IPBValue __PBNIInteralReturn = new Sybase.PowerBuilder.PBString();
		_object.Invoke(2, __PBNIInteralArgs, __PBNIInteralArgTypes, __PBNIInteralArgsByRef, ref __PBNIInteralReturn, typeof(Sybase.PowerBuilder.PBString));

		return (Sybase.PowerBuilder.PBString)__PBNIInteralReturn;
	}
	public virtual Sybase.PowerBuilder.PBInt of_log(Sybase.PowerBuilder.PBString as_source, Sybase.PowerBuilder.PBString as_message)
	{
		#line hidden
		Sybase.PowerBuilder.PBInt li_filenumber = Sybase.PowerBuilder.PBInt.DefaultValue;
		Sybase.PowerBuilder.PBInt li_chars = Sybase.PowerBuilder.PBInt.DefaultValue;
		Sybase.PowerBuilder.PBString ls_message = Sybase.PowerBuilder.PBString.DefaultValue;
		#line 11
		if ((Sybase.PowerBuilder.PBBoolean)((((as_source == new Sybase.PowerBuilder.PBString(""))| (as_message == new Sybase.PowerBuilder.PBString("")))| Sybase.PowerBuilder.WPF.PBSystemFunctions.IsNull((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(as_source)))))| Sybase.PowerBuilder.WPF.PBSystemFunctions.IsNull((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(as_message))))))
		#line hidden
		{
			#line 12
			return new Sybase.PowerBuilder.PBInt(-1);
			#line hidden
		}
		#line 18
		li_filenumber = Sybase.PowerBuilder.WPF.PBSystemFunctions.FileOpen(is_logfile, (new Sybase.PowerBuilder.PBFileModeValue(Sybase.PowerBuilder.PBFileMode.LineMode)), (new Sybase.PowerBuilder.PBFileAccessValue(Sybase.PowerBuilder.PBFileAccess.Write)), (new Sybase.PowerBuilder.PBFileLockValue(Sybase.PowerBuilder.PBFileLock.LockWrite)), (new Sybase.PowerBuilder.PBWriteModeValue(Sybase.PowerBuilder.PBWriteMode.Append)), 
			(new Sybase.PowerBuilder.PBEncodingValue(Sybase.PowerBuilder.PBEncoding.EncodingUTF8)));
		#line hidden
		#line 20
		if ((Sybase.PowerBuilder.PBBoolean)(li_filenumber == new Sybase.PowerBuilder.PBInt(-1)))
		#line hidden
		{
			#line 20
			return new Sybase.PowerBuilder.PBInt(-2);
			#line hidden
		}
		#line 23
		ls_message = (new Sybase.PowerBuilder.PBString("***")+ Sybase.PowerBuilder.WPF.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(Sybase.PowerBuilder.WPF.PBSystemFunctions.Today()))), new Sybase.PowerBuilder.PBString("dddd, mmmm dd yyyy hh:mm:ss")))+ new Sybase.PowerBuilder.PBString("***");
		#line hidden
		#line 25
		ls_message += new Sybase.PowerBuilder.PBString(" Object:")+ as_source;
		#line hidden
		#line 27
		ls_message += new Sybase.PowerBuilder.PBString(" Message:")+ as_message;
		#line hidden
		#line 29
		li_chars = (Sybase.PowerBuilder.PBInt)(Sybase.PowerBuilder.WPF.PBSystemFunctions.FileWriteEx(li_filenumber, ls_message));
		#line hidden
		#line 30
		Sybase.PowerBuilder.WPF.PBSystemFunctions.FileClose(li_filenumber);
		#line hidden
		#line 31
		return li_chars;
		#line hidden
	}
示例#6
0
	public override void create()
	{
		#line hidden
		#line hidden
		AppName = new Sybase.PowerBuilder.PBString("smjl");
		#line hidden
		#line hidden
		message = (Sybase.PowerBuilder.PBMessage)this.CreateInstance(typeof(Sybase.PowerBuilder.PBMessage));
		#line hidden
		#line hidden
		sqlca = (Sybase.PowerBuilder.PBTransaction)this.CreateInstance(typeof(Sybase.PowerBuilder.PBTransaction));
		#line hidden
		#line hidden
		sqlda = (Sybase.PowerBuilder.PBDynamicDescriptionArea)this.CreateInstance(typeof(Sybase.PowerBuilder.PBDynamicDescriptionArea));
		#line hidden
		#line hidden
		sqlsa = (Sybase.PowerBuilder.PBDynamicStagingArea)this.CreateInstance(typeof(Sybase.PowerBuilder.PBDynamicStagingArea));
		#line hidden
		#line hidden
		error = (Sybase.PowerBuilder.PBError)this.CreateInstance(typeof(Sybase.PowerBuilder.PBError));
		#line hidden
	}
示例#7
0
	void _init()
	{
		Width = new Sybase.PowerBuilder.PBInt(1276);
		#line hidden
		Height = new Sybase.PowerBuilder.PBInt(186);
		#line hidden
		BackColor = new Sybase.PowerBuilder.PBLong(20790589);
		#line hidden
		Text = new Sybase.PowerBuilder.PBString("none");
		#line hidden
		TabTextColor = new Sybase.PowerBuilder.PBLong(33554432);
		#line hidden
		PictureMaskColor = new Sybase.PowerBuilder.PBLong(536870912);
		#line hidden
		this.CreateEvent += new Sybase.PowerBuilder.PBEventHandler(this.create);
		this.DestroyEvent += new Sybase.PowerBuilder.PBEventHandler(this.destroy);

		OnInitialUpdate();
	}
示例#8
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(603);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(19);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(790);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(128);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-18);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(700);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(23213090);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(30960128);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("Stock Trader");
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden

			OnInitialUpdate();
		}
示例#9
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(3595);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(26);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(944);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(166);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-12);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Calibri");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(23213090);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(30960128);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString(".NET StockTrader Performance Application");
			#line hidden
			Alignment = (new Sybase.PowerBuilder.PBAlignmentValue(Sybase.PowerBuilder.PBAlignment.Right));
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden

			OnInitialUpdate();
		}
示例#10
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(117);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(51);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(1232);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(128);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-18);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(700);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(16777215);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(20790589);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("Order Alert");
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden

			OnInitialUpdate();
		}
示例#11
0
	void _init()
	{
		Width = new Sybase.PowerBuilder.PBInt(3006);
		#line hidden
		Height = new Sybase.PowerBuilder.PBInt(1446);
		#line hidden
		TitleBar = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		Title = new Sybase.PowerBuilder.PBString("Order Alert");
		#line hidden
		ControlMenu = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		MinBox = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		MaxBox = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		Resizable = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		BackColor = new Sybase.PowerBuilder.PBLong(20790589);
		#line hidden
		Icon = new Sybase.PowerBuilder.PBString("AppIcon!");
		#line hidden
		Center = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		this.CreateEvent += new Sybase.PowerBuilder.PBEventHandler(this.create);
		this.DestroyEvent += new Sybase.PowerBuilder.PBEventHandler(this.destroy);
		this.OpenEvent += new Sybase.PowerBuilder.PBM_EventHandler(this.open);
	}
示例#12
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(230);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(1773);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(735);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(83);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-10);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(33554432);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(16777215);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("Address for Remote Host:");
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden

			OnInitialUpdate();
		}
		public override Sybase.PowerBuilder.PBLong clicked()
		{
			#line hidden
			google_rest_client_directions.root l_root = null;
			Sybase.PowerBuilder.PBArray legs = new Sybase.PowerBuilder.PBUnboundedArray(typeof(google_rest_client_directions.rootItemItem));
			Sybase.PowerBuilder.PBArray steps = new Sybase.PowerBuilder.PBUnboundedArray(typeof(google_rest_client_directions.rootItemItemItem));
			Sybase.PowerBuilder.PBInt i = Sybase.PowerBuilder.PBInt.DefaultValue;
			Sybase.PowerBuilder.PBString rutas = Sybase.PowerBuilder.PBString.DefaultValue;
			directionstutoservice.c__directionstutoproxy l_proxy = null;
			System.Exception e = null;
			Sybase.PowerBuilder.PBLong ancestorreturnvalue = Sybase.PowerBuilder.PBLong.DefaultValue;
			#line 9
			l_proxy = (directionstutoservice.c__directionstutoproxy)this.CreateInstance(typeof(directionstutoservice.c__directionstutoproxy), 0);
			#line hidden
			try
			{
				try
				{
					#line 12
					l_root = l_proxy.getmessage();
					#line hidden
					#line 14
					legs.AssignFrom((Sybase.PowerBuilder.PBArray)(l_root.routes[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))-1]).legs);
					#line hidden
					#line 15
					steps.AssignFrom((Sybase.PowerBuilder.PBArray)((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).steps);
					#line hidden
					#line 18
					if ((Sybase.PowerBuilder.PBBoolean)(steps.Length> (Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(0))))
					#line hidden
					{
						#line 19
						rutas = (new Sybase.PowerBuilder.PBString("Distancia: ")+ ((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).distance.text)+ new Sybase.PowerBuilder.PBString("\n");
						#line hidden
						#line 20
						rutas += (new Sybase.PowerBuilder.PBString("Tiempo estimado: ")+ ((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).duration.text)+ new Sybase.PowerBuilder.PBString("\n");
						#line hidden
						#line 22
						for (i = new Sybase.PowerBuilder.PBInt(1);i <= ((Sybase.PowerBuilder.PBInt)(steps.Length));i = i + 1)
						#line hidden
						{
								#line 23
								rutas += ((Sybase.PowerBuilder.WPF.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(i))))+ new Sybase.PowerBuilder.PBString(".- "))+ ((google_rest_client_directions.rootItemItemItem)steps[(Sybase.PowerBuilder.PBLong)(i)]).html_instructions)+ new Sybase.PowerBuilder.PBString("\n");
								#line hidden
						}
					}
					else
					{
						#line 27
						rutas = new Sybase.PowerBuilder.PBString("No se ha obtenido ninguna ruta");
						#line hidden
					}
					#line 31
					((c__w_restclient)(Parent)).mle_rutas.Text = rutas;
					#line hidden
				}
				catch (System.DivideByZeroException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0001);
					throw new System.Exception();
				}
				catch (System.NullReferenceException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0002);
					throw new System.Exception();
				}
				catch (System.IndexOutOfRangeException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0003);
					throw new System.Exception();
				}
			}
			#line 33
			catch (System.Exception __PB_TEMP_e__temp)
			#line hidden
			{
				e = __PB_TEMP_e__temp;
				#line 34
				Sybase.PowerBuilder.WPF.PBSystemFunctions.MessageBox(new Sybase.PowerBuilder.PBString("Error"), new Sybase.PowerBuilder.PBString("Error en la consulta de datos a Google"));
				#line hidden
			}
			return new Sybase.PowerBuilder.PBLong(0);
		}
示例#14
0
	public virtual void of_initialize(Sybase.PowerBuilder.PBString as_buy_sell_flag, Sybase.PowerBuilder.PBLong al_shares, Sybase.PowerBuilder.PBLong al_holdingid, Sybase.PowerBuilder.PBString as_symbol, Sybase.PowerBuilder.PBDecimal adc_price)
	{
		#line hidden
		#line 1
		is_mode = as_buy_sell_flag;
		#line hidden
		#line 2
		il_shares = al_shares;
		#line hidden
		#line 3
		il_holdingid = al_holdingid;
		#line hidden
		#line 4
		is_symbol = as_symbol;
		#line hidden
		#line 5
		idc_price = (Sybase.PowerBuilder.PBDouble)(adc_price);
		#line hidden
		#line 7
		if ((Sybase.PowerBuilder.PBBoolean)(as_buy_sell_flag == new Sybase.PowerBuilder.PBString("B")))
		#line hidden
		{
			#line 8
			pb_buy_sell.Text = new Sybase.PowerBuilder.PBString("Buy");
			#line hidden
			#line 9
			st_action.Text = ((new Sybase.PowerBuilder.PBString("You have requested to buy shares of ")+ as_symbol)+ new Sybase.PowerBuilder.PBString(" which is currently trading at "))+ Sybase.PowerBuilder.Web.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(adc_price))), new Sybase.PowerBuilder.PBString("$#,###.00"));
			#line hidden
		}
		else
		{
			#line 11
			pb_buy_sell.Text = new Sybase.PowerBuilder.PBString("Sell");
			#line hidden
			#line 12
			st_action.Text = (((((new Sybase.PowerBuilder.PBString("You have requested to sell all or part of your holding #")+ Sybase.PowerBuilder.Web.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(al_holdingid)))))+ new Sybase.PowerBuilder.PBString(". This holding has a total of "))+ Sybase.PowerBuilder.Web.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(al_shares)))))+ new Sybase.PowerBuilder.PBString(" shares of stock "))+ as_symbol)+ new Sybase.PowerBuilder.PBString(".  Please input how many shares to sell.");
			#line hidden
		}
		#line 15
		sle_amount.Text = new Sybase.PowerBuilder.PBString("");
		#line hidden
	}
示例#15
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(2373);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(1219);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(424);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(118);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(10);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-12);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(33554432);
			#line hidden
			BorderStyle = (new Sybase.PowerBuilder.PBBorderStyleValue(Sybase.PowerBuilder.PBBorderStyle.StyleLowered));
			#line hidden
			this.ID = "sle_amount";

			OnInitialUpdate();
		}
示例#16
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(110);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(330);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(1938);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(1949);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(20);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			DataObject = new Sybase.PowerBuilder.PBString("d_user_statistics");
			#line hidden

			OnInitialUpdate();
		}
示例#17
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(2421);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(749);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(1989);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(966);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(10);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			DataObject = new Sybase.PowerBuilder.PBString("d_profiledisplay");
			#line hidden
			Border = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden
			BorderStyle = (new Sybase.PowerBuilder.PBBorderStyleValue(Sybase.PowerBuilder.PBBorderStyle.StyleBox));
			#line hidden

			OnInitialUpdate();
		}
示例#18
0
	void _init()
	{
		Width = new Sybase.PowerBuilder.PBInt(4579);
		#line hidden
		Height = new Sybase.PowerBuilder.PBInt(2755);
		#line hidden
		TitleBar = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		Title = new Sybase.PowerBuilder.PBString(".NET Stock Trader Client");
		#line hidden
		ControlMenu = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		MinBox = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		MaxBox = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		BackColor = new Sybase.PowerBuilder.PBLong(20790589);
		#line hidden
		Icon = new Sybase.PowerBuilder.PBString("AppIcon!");
		#line hidden
		this.CreateEvent += new Sybase.PowerBuilder.PBEventHandler(this.create);
		this.DestroyEvent += new Sybase.PowerBuilder.PBEventHandler(this.destroy);
		this.OpenEvent += new Sybase.PowerBuilder.PBM_EventHandler(this.open);
	}
示例#19
0
		void _init()
		{
			DataObject = new Sybase.PowerBuilder.PBString("d_holding_totals");
			#line hidden
			this.CreateEvent -= new Sybase.PowerBuilder.PBEventHandler(this.create);
			this.DestroyEvent -= new Sybase.PowerBuilder.PBEventHandler(this.destroy);

			OnInitialUpdate();
		}
示例#20
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(80);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(86);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(428);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(218);
			#line hidden
			OriginalSize = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			PictureName = new Sybase.PowerBuilder.PBString("Images\\App_Logo.JPG");
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden

			OnInitialUpdate();
		}
示例#21
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(40);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(22);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(750);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(128);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(20);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-10);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(15793151);
			#line hidden
			BorderStyle = (new Sybase.PowerBuilder.PBBorderStyleValue(Sybase.PowerBuilder.PBBorderStyle.StyleLowered));
			#line hidden

			OnInitialUpdate();
		}
示例#22
0
	public virtual void of_action()
	{
		#line hidden
		Sybase.PowerBuilder.PBString invalid_number = Sybase.PowerBuilder.PBString.DefaultValue;
		c__n_order ln_order = null;
		Sybase.PowerBuilder.PBException e = null;
		try
		{
			try
			{
				#line 5
				if ((Sybase.PowerBuilder.PBBoolean)(is_mode == new Sybase.PowerBuilder.PBString("S")))
				#line hidden
				{
					#line 6
					invalid_number = new Sybase.PowerBuilder.PBString("Please enter a valid number between 1 and ");
					#line hidden
					#line 7
					invalid_number += Sybase.PowerBuilder.Web.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(il_shares))));
					#line hidden
					#line 8
					if ((Sybase.PowerBuilder.PBBoolean)(!(Sybase.PowerBuilder.Web.PBSystemFunctions.IsNumber(sle_amount.Text))| (Sybase.PowerBuilder.Web.PBSystemFunctions.Long((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(sle_amount.Text))))> il_shares)))
					#line hidden
					{
						#line 9
						this.of_showmessage(new Sybase.PowerBuilder.PBBoolean(true), invalid_number);
						#line hidden
						#line 10
						return;
						#line hidden
					}
					#line 12
					this.of_showmessage(new Sybase.PowerBuilder.PBBoolean(false), new Sybase.PowerBuilder.PBString(""));
					#line hidden
					#line 13
					ln_order = c__stocktrader.GetCurrentApplication().gn_controller.of_sell(il_holdingid, Sybase.PowerBuilder.Web.PBSystemFunctions.Long((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(sle_amount.Text)))));
					#line hidden
				}
				else
				{
					#line 15
					invalid_number = new Sybase.PowerBuilder.PBString("Please enter a valid number greater than 1");
					#line hidden
					#line 16
					if ((Sybase.PowerBuilder.PBBoolean)(!(Sybase.PowerBuilder.Web.PBSystemFunctions.IsNumber(sle_amount.Text))| (Sybase.PowerBuilder.Web.PBSystemFunctions.Long((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(sle_amount.Text))))< (Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1)))))
					#line hidden
					{
						#line 17
						this.of_showmessage(new Sybase.PowerBuilder.PBBoolean(true), invalid_number);
						#line hidden
						#line 18
						return;
						#line hidden
					}
					#line 20
					this.of_showmessage(new Sybase.PowerBuilder.PBBoolean(false), new Sybase.PowerBuilder.PBString(""));
					#line hidden
					#line 21
					ln_order = c__stocktrader.GetCurrentApplication().gn_controller.of_buy(c__stocktrader.GetCurrentApplication().gn_controller.of_get_profile_id(), is_symbol, (Sybase.PowerBuilder.PBDouble)(Sybase.PowerBuilder.Web.PBSystemFunctions.Long((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(sle_amount.Text))))));
					#line hidden
				}
			}
			catch (System.DivideByZeroException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0001);
				throw new System.Exception();
			}
			catch (System.NullReferenceException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0002);
				throw new System.Exception();
			}
			catch (System.IndexOutOfRangeException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0003);
				throw new System.Exception();
			}
		}
		#line 23
		catch (Sybase.PowerBuilder.PBExceptionE __PB_TEMP_e__temp)
		#line hidden
		{
			e = __PB_TEMP_e__temp.E;
			#line 24
			this.of_showmessage(new Sybase.PowerBuilder.PBBoolean(true), new Sybase.PowerBuilder.PBString("Transaction Failed ")+ e.GetMessage());
			#line hidden
			#line 25
			return;
			#line hidden
		}
		#line 28
		Sybase.PowerBuilder.Web.PBSystemFunctions.OpenWithParm(ref c__stocktrader.GetCurrentApplication().w_order_alert, (Sybase.PowerBuilder.PBPowerObject)(ln_order));
		#line hidden
		#line 29
		c__stocktrader.GetCurrentApplication().w_stocktrader.ue_display_orders();
		#line hidden
	}
示例#23
0
		void _init()
		{
			Text = new Sybase.PowerBuilder.PBString("Account");
			#line hidden

			OnInitialUpdate();
		}
示例#24
0
		void _init()
		{
			Text = new Sybase.PowerBuilder.PBString("Cofiguration");
			#line hidden

			OnInitialUpdate();
		}
示例#25
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(450);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(730);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(1905);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(1245);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(20);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			DataObject = new Sybase.PowerBuilder.PBString("d_account");
			#line hidden
			Border = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden
			BorderStyle = (new Sybase.PowerBuilder.PBBorderStyleValue(Sybase.PowerBuilder.PBBorderStyle.StyleBox));
			#line hidden

			OnInitialUpdate();
		}
示例#26
0
	public virtual Sybase.PowerBuilder.PBString setdetails(Sybase.PowerBuilder.PBString details)
	{
		Sybase.PowerBuilder.IPBValue[] __PBNIInteralArgs = new Sybase.PowerBuilder.IPBValue[1];
		System.Type[] __PBNIInteralArgTypes = new System.Type[1];
		bool[] __PBNIInteralArgsByRef = new bool[1];
		__PBNIInteralArgs[0] = details;
		if ((object)details == null)
			__PBNIInteralArgTypes[0] = typeof(Sybase.PowerBuilder.PBString);
		else
			__PBNIInteralArgTypes[0] = details.GetType();
		__PBNIInteralArgsByRef[0] = false;
		Sybase.PowerBuilder.IPBValue __PBNIInteralReturn = new Sybase.PowerBuilder.PBString();
		_object.Invoke(3, __PBNIInteralArgs, __PBNIInteralArgTypes, __PBNIInteralArgsByRef, ref __PBNIInteralReturn, typeof(Sybase.PowerBuilder.PBString));

		return (Sybase.PowerBuilder.PBString)__PBNIInteralReturn;
	}
示例#27
0
		void _init()
		{
			Width = new Sybase.PowerBuilder.PBInt(907);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("Trade Stocks");
			#line hidden
			this.ID = "st_label";

			OnInitialUpdate();
		}
示例#28
0
		void _init()
		{
			Text = new Sybase.PowerBuilder.PBString("Login");
			#line hidden
			this.ID = "st_label";

			OnInitialUpdate();
		}
示例#29
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(2187);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(1437);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(380);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(134);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(40);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-10);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			Default = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			VTextAlign = (new Sybase.PowerBuilder.PBVTextAlignValue(Sybase.PowerBuilder.PBVTextAlign.VCenter));
			#line hidden
			Map3DColors = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			PowerTipText = new Sybase.PowerBuilder.PBString("Login to Server");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(30578299);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(23213090);
			#line hidden
			this.ID = "pb_buy_sell";
			this.ClickedEvent += new Sybase.PowerBuilder.PBM_EventHandler(this.clicked);

			OnInitialUpdate();
		}
示例#30
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(110);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(291);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(2750);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(781);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(10);
			#line hidden
			DataObject = new Sybase.PowerBuilder.PBString("d_order_display");
			#line hidden

			OnInitialUpdate();
		}
示例#31
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(1715);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(1238);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(625);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(93);
			#line hidden
			BringToTop = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-12);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(400);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(33554432);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(16777215);
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("Number of Shares:");
			#line hidden
			Alignment = (new Sybase.PowerBuilder.PBAlignmentValue(Sybase.PowerBuilder.PBAlignment.Right));
			#line hidden
			FocusRectangle = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden
			this.ID = "st_1";

			OnInitialUpdate();
		}
示例#32
0
		void _init()
		{
			X = new Sybase.PowerBuilder.PBInt(1408);
			#line hidden
			Y = new Sybase.PowerBuilder.PBInt(1146);
			#line hidden
			Width = new Sybase.PowerBuilder.PBInt(355);
			#line hidden
			Height = new Sybase.PowerBuilder.PBInt(144);
			#line hidden
			TabOrder = new Sybase.PowerBuilder.PBInt(10);
			#line hidden
			TextSize = new Sybase.PowerBuilder.PBInt(-12);
			#line hidden
			Weight = new Sybase.PowerBuilder.PBInt(700);
			#line hidden
			FontCharSet = (new Sybase.PowerBuilder.PBFontCharSetValue(Sybase.PowerBuilder.PBFontCharSet.Ansi));
			#line hidden
			FontPitch = (new Sybase.PowerBuilder.PBFontPitchValue(Sybase.PowerBuilder.PBFontPitch.Variable));
			#line hidden
			FontFamily = (new Sybase.PowerBuilder.PBFontFamilyValue(Sybase.PowerBuilder.PBFontFamily.Swiss));
			#line hidden
			FaceName = new Sybase.PowerBuilder.PBString("Trebuchet MS");
			#line hidden
			Text = new Sybase.PowerBuilder.PBString("OK");
			#line hidden
			OriginalSize = new Sybase.PowerBuilder.PBBoolean(true);
			#line hidden
			VTextAlign = (new Sybase.PowerBuilder.PBVTextAlignValue(Sybase.PowerBuilder.PBVTextAlign.VCenter));
			#line hidden
			TextColor = new Sybase.PowerBuilder.PBLong(30578299);
			#line hidden
			BackColor = new Sybase.PowerBuilder.PBLong(27021878);
			#line hidden
			this.ClickedEvent += new Sybase.PowerBuilder.PBM_EventHandler(this.clicked);

			OnInitialUpdate();
		}