Exemplo n.º 1
0
        public void MyAllPluginsMethod(string options)
        {
            string[] args       = JSON.JsonHelper.Deserialize <string[]>(options);
            string   actionName = args[0];


            PluginResult result;

            if (actionName == "alert")
            {
                if (actionName != "")
                {
                    result = new PluginResult(PluginResult.Status.OK, "succ");
                }
                else
                {
                    result = new PluginResult(PluginResult.Status.ERROR, "anyerror");
                }

                DispatchCommandResult(result);
            }

            else if (actionName == "checkUpdate")
            {
                try
                {
                    checkUpdate checkupdatex = new checkUpdate();
                    checkupdatex.EventForcheckUpdateResult += Checkupdatex_EventForcheckUpdateResult;
                    checkupdatex.checkUpdateFromServer(args[1]);
                }
                catch (Exception ex)
                {
                    throw;
                }
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            checkUpdate Form = new checkUpdate();

            Form.Show();
        }