小编Alf*_*cre的帖子

使用C#在其他人的Outlook日历中创建约会

我想创建一个程序,以便可以在其他人的Outlook日历中创建约会。例如:如果某人要求他的老板免费使用五天,则他们的老板需要能够批准它,并立即使其在该人的外表日历中可见。我已经编写了一些代码,可以在其中设置您自己的约会。这是我的代码:

    public Form1()
    {
        InitializeComponent();

    }

    private void button1_Click(object sender, EventArgs e)
    {
        AddAppointment("ConferenceRoom #2345", "We will discuss progression the group project.", "Group Project", new DateTime(2016, 02, 23, 15, 30, 52), new DateTime(2016, 02, 23, 20, 30, 52));
    }
    private void AddAppointment(string location, string body, string subject, DateTime startdatum, DateTime einddatum)
    {
        try
        {
            var AppOutlook = new Outlook.Application();

            Outlook.AppointmentItem newAppointment =
            (Outlook.AppointmentItem)
            AppOutlook.CreateItem(Outlook.OlItemType.olAppointmentItem);
            newAppointment.Start = startdatum;
            newAppointment.End = einddatum;
            newAppointment.Location = location;
            newAppointment.Body = body;
            newAppointment.BusyStatus=Outlook.OlBusyStatus.olTentative;
            newAppointment.AllDayEvent = true; …
Run Code Online (Sandbox Code Playgroud)

c# outlook calendar

5
推荐指数
1
解决办法
5916
查看次数

如何在PHP中将两个变量相加?

我目前正在尝试将两个变量放在一起,一个已经自动计算了一个特定的数字imagesy,第二个变量正在从 url 返回数据$_GET['l2_y']

imagettfstroketext($jpg_image, 0, $y . $options['text']['font-position']['l2_y'] );
Run Code Online (Sandbox Code Playgroud)

$y 返回 '29'

$options['text']['font-position']['l2_y']回报+150(或我在标题中设置的任何内容)

我正在尝试将两者结合起来,但它根本不起作用,如果我删除$y .了 +150 就可以了,但是如果我添加了 . 它不计算一切..

我已经被困在这里一段时间了,我不确定如何将两者结合起来,我在 get 中使用 + 符号的原因是因为它也可以用作 a-150来更改文本的位置。

php

1
推荐指数
1
解决办法
2万
查看次数

将vector3转换为变换

我正在制作一个spawner脚本,但有一个问题,我无法找到解决方案......

我得到一个错误说

"无法将类型'UnityEngine.Vector3'隐式转换为'UnityEngine.Transform'"

我可以通过添加.position来删除错误,spawningpos但这不起作用,因为它不是对象的转换只是脚本中的转换变量

public GameObject[] spawningObj;
public GameObject[] insects;
public GameObject[] invierment;
public GameObject[] inviermentSingel;
public Transform player;
public int maxNPCsPerChunk;
public int maxInectsPerChunk;
public int maxInviermentalsPerChunk;
public int spawningAria;

private Transform spawningpos;

// Use this for initialization
void Start()
{
    if (player == null)
        player = GameObject.FindWithTag("Player").transform;

    int max = Random.Range(0, maxInectsPerChunk);
    for (int i = 0; i < max; i++)
    {
        spawningpos = new Vector3(Random.Range(-spawningAria, spawningAria) + transform.position.x, 2f, Random.Range(-spawningAria, spawningAria) + transform.position.z);
        //Error on …
Run Code Online (Sandbox Code Playgroud)

c# unity-game-engine unity5

0
推荐指数
1
解决办法
9834
查看次数

标签 统计

c# ×2

calendar ×1

outlook ×1

php ×1

unity-game-engine ×1

unity5 ×1