Exemplo n.º 1
0
        private void UOS_Click(object sender, EventArgs e)
        {
            if (UOS_C == false)
            {
                UOS.Text = "Uncheck all Offerings";
            }
            else
            {
                UOS.Text = "Check all Offerings";
            }
            UOS.Refresh();

            for (int i = 0; i < surv_offerings.Items.Count; i++)
            {
                if (UOS_C == false)
                {
                    surv_offerings.SetItemCheckState(i, CheckState.Checked);
                }
                if (UOS_C == true)
                {
                    surv_offerings.SetItemCheckState(i, CheckState.Unchecked);
                }
            }
            UOS_C = !UOS_C;
        }
Exemplo n.º 2
0
    /// <summary>
    /// Initialises the uOS middleware with given app call handler and optional logger.
    /// </summary>
    /// <param name="app">The instance of of UOSApplication that will handle app service calls (it may be null).</param>
    /// <param name="plogger"></param>
    public static void Init(UOSApplication app, UOS.Logger plogger = null)
    {
        if (!ready)
        {
            if (plogger != null)
                logger = plogger;

            logger.Log("uOS init");

            _instance._gateway = new UnityGateway(settings, logger, app);
            _instance._gateway.Init();

            _instance._ready = true;
        }
        else
            logger.LogWarning("uOS already initiated!");
    }