private void OnClickContractTermLine(ContractTermLine contractTermLine)
    {
        if (this.DiplomaticContract == null)
        {
            Diagnostics.LogWarning("Diplomatic contract is null");
            return;
        }
        DiplomaticTermChange[] diplomaticTermChanges = new DiplomaticTermChange[]
        {
            DiplomaticTermChange.Remove(contractTermLine.ContractTerm.Index)
        };
        OrderChangeDiplomaticContractTermsCollection order = new OrderChangeDiplomaticContractTermsCollection(this.DiplomaticContract, diplomaticTermChanges);
        Ticket ticket;

        base.PlayerController.PostOrder(order, out ticket, new EventHandler <TicketRaisedEventArgs>(this.OnOrderChangeDiplomaticContractTermsCollectionResponse));
    }
    private void OnResetCB(GameObject obj)
    {
        if (this.DiplomaticContract == null)
        {
            Diagnostics.LogWarning("Diplomatic contract is null");
            return;
        }
        Diagnostics.Assert(this.DiplomaticContract.Terms != null);
        if (this.DiplomaticContract.Terms.Count == 0)
        {
            return;
        }
        DiplomaticTermChange[] array = new DiplomaticTermChange[this.DiplomaticContract.Terms.Count];
        for (int i = 0; i < this.DiplomaticContract.Terms.Count; i++)
        {
            DiplomaticTerm diplomaticTerm = this.DiplomaticContract.Terms[i];
            Diagnostics.Assert(diplomaticTerm != null);
            array[i] = DiplomaticTermChange.Remove(diplomaticTerm.Index);
        }
        OrderChangeDiplomaticContractTermsCollection order = new OrderChangeDiplomaticContractTermsCollection(this.DiplomaticContract, array);
        Ticket ticket;

        base.PlayerController.PostOrder(order, out ticket, new EventHandler <TicketRaisedEventArgs>(this.OnOrderChangeDiplomaticContractTermsCollectionResponse));
    }