Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            bool flagCmd = false;

            for (int i = 0; i < args.Length; i++)
            {
                if (args[i].Contains("tavico://"))
                {
                    flagCmd = true;
                    break;
                }
            }
            if (flagCmd)
            {
                if (args.Length >= 2)
                {
                    LoadConfig(args[0]);
                    string[] arrCmd = args[1].Split('?');
                    string   sErr   = CmdManager.RunCmd(arrCmd[0], arrCmd[1]);
                }
            }
            else
            {
                Application.Run(new Form_QD(args));
            }
        }
Exemplo n.º 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            string kq = "tavico://TASK?id=" + _info.Code;

            if (P1.Text != "")
            {
                kq += "&P1=" + P1.Text;
            }
            if (P2.Text != "")
            {
                kq += "&P2=" + P2.Text;
            }
            if (P3.Text != "")
            {
                kq += "&P3=" + P3.Text;
            }
            if (P4.Text != "")
            {
                kq += "&P4=" + P4.Text;
            }
            if (P5.Text != "")
            {
                kq += "&P5=" + P5.Text;
            }
            if (P6.Text != "")
            {
                kq += "&P6=" + P6.Text;
            }
            if (P7.Text != "")
            {
                kq += "&P7=" + P7.Text;
            }
            if (P8.Text != "")
            {
                kq += "&P8=" + P8.Text;
            }
            if (P9.Text != "")
            {
                kq += "&P9=" + P9.Text;
            }
            if (P10.Text != "")
            {
                kq += "&P10=" + P10.Text;
            }

            toolStripStatusLabel1.Text = kq;
            string[] cmd = kq.Split('?');
            CmdManager.UserID = _userID;
            string value = CmdManager.RunCmd(cmd[0], cmd[1]);

            if (value != "")
            {
                toolStripStatusLabel1.Text = value;
            }
        }