public override void CollisionResponse(Object obj)
        {
            if (obj is Player)
            {
                KeyboardState keyboardState = Keyboard.GetState();

                if (keyboardState.IsKeyDown(Keys.Up))
                {
                    foreach (IControlledObject controlledObj in controlled)
                    {
                        controlledObj.Control(this);
                    }
                    texture = positiveTexture;
                }
                else if (keyboardState.IsKeyDown(Keys.Down))
                {
                    foreach (IControlledObject controlledObj in controlled)
                    {
                        controlledObj.Control(this);
                    }
                    texture = negativeTexture;
                }
                else
                {
                    texture = switchOffTexture;
                }
                this.keyUpHint.IsDisplay = true;
            }
        }
示例#2
0
文件: Edge.cs 项目: xire-/graphulus
    private void Awake()
    {
        _lightResource = Resources.Load("Light");

        // draw edges before nodes
        GetComponent<Renderer>().material.renderQueue = 0;
    }
示例#3
0
    public void Succeed(Object asset)
    {
        GameObject target = GameObject.Instantiate(asset) as GameObject;
        target.name = asset.name;
        target.gameObject.SetActive(false);
        BaseUI view = target.GetComponent<BaseUI>();
        if (view != null && loadType == LoadViewType.Show)
        {
            view.InitUI();
            view.Show();
        }
        else if (view != null && loadType == LoadViewType.Create)
        {
            view.InitUI();
        }
        view.viewName = viewName; //修改名字

        for (int i = 0; i < showViewListeners.Count; i++)
        {
            if (showViewListeners[i] != null)
            {
                showViewListeners[i].Succeed(view);
            }
        }
        ViewManager.Instance.RemoveLoadIns(this);
        ViewManager.Instance.AddViewToDic(viewName, view);
    }
 protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e)
 {
     GridView gv = (GridView)sender;
      if (e.Row.RowType == DataControlRowType.DataRow)
      {
          DataRowView drv = ((DataRowView)e.Row.DataItem);
          t01_entidade t01 = new t01_entidade();
          {
              t01.t01_cd_entidade = (int)drv["t01_cd_entidade"];
              t01.Retrieve();
              if (!t01.Found)
              {
                  t05_parceiro t05 = new t05_parceiro();
                  {
                      t05.t05_cd_parceiro = (int)drv["t05_cd_parceiro"];
                      t05.Retrieve();
                      if (t05.Found)
                      {
                          t01.t01_cd_entidade = t05.t01_cd_entidade;
                          t01.Retrieve();
                          if (t01.Found)
                          {
                              e.Row.Cells[2].Controls.Add(pb.GetLiteral(t01.nm_entidade + "\\" + t05.nm_parceiro));
                          }
                      }
                  }
              }
          }
      }
 }
    protected void MostrarSeleccao(Object obj, EventArgs e)
    {
        saida.Text = "";

        ddlMunicipios.Items.Clear();
        ddlMunicipios.Items.Insert(0, new ListItem("Seleccione...", "0"));

        //if(dDL.SelectedIndex!=0)
        //{
            //ddlMunicipios.DataSource = municipios[dDL.SelectedIndex-1];
            //ddlMunicipios.DataBind();

            SqlDB Bd = new SqlDB("ConStr_DivAdmin");
            string str = "SELECT NomeMunicipio from Municipios where [CodigoDistrito] = @distrito";

            SqlCommand cmd = new SqlCommand(str, Bd.SqlConDB);
            cmd.Parameters.AddWithValue("@distrito",dDL.SelectedItem.Value);
            cmd.Connection = Bd.SqlConDB;

            Bd.SqlConDB.Open();
            SqlDataReader dR = cmd.ExecuteReader();

            //efectuar o data binding
            ddlMunicipios.DataSource = dR;
            ddlMunicipios.DataTextField = "NomeMunicipio";
            ddlMunicipios.DataValueField = "IdMunicipio";
            ddlMunicipios.DataBind();
            dR.Close();
            Bd.SqlConDB.Close();
        //}
    }
示例#6
0
 // Update is called once per frame
 void Update()
 {
     try
     {
         player = GameObject.FindGameObjectWithTag("Player");
         Scriptdedéplacement = player.GetComponent<ScriptPersonnage>();
     }
     catch { }
     if (enemyhavespawned && !nextdooropened)
     {
         if (e1 == null && e2 == null)
         {
             camerapouranim.SetActive(true);
             Scriptdedéplacement.playercanmove = false;
             StartCoroutine(Terminerlacinématique());
             nextdoor.SendMessage("Activate");
             SendMessage("Activate");
             nextdooropened = !nextdooropened;// lance l'ouverture de la prochaine porte sans avoir besoin de levier
         }
     }
     try
     {
         if (Scriptdedéplacement.lejoueurestdanslazonemobdeladeuxiemeaile && !enemyhavespawned)
         {
             e1 = Instantiate(enemy1, spawnenemy1.position, spawnenemy1.rotation);
             //e2 = Instantiate(enemy2, spawnenemy2.position, spawnenemy2.rotation);
             SendMessage("Activate");
             enemyhavespawned = true;
         }
     }
     catch { }
 }
示例#7
0
		void Start ()
		{
				if (messageObject == null) {
					messageObject = gameObject;
				}
				spriteRendererComp = GetComponent<SpriteRenderer> ();
		}
    protected void CustomersGridView_RowDataBound(Object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {

        }
    }
示例#9
0
 public void GridViewNews_RowUpdating(Object sender, GridViewUpdateEventArgs e)
 {
     int index = GridViewNews.EditIndex;
     GridViewRow row = GridViewNews.Rows[index];
     TextBox description = (TextBox)row.FindControl("TextBoxDescription");
     e.NewValues["description"] = description.Text;
 }
        public void Equals_ReturnsFalse_ForDifferentObject()
        {
            Object o1 = new Object();
            Object o2 = new Object();

            Assert.False(ReferenceEqualityComparer.Instance.Equals(o1, o2));
        }
示例#11
0
文件: Map.cs 项目: wangsenco/Test
	void Start () 
    {
        prefap_pikachu = Resources.Load("item");
        if (prefap_pikachu == null) Debug.Log("123");
        LMap(10, 15);
        RandomMap();
	}
    public bool PosTest1()
    {
        bool retVal = true;

        TestLibrary.TestFramework.BeginScenario("PosTest1: TrackResurrection will return correct value when construct the WeakReference for an object instance");

        try
        {
            Object obj = new Object();
            WeakReference reference = new WeakReference(obj, true);

            if (!reference.TrackResurrection)
            {
                TestLibrary.TestFramework.LogError("001.1", "TrackResurrection returns false when construct the WeakReference for an object instance");
                retVal = false;
            }

            reference = new WeakReference(obj, false);

            if (reference.TrackResurrection)
            {
                TestLibrary.TestFramework.LogError("001.2", "TrackResurrection returns true when construct the WeakReference for an object instance");
                retVal = false;
            }
        }
        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("001.3", "Unexpected exception: " + e);
            TestLibrary.TestFramework.LogInformation(e.StackTrace);
            retVal = false;
        }

        return retVal;
    }
示例#13
0
 public sealed override void AddEventHandler(Object target, Delegate handler)
 {
     MethodInfo addMethod = this.AddMethod;
     if (!addMethod.IsPublic)
         throw new InvalidOperationException(SR.InvalidOperation_NoPublicAddMethod);
     addMethod.Invoke(target, new Object[] { handler });
 }
示例#14
0
    private IEnumerator SetDestinationRoutine(Object target)
    {
        //get references
        NavMeshAgent agent = GetComponent<NavMeshAgent>();
        navMove myMove = GetComponent<navMove>();
        GameObject tar = (GameObject)target as GameObject;

        //increase agent speed
        myMove.ChangeSpeed(4);
        //set new destination of the navmesh agent
        agent.SetDestination(tar.transform.position);

        //wait until the path has been calculated
        while (agent.pathPending)
            yield return null;
        //wait until agent reached its destination
        float remain = agent.remainingDistance;
        while (remain == Mathf.Infinity || remain - agent.stoppingDistance > float.Epsilon
        || agent.pathStatus != NavMeshPathStatus.PathComplete)
        {
            remain = agent.remainingDistance;
            yield return null;
        }

        //wait a few seconds at the destination,
        //then decrease agent speed and restart movement routine
        yield return new WaitForSeconds(4);
        myMove.ChangeSpeed(1.5f);
        myMove.moveToPath = true;
        myMove.StartMove();
    }
示例#15
0
    void OnPaint(Object sender, PaintEventArgs e)
    {
        Graphics g = e.Graphics;
        g.DrawImage(background, 0, 0);

        g.DrawImage(greenPepper2, x2, y2);
    }
		//default first page constructor
		public ObjectPropertyListGump( Mobile owner, Object o ) : base( 10, 10 )
		{
			_Owner = owner;
			_Object = o;
			
			//clear old gumps that are up
			_Owner.CloseGump( typeof( ObjectPropertyListGump ) );
			
			//set up the page
			AddPage(0);
            
			//determine page layout, sizes, and what gets displayed where
			DeterminePageLayout();

			//add the background			            
            AddBackground(0, 0, _Width, _Height, 9270);
            AddImageTiled(11, 10, _Width - 23, _Height - 20, 2624);
            AddAlphaRegion(11, 10, _Width - 22, _Height - 20);
            
            AddTitle();
            
            AddArtwork();
            
            //if there was a problem when adding the property listing
            if( !AddPropsListing() )
            {
	            //clear old gumps that are up
				_Owner.CloseGump( typeof( ObjectPropertyListGump ) );
	            return;
            }
            
            AddControlButtons();
		}
示例#17
0
 /*protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     StringBuilder stringBuilder = new StringBuilder();
     stringBuilder.Append("<b>Personal Info - </b> <br />");
     stringBuilder.Append("First Name : ");
     stringBuilder.Append(FirstNameTextBox.Text);
     stringBuilder.Append("<br />Last Name : ");
     stringBuilder.Append(LastNameTextBox.Text);
     stringBuilder.Append("<br />DOB : ");
     stringBuilder.Append(DOBTextBox.Text);
     stringBuilder.Append("<br />Website URL : ");
     stringBuilder.Append(WebsiteURLTextBox.Text);
     stringBuilder.Append("<br /><b>Contact Info</b> <br />");
     stringBuilder.Append("City : ");
     stringBuilder.Append(CityTextBox.Text);
     stringBuilder.Append("<br />State : ");
     stringBuilder.Append(StateTextBox.Text);
     stringBuilder.Append("<br />Country : ");
     stringBuilder.Append(CountryTextBox.Text);
     stringBuilder.Append("<br />Zip : ");
     stringBuilder.Append(ZipTextBox.Text);
     Label1.Visible = true;
     Label1.Text = stringBuilder.ToString();
 }*/
 /*public void Next_Interval_Click(Object sender, EventArgs e)
 {
     int currentIntervalNumber = Int32.Parse(intervalNumber.Text);
     if (currentIntervalNumber < 4)
     {
         ++currentIntervalNumber;
         intervalNumber.Text = currentIntervalNumber.ToString();
     }
 }*/
 /*public void Next_Location_Click(Object sender, EventArgs e)
 {
     int currentLocationNumber = Int32.Parse(locationNumber.Text);
     if (currentLocationNumber < 4)
     {
         ++currentLocationNumber;
         locationNumber.Text = currentLocationNumber.ToString();
     }
     intervalNumber.Text = "1";
 }*/
 public void Next_Location_Click(Object sender, EventArgs e)
 {
     Wizard1.ActiveStepIndex--;
     Wizard1.ActiveStepIndex--;
     Wizard1.ActiveStepIndex--;
     Wizard1.MoveTo(Wizard1.ActiveStep);
 }
示例#18
0
 public override Object Invoke(Object thisObject, Object[] arguments)
 {
     //@todo: This does not handle optional parameters (nor does it need to as today we're only using it for three synthetic array methods.)
     if (!(thisObject == null && 0 != (_options & InvokerOptions.AllowNullThis)))
         MethodInvokerUtils.ValidateThis(thisObject, _thisType);
     if (arguments == null)
         arguments = Array.Empty<Object>();
     if (arguments.Length != _parameterTypes.Length)
         throw new TargetParameterCountException();
     Object[] convertedArguments = new Object[arguments.Length];
     for (int i = 0; i < arguments.Length; i++)
     {
         convertedArguments[i] = RuntimeAugments.CheckArgument(arguments[i], _parameterTypes[i]);
     }
     Object result;
     try
     {
         result = _invoker(thisObject, convertedArguments);
     }
     catch (Exception e)
     {
         if (0 != (_options & InvokerOptions.DontWrapException))
             throw;
         else
             throw new TargetInvocationException(e);
     }
     return result;
 }
示例#19
0
 public override void write(POxOPrimitiveEncoder encoder, Object value)
 {
     try
     {
         if (canBeNull)
         {
             if (value == null)
             {
                 encoder.writeByte(0x00);
                 return;
             }
             else
             {
                 encoder.writeByte(0x01);
             }
         }
         encoder.writebool((bool)value);
     }
     catch (NotSupportedException e)
     {
         throw new POxOSerializerException("Error during Date serializing.", e);
     }
     catch (ObjectDisposedException e)
     {
         throw new POxOSerializerException("Error during Date serializing.", e);
     }
 }
    //Handles search button click
    public void SearchButton_Click(Object s, EventArgs e)
    {
        //Instantiate validation object
        Utility Util = new Utility();

        //Check for minimum keyword character
        int MinuiumSearchWordLength = 2;
        int SearchWordLength;
        SearchWordLength = find.Value.Length;
        if (SearchWordLength <= MinuiumSearchWordLength)
        {
            //Redirect to keyword too short page
            Util.PageRedirect(10);
        }

        if (this.SelectedValue != null)
        {
            SDropName.SelectedValue = this.SelectedValue;
        }

        string targetUrl = "searcharticle.aspx";

        targetUrl += "?find=" + Util.FormatTextForInput(find.Value) + "&catid=" + SDropName.SelectedValue;

        //Redirect to the search page
        Response.Redirect(targetUrl);

        Util = null;
    }
	Object[] method() {
		var o = new Object[2];
		for (int i = 0; i < 2; i++) {
			o[i] = field[i];
		}
		return o;
	}
    protected void grdResult_RowDataBound(Object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            HiddenField hdnstatus = (HiddenField)e.Row.FindControl("hdnstatus");
            LinkButton lnkactive = (LinkButton)e.Row.FindControl("lnkactive");
            if (hdnstatus.Value == "1")
            {
                e.Row.BackColor = System.Drawing.Color.Green;
                lnkactive.Text = "Disabled";
            }
            else
                if (hdnstatus.Value == "0")
                {
                    e.Row.BackColor = System.Drawing.Color.Red;
                    lnkactive.Text = "Enabled";
                }
                else
                {
                    e.Row.BackColor = System.Drawing.Color.Orange;
                }

        }
        //if ((objAdmin.strExpert == false) && (hld.Contains("0 received") || hld.Contains("Received = 0")))
        //if  (hld.Contains("0 received") || hld.Contains("Received = 0"))
        // e.Item.BackColor = System.Drawing.Color.Red;
        //else
        //  if ((objAdmin.strExpert == true) && (!hld.Contains("0 received") || !hld.Contains("Received = 0")))
        //        e.Item.BackColor = System.Drawing.Color.Green;
        //  else
        //     if ((objAdmin.strExpert == false) && (hld.Contains("0 received") || hld.Contains("Received = 0")))
        //         e.Item.BackColor = System.Drawing.Color.Red;
        //}
    }
示例#23
0
 public static void ClearObjects(Object[] objects)
 {
     if (objects == null)
         return;
     for (int n = 0; n < objects.Length; n++)
         objects[n] = null;
 }
示例#24
0
    protected void Page_Load(Object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(this.Request.QueryString["ob"]) || !string.IsNullOrEmpty(this.Request.QueryString["sb"]))
        {
            OrderBy = (int)Util.Val(Request.QueryString["ob"]);
            SortBy = (int)Util.Val(Request.QueryString["sb"]);
            lblsortname.Text = Util.GetSortOptionName(OrderBy) + Util.GetSortOptionOrderBy(SortBy);
        }
        else
        {
            lblsortname.Text = Util.GetSortOptionName(OrderBy);
        }

        iPage = 1;

        if (!string.IsNullOrEmpty(this.Request.QueryString["page"]))
            iPage = (int)Util.Val(Request.QueryString["page"]);

        int GetPage = (int)Util.Val(Request.QueryString["page"]);

        int Layout = (int)Util.Val(Request.QueryString["layout"]);

        BindList(iPage, GetPage, Layout);

        GetMetaTitleTagKeywords(lblcatname2.Text, iPage);
    }
示例#25
0
    protected void PostComment_Click(Object sender, EventArgs e)
    {
        String _id = ViewState["topic"].ToString();
        CustomProfile _profile = (CustomProfile)HttpContext.Current.Profile;
        ForumTopics _newTopic = new ForumTopics(this.ConnectionString);
        _newTopic.Topic = txt_Topic.Text;
        _newTopic.ParentId = Convert.ToInt32(_id);
        _newTopic.Status = Convert.ToInt32(Enums.enumStatuses.Active);
        _newTopic.CultureInfo = _profile.Culture;
        if (_newTopic.Save())
        {
            pnl_Threads.Visible = true;
            pnl_PostForm.Visible = false;
            span_Post.Visible = true;
            txt_Topic.Text = "";

            ForumTopics _topic = new ForumTopics(this.ConnectionString);
            _topic.LitePopulate(_id, true);

            BindData(_topic);
        }
        else
        {
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", "alert('An unexpected error has occurred. Please try again.');", true);
        }
    }
示例#26
0
 public static Int32 OnWriteData(Byte[] buf, Int32 size, Int32 nmemb,
     Object extraData)
 {
     int nBytes = size * nmemb;
     Console.WriteLine("Obtained {0} bytes from {1}", nBytes, extraData);
     return nBytes;
 }
示例#27
0
    public void Update_Article(Object s, EventArgs e)
    {
        ArticleRepository Article = new ArticleRepository();

        Article.ID = (int)Util.Val(Request.QueryString["aid"]);
        Article.UID = int.Parse(Request.Form["Userid"]);
        Article.Title = Request.Form["Title"];
        Article.Content = Request.Form["Content"];
        Article.CatID = int.Parse(Request.Form["ddlarticlecategory"]);
        Article.Keyword = Request.Form["Keyword"];
        Article.Summary = Request.Form["Summary"];

        //Refresh cache
        Caching.PurgeCacheItems("Newest_Articles");
        Caching.PurgeCacheItems("ArticleCategory_SideMenu");

        //Notify user if error occured.
        if (Article.Update(Article) != 0)
        {
            JSLiteral.Text = Util.JSProcessingErrorAlert;
            return;
        }

        //Release allocated memory
        Article = null;

        //If success, redirect to article update confirmation page.
        Util.PageRedirect(7);

        Util = null;
    }
        int IEqualityComparer.GetHashCode ( Object obj ) {
            int hashCode;
            XPathNavigator nav;
            XPathDocumentNavigator xpdocNav;

            if (obj == null) {
                throw new ArgumentNullException("obj");
            }
            else if ( null != (xpdocNav = obj as XPathDocumentNavigator) ) {
                hashCode = xpdocNav.GetPositionHashCode();
            }
            else if( null != (nav = obj as XPathNavigator) ) {
                Object underlyingObject = nav.UnderlyingObject;
                if (underlyingObject != null) {
                    hashCode = underlyingObject.GetHashCode();
                }
                else {
                    hashCode = (int)nav.NodeType;
                    hashCode ^= nav.LocalName.GetHashCode();
                    hashCode ^= nav.Prefix.GetHashCode();
                    hashCode ^= nav.NamespaceURI.GetHashCode();
                }
            } 
            else {
                hashCode = obj.GetHashCode();
            }
            return hashCode;
        }
示例#29
0
        public ObjectLinkForm(Main main, Project project, Session session, Object obj, int frameNo)
        {
            InitializeComponent();

            this.main = main;
            this.project = project;
            this.session = session;
            this.obj = obj;
            this.frameNo = frameNo;
            this.sessionIndex = project.sessions.IndexOf(session);
            if (sessionIndex == -1)
            {
                MessageBox.Show("Cross session only works inside one project!");
                this.Dispose();
                return;
            }
            this.infoLbl.Text = "Link from object " + obj.id + " of session " + session.sessionName + " at frame " + frameNo;
            this.sessionSelectComboBox.Items.AddRange(project.sessions.Select(s => (s.sessionName.Equals(session.sessionName) ? "(current session)" : s.sessionName)).ToArray());
            this.sessionSelectComboBox.SelectedIndex = sessionIndex;
            this.objectSelectComboBox.Items.AddRange(session.getObjects().Select(o => o.id + (o.name.Equals("") ? "" : (" (\"" + o.name + "\")"))).ToArray());
            this.objectSelectComboBox.SelectedIndex = 0;
            this.qualifiedSelectComboBox.Items.AddRange(new object[] { true, false });
            this.qualifiedSelectComboBox.SelectedIndex = 0;
            this.linkComboBox.Items.AddRange(Options.getOption().objectLinkTypes.ToArray());
            this.linkComboBox.SelectedIndex = 0;
            renderPredicateList();
        }
示例#30
0
 public void grdacrData_Paging(Object sender, GridViewPageEventArgs e)
 {
     DataTable dtGridData = getTable();
     grdSalesData.PageIndex = e.NewPageIndex;
     grdSalesData.DataSource = dtGridData;
     grdSalesData.DataBind();
 }
示例#31
0
        /// <summary>
        ///  
        /// </summary>
        /// <exception cref="ShipEngine.ApiClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="apiKey">API Key</param>
        /// <param name="warehouseId"> (optional)</param>
        /// <param name="shipDateStart"> (optional)</param>
        /// <param name="shipDateEnd"> (optional)</param>
        /// <param name="createdAtStart"> (optional)</param>
        /// <param name="createdAtEnd"> (optional)</param>
        /// <param name="carrierId"> (optional)</param>
        /// <param name="page"> (optional)</param>
        /// <param name="pageSize"> (optional)</param>
        /// <returns>Task of ApiResponse (ManifestsListResponse)</returns>
        public async System.Threading.Tasks.Task<ApiResponse<ManifestsListResponse>> ManifestsListAsyncWithHttpInfo (string apiKey, string warehouseId = null, DateTime? shipDateStart = null, DateTime? shipDateEnd = null, DateTime? createdAtStart = null, DateTime? createdAtEnd = null, string carrierId = null, int? page = null, int? pageSize = null)
        {
            // verify the required parameter 'apiKey' is set
            if (apiKey == null)
                throw new ApiException(400, "Missing required parameter 'apiKey' when calling ManifestsApi->ManifestsList");

            var localVarPath = "/v1/manifests";
            var localVarPathParams = new Dictionary<String, String>();
            var localVarQueryParams = new List<KeyValuePair<String, String>>();
            var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
            var localVarFormParams = new Dictionary<String, String>();
            var localVarFileParams = new Dictionary<String, FileParameter>();
            Object localVarPostBody = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
            };
            String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json",
                "text/json"
            };
            String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
            if (localVarHttpHeaderAccept != null)
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

            if (warehouseId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "warehouse_id", warehouseId)); // query parameter
            if (shipDateStart != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "ship_date_start", shipDateStart)); // query parameter
            if (shipDateEnd != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "ship_date_end", shipDateEnd)); // query parameter
            if (createdAtStart != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "created_at_start", createdAtStart)); // query parameter
            if (createdAtEnd != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "created_at_end", createdAtEnd)); // query parameter
            if (carrierId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "carrier_id", carrierId)); // query parameter
            if (page != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter
            if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter
            if (apiKey != null) localVarHeaderParams.Add("api-key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter

            // authentication (api-key) required
            if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api-key")))
            {
                localVarHeaderParams["api-key"] = Configuration.GetApiKeyWithPrefix("api-key");
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
                Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int) localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("ManifestsList", localVarResponse);
                if (exception != null) throw exception;
            }

            return new ApiResponse<ManifestsListResponse>(localVarStatusCode,
                localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                (ManifestsListResponse) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ManifestsListResponse)));
        }
示例#32
0
		public Parameter (Object obj, string field) { this.obj = obj; this.field = field; }
示例#33
0
        /// <summary>
        /// Search Searches for the entities as specified by the given query.
        /// </summary>
        /// <exception cref="Customweb.Wallee.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="spaceId"></param>
        /// <param name="query">The query restricts the usage reports which are returned by the search.</param>
        /// <returns>Task of ApiResponse (List&lt;SubscriptionMetricUsageReport&gt;)</returns>
        public async System.Threading.Tasks.Task<ApiResponse<List<SubscriptionMetricUsageReport>>> SearchAsyncWithHttpInfo (long? spaceId, EntityQuery query)
        {
            // verify the required parameter 'spaceId' is set
            if (spaceId == null)
            {
                throw new ApiException(400, "Missing required parameter 'spaceId' when calling SubscriptionMetricUsageService->Search");
            }
            // verify the required parameter 'query' is set
            if (query == null)
            {
                throw new ApiException(400, "Missing required parameter 'query' when calling SubscriptionMetricUsageService->Search");
            }

            var localVarPath = "/subscription-metric-usage/search";
            var localVarPathParams = new Dictionary<String, String>();
            var localVarQueryParams = new Dictionary<String, String>();
            var localVarHeaderParams = new Dictionary<String, String>();
            var localVarFormParams = new Dictionary<String, String>();
            var localVarFileParams = new Dictionary<String, FileParameter>();
            Object localVarPostBody = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json;charset=utf-8"
            };
            String localVarHttpContentType = ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json;charset=utf-8"
            };
            String localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (spaceId != null) localVarQueryParams.Add("spaceId", ApiClient.ParameterToString(spaceId)); // query parameter
            if (query != null && query.GetType() != typeof(byte[]))
            {
                localVarPostBody = ApiClient.Serialize(query); // http body (model) parameter
            }
            else
            {
                localVarPostBody = query; // byte array
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse) await ApiClient.CallApiAsync(localVarPath,
                Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int) localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("Search", localVarResponse);
                if (exception != null) throw exception;
            }

            return new ApiResponse<List<SubscriptionMetricUsageReport>>(localVarStatusCode,
                localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                (List<SubscriptionMetricUsageReport>) ApiClient.Deserialize(localVarResponse, typeof(List<SubscriptionMetricUsageReport>)));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="FunctionStringInput" /> class.
        /// </summary>
        /// <param name="name">Input name. (required).</param>
        /// <param name="annotations">An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries..</param>
        /// <param name="description">Optional description for input..</param>
        /// <param name="_default">Default value for generic input..</param>
        /// <param name="alias">A list of aliases for this input in different platforms..</param>
        /// <param name="required">A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. (default to false).</param>
        /// <param name="spec">An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec..</param>
        public FunctionStringInput
        (
            string name, // Required parameters
            Dictionary<string, string> annotations= default, string description= default, string _default= default, List<AnyOf<DAGGenericInputAlias,DAGStringInputAlias,DAGIntegerInputAlias,DAGNumberInputAlias,DAGBooleanInputAlias,DAGFolderInputAlias,DAGFileInputAlias,DAGPathInputAlias,DAGArrayInputAlias,DAGJSONObjectInputAlias,DAGLinkedInputAlias>> alias= default, bool required = false, Object spec= default // Optional parameters
        ) : base(name: name, annotations: annotations, description: description, _default: _default, alias: alias, required: required, spec: spec)// BaseClass
        {

            // Set non-required readonly properties with defaultValue
            this.Type = "FunctionStringInput";
        }
示例#35
0
 public async void SiguienteButton_Clicked(Object sender, EventArgs args)
 {
     await Navigation.PushAsync(new Pagina2());
 }
示例#36
0
 private void Start()
 {
     effectExplo = Resources.Load("Effect/Explo");
 }
 /// <summary>
 /// Removes the object/component by using DestroyImmediate.
 /// </summary>
 public void RemoveComponent(Object obj)
 {
     DestroyImmediate(obj);
     EditorGUIUtility.ExitGUI();
 }
示例#38
0
 public IValueProvider<T> GetSourceProvider(Object source)
 {
     return GetValueProvider(source, this);
 }
示例#39
0
 protected static void OnGeometryChanged(Object sender, DependencyPropertyChangedEventArgs e)
 {
     ((Surface)sender).OnGeometryChanged();
 }
示例#40
0
        /// <summary>
        ///  
        /// </summary>
        /// <exception cref="ShipEngine.ApiClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="request"></param>
        /// <param name="apiKey">API Key</param>
        /// <returns>Task of ApiResponse (Manifest)</returns>
        public async System.Threading.Tasks.Task<ApiResponse<Manifest>> ManifestsCreateAsyncWithHttpInfo (CreateManifestRequest request, string apiKey)
        {
            // verify the required parameter 'request' is set
            if (request == null)
                throw new ApiException(400, "Missing required parameter 'request' when calling ManifestsApi->ManifestsCreate");
            // verify the required parameter 'apiKey' is set
            if (apiKey == null)
                throw new ApiException(400, "Missing required parameter 'apiKey' when calling ManifestsApi->ManifestsCreate");

            var localVarPath = "/v1/manifests";
            var localVarPathParams = new Dictionary<String, String>();
            var localVarQueryParams = new List<KeyValuePair<String, String>>();
            var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
            var localVarFormParams = new Dictionary<String, String>();
            var localVarFileParams = new Dictionary<String, FileParameter>();
            Object localVarPostBody = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json", 
                "text/json"
            };
            String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json",
                "text/json"
            };
            String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
            if (localVarHttpHeaderAccept != null)
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

            if (apiKey != null) localVarHeaderParams.Add("api-key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter
            if (request != null && request.GetType() != typeof(byte[]))
            {
                localVarPostBody = Configuration.ApiClient.Serialize(request); // http body (model) parameter
            }
            else
            {
                localVarPostBody = request; // byte array
            }

            // authentication (api-key) required
            if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api-key")))
            {
                localVarHeaderParams["api-key"] = Configuration.GetApiKeyWithPrefix("api-key");
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
                Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int) localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("ManifestsCreate", localVarResponse);
                if (exception != null) throw exception;
            }

            return new ApiResponse<Manifest>(localVarStatusCode,
                localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                (Manifest) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Manifest)));
        }
示例#41
0
 private static void OnBackMaterialChanged(Object sender, DependencyPropertyChangedEventArgs e)
 {
     ((Surface)sender).OnBackMaterialChanged();
 }
 public DataGridViewDateTimeCell(Object defaultNewRowValue) : base()
 {
     _defaultNewRowValueSet = true;
     _defaultNewRowValue    = defaultNewRowValue;
 }
示例#43
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
 /// </summary>
 /// <param name="mapProperty">mapProperty.</param>
 /// <param name="mapOfMapProperty">mapOfMapProperty.</param>
 /// <param name="anytype1">anytype1.</param>
 /// <param name="mapWithUndeclaredPropertiesAnytype1">mapWithUndeclaredPropertiesAnytype1.</param>
 /// <param name="mapWithUndeclaredPropertiesAnytype2">mapWithUndeclaredPropertiesAnytype2.</param>
 /// <param name="mapWithUndeclaredPropertiesAnytype3">mapWithUndeclaredPropertiesAnytype3.</param>
 /// <param name="emptyMap">an object with no declared properties and no undeclared properties, hence it&#39;s an empty map..</param>
 /// <param name="mapWithUndeclaredPropertiesString">mapWithUndeclaredPropertiesString.</param>
 public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>), Object anytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype2 = default(Object), Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3 = default(Dictionary<string, Object>), Object emptyMap = default(Object), Dictionary<string, string> mapWithUndeclaredPropertiesString = default(Dictionary<string, string>))
 {
     this.MapProperty = mapProperty;
     this.MapOfMapProperty = mapOfMapProperty;
     this.Anytype1 = anytype1;
     this.MapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
     this.MapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
     this.MapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
     this.EmptyMap = emptyMap;
     this.MapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
     this.AdditionalProperties = new Dictionary<string, object>();
 }
示例#44
0
 private static void OnVisibleChanged(Object sender, DependencyPropertyChangedEventArgs e)
 {
     ((Surface)sender).OnVisibleChanged();
 }
        public void SetQtyCloseStockAllORg(Decimal? QtyCloseStockAllORg) { Set_Value("QtyCloseStockAllORg", (Decimal?)QtyCloseStockAllORg); }/** Get Closing Stock All Organization.
@return Closing Stock All Organization */
        public Decimal GetQtyCloseStockAllORg() { Object bd = Get_Value("QtyCloseStockAllORg"); if (bd == null) return Env.ZERO; return Convert.ToDecimal(bd); }/** Set Closing Stock.
示例#46
0
 private void Application_CreateCustomUserModelDifferenceStore(Object sender, CreateCustomModelDifferenceStoreEventArgs e)
 {
     e.Store   = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), false, "Win");
     e.Handled = true;
 }
        public void SetM_ProductStockSummary_ID(int M_ProductStockSummary_ID) { if (M_ProductStockSummary_ID < 1) throw new ArgumentException("M_ProductStockSummary_ID is mandatory."); Set_ValueNoCheck("M_ProductStockSummary_ID", M_ProductStockSummary_ID); }/** Get Product Stock Summary.
@return Product Stock Summary */
        public int GetM_ProductStockSummary_ID() { Object ii = Get_Value("M_ProductStockSummary_ID"); if (ii == null) return 0; return Convert.ToInt32(ii); }/** Set Product.
        public void SetQtyOpenStockAllOrg(Decimal? QtyOpenStockAllOrg) { Set_Value("QtyOpenStockAllOrg", (Decimal?)QtyOpenStockAllOrg); }/** Get Opening Stock All Organization.
@return Opening Stock All Organization */
        public Decimal GetQtyOpenStockAllOrg() { Object bd = Get_Value("QtyOpenStockAllOrg"); if (bd == null) return Env.ZERO; return Convert.ToDecimal(bd); }/** Set Opening Stock.
示例#49
0
 private void RemoveLocalization(Object sender, EventArgs e)
 {
     Localization.LanguageChanged -= OnUpdateText;
 }
        public void SetM_Product_ID(int M_Product_ID) { if (M_Product_ID < 1) throw new ArgumentException("M_Product_ID is mandatory."); Set_ValueNoCheck("M_Product_ID", M_Product_ID); }/** Get Product.
@return Product, Service, Item */
        public int GetM_Product_ID() { Object ii = Get_Value("M_Product_ID"); if (ii == null) return 0; return Convert.ToInt32(ii); }/** Set Movement From Date.
示例#51
0
        /// <summary>
        /// Add helper which adds the given key/value (where the key is not null) with
        /// a pre-computed hash code.
        /// </summary>
        private bool AddOne(Bucket[] buckets, AnalysisValue/*!*/ key, int hc) {
            Debug.Assert(key != null);

            Debug.Assert(_count < buckets.Length);
            int index = hc % buckets.Length;
            int startIndex = index;
            int addIndex = -1;

            for (; ;) {
                Bucket cur = buckets[index];
                var existingKey = cur.Key;
                if (existingKey == null || existingKey == _removed || !existingKey.IsAlive) {
                    if (addIndex == -1) {
                        addIndex = index;
                    }
                    if (cur.Key == null) {
                        break;
                    }
                } else if (Object.ReferenceEquals(key, existingKey)) {
                    return false;
                } else if (cur.HashCode == hc && _comparer.Equals(key, existingKey)) {
                    var uc = _comparer as UnionComparer;
                    if (uc == null) {
                        return false;
                    }
                    bool changed;
                    var newKey = uc.MergeTypes(existingKey, key, out changed);
                    if (!changed) {
                        return false;
                    }
                    // merging values has changed the one we should store, so
                    // replace it.
                    var newHc = _comparer.GetHashCode(newKey) & Int32.MaxValue;
                    if (newHc != buckets[index].HashCode) {
                        // The hash code should not change, but if it does, we
                        // need to keep things consistent
                        Debug.Fail("Hash code changed when merging AnalysisValues");
                        Thread.MemoryBarrier();
                        buckets[index].Key = _removed;
                        AddOne(buckets, newKey, newHc);
                        return true;
                    }
                    Thread.MemoryBarrier();
                    buckets[index].Key = newKey;
                    return true;
                }

                index = ProbeNext(buckets, index);

                if (index == startIndex) {
                    break;
                }
            }

            if (buckets[addIndex].Key != null &&
                buckets[addIndex].Key != _removed &&
                !buckets[addIndex].Key.IsAlive) {
                _count--;
            }
            buckets[addIndex].HashCode = hc;
            Thread.MemoryBarrier();
            // we write the key last so that we can check for null to
            // determine if a bucket is available.
            buckets[addIndex].Key = key;

            return true;
        }
 /** Get Stock Summarized.
 @return Stock Summarized */
 public Boolean IsStockSummarized()
 {
     Object oo = Get_Value("IsStockSummarized"); if (oo != null) { if (oo.GetType() == typeof(bool)) return Convert.ToBoolean(oo); return "Y".Equals(oo); } return false;
 }
示例#53
0
        public override Object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
        {
            if (culture == null)
            {
                culture = CultureInfo.CurrentCulture;
            }

            String Str = (string)(value);

            if (Str != null)
            {
                Str = Str.Trim();
                TypeConverter vector3Converter = TypeDescriptor.GetConverter(typeof(Vector3));
                TypeConverter floatConverter   = TypeDescriptor.GetConverter(typeof(float));
                String[]      stringArray      = Str.Split(culture.TextInfo.ListSeparator[0]);

                if (stringArray.Length != 2)
                {
                    throw new ArgumentException("Invalid sphere format.");
                }

                Vector3 Center = (Vector3)(vector3Converter.ConvertFromString(context, culture, stringArray[0]));
                float   Radius = (float)(floatConverter.ConvertFromString(context, culture, stringArray[1]));

                return(new BoundingSphere(Center, Radius));
            }

            return(base.ConvertFrom(context, culture, value));
        }
示例#54
0
 private void AddLocalization(Object sender, EventArgs e)
 {
     Localization.LanguageChanged += OnUpdateText;
     OnUpdateText();
 }
示例#55
0
 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext tdc, Object obj, Attribute[] attrs)
 {
     return(m_Properties);
 }
示例#56
0
 /// <summary>Ctor. </summary>
 /// <param name="dataFlowName">data flow name</param>
 /// <param name="operatorName">operator name</param>
 /// <param name="operatorNumber">operator number</param>
 /// <param name="operatorPrettyPrint">pretty-print of operator</param>
 /// <param name="throwable">cause</param>
 public EPDataFlowExceptionContext(String dataFlowName, String operatorName, Object operatorNumber, Object operatorPrettyPrint, Exception throwable)
 {
     DataFlowName        = dataFlowName;
     OperatorName        = operatorName;
     OperatorNumber      = operatorNumber;
     OperatorPrettyPrint = operatorPrettyPrint;
     Exception           = throwable;
 }
示例#57
0
        public bool Equals(Run other)
        {
            if (other == null)
            {
                return false;
            }

            if (!Object.Equals(Tool, other.Tool))
            {
                return false;
            }

            if (!Object.Equals(Invocation, other.Invocation))
            {
                return false;
            }

            if (!Object.ReferenceEquals(Files, other.Files))
            {
                if (Files == null || other.Files == null || Files.Count != other.Files.Count)
                {
                    return false;
                }

                foreach (var value_0 in Files)
                {
                    IList<FileData> value_1;
                    if (!other.Files.TryGetValue(value_0.Key, out value_1))
                    {
                        return false;
                    }

                    if (!Object.ReferenceEquals(value_0.Value, value_1))
                    {
                        if (value_0.Value == null || value_1 == null)
                        {
                            return false;
                        }

                        if (value_0.Value.Count != value_1.Count)
                        {
                            return false;
                        }

                        for (int index_0 = 0; index_0 < value_0.Value.Count; ++index_0)
                        {
                            if (!Object.Equals(value_0.Value[index_0], value_1[index_0]))
                            {
                                return false;
                            }
                        }
                    }
                }
            }

            if (!Object.ReferenceEquals(LogicalLocations, other.LogicalLocations))
            {
                if (LogicalLocations == null || other.LogicalLocations == null || LogicalLocations.Count != other.LogicalLocations.Count)
                {
                    return false;
                }

                foreach (var value_2 in LogicalLocations)
                {
                    IList<LogicalLocationComponent> value_3;
                    if (!other.LogicalLocations.TryGetValue(value_2.Key, out value_3))
                    {
                        return false;
                    }

                    if (!Object.ReferenceEquals(value_2.Value, value_3))
                    {
                        if (value_2.Value == null || value_3 == null)
                        {
                            return false;
                        }

                        if (value_2.Value.Count != value_3.Count)
                        {
                            return false;
                        }

                        for (int index_1 = 0; index_1 < value_2.Value.Count; ++index_1)
                        {
                            if (!Object.Equals(value_2.Value[index_1], value_3[index_1]))
                            {
                                return false;
                            }
                        }
                    }
                }
            }

            if (!Object.ReferenceEquals(Results, other.Results))
            {
                if (Results == null || other.Results == null)
                {
                    return false;
                }

                if (!Results.SetEquals(other.Results))
                {
                    return false;
                }
            }

            if (!Object.ReferenceEquals(Rules, other.Rules))
            {
                if (Rules == null || other.Rules == null || Rules.Count != other.Rules.Count)
                {
                    return false;
                }

                foreach (var value_4 in Rules)
                {
                    Rule value_5;
                    if (!other.Rules.TryGetValue(value_4.Key, out value_5))
                    {
                        return false;
                    }

                    if (!Object.Equals(value_4.Value, value_5))
                    {
                        return false;
                    }
                }
            }

            return true;
        }
示例#58
0
        public override Object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
        {
            if (destinationType == null)
            {
                throw new ArgumentNullException("destinationType");
            }

            if (culture == null)
            {
                culture = CultureInfo.CurrentCulture;
            }

            BoundingSphere sphere = (BoundingSphere)(value);

            if (destinationType == typeof(string) && sphere != null)
            {
                String        separator        = culture.TextInfo.ListSeparator + " ";
                TypeConverter vector3Converter = TypeDescriptor.GetConverter(typeof(Vector3));
                TypeConverter floatConverter   = TypeDescriptor.GetConverter(typeof(float));
                String[]      stringArray      = new String[2];

                stringArray[0] = vector3Converter.ConvertToString(context, culture, sphere.Center);
                stringArray[1] = floatConverter.ConvertToString(context, culture, sphere.Radius);

                return(String.Join(separator, stringArray));
            }
            else if (destinationType == typeof(InstanceDescriptor) && sphere != null)
            {
                ConstructorInfo info = (typeof(BoundingSphere)).GetConstructor(new Type[] { typeof(Vector3), typeof(float) });
                if (info != null)
                {
                    return(new InstanceDescriptor(info, new Object[] { sphere.Center, sphere.Radius }));
                }
            }

            return(base.ConvertTo(context, culture, value, destinationType));
        }
示例#59
0
 public string lpad(Object oVal, int Length, char PadChar)
 {
     string Val = oVal.ToString();
     return Val.PadLeft(Length, PadChar);
 }
示例#60
0
 protected void Application_Error(Object sender, EventArgs e)
 {
 }