Пример #1
0
        private void btnTiendo_Click(object sender, EventArgs e)
        {
            var      name = tbName.Text.Trim();
            TaskInfo task = PcController.GetTaskInfo(taskid, name);

            task.TienDo = "Xong";
            listPC.SelectedItems[0].SubItems[4].Text = "Xong";
            PcController.UpdateInfo(task);
            TienDo();
        }
Пример #2
0
        public void Update(float delta)
        {
            GameController.Update(delta);
            PcController.Update(delta);
            PcAltController.Update(delta);

            RightStick.Update();
            LeftStick.Update();

            //Updating Dpad to use it's joystick emulator
            _actionDPad.Update(delta);
            //Updating KeyboardOnlyDpad to use it's joystick emulator
            _keyboardDPad.Update(delta);

            UpdateSticks();
        }
Пример #3
0
    void Start()
    {
        //folder = Application.dataPath + "/Captures";
        folder = "C:/Users/Administrator/Pictures/Captures";
        if (!Directory.Exists(folder))
        {
            Directory.CreateDirectory(folder);
        }

        Object[] objects  = GameObject.FindObjectsOfType(typeof(Animator));
        Animator animator = (Animator)objects[0];

        pcCtrl = animator.GetComponent <PcController>();

        if (okCapture)
        {
            StartCoroutine(MakeSpriteFiles(3f));
        }
    }
Пример #4
0
        private void DisplayTask()
        {
            foreach (ListViewItem Item in listPC.Items)
            {
                listPC.Items.Remove(Item);
            }
            List <TaskInfo> lsttaskinfo = PcController.getAllInfo();

            foreach (TaskInfo taskinfo in lsttaskinfo)
            {
                if (taskid == taskinfo.ID)
                {
                    ListViewItem eVent = new ListViewItem(taskinfo.ID.ToString());
                    eVent.SubItems.Add(new ListViewItem.ListViewSubItem(eVent, taskinfo.Viec));
                    eVent.SubItems.Add(new ListViewItem.ListViewSubItem(eVent, taskinfo.Info));
                    eVent.SubItems.Add(new ListViewItem.ListViewSubItem(eVent, taskinfo.User));
                    eVent.SubItems.Add(new ListViewItem.ListViewSubItem(eVent, taskinfo.TienDo));
                    this.listPC.Items.Add(eVent);
                }
            }
        }
Пример #5
0
        private void btnAddPC_Click_2(object sender, EventArgs e)
        {
            TaskInfo TaskPC = new TaskInfo();

            TaskPC.ID = taskid;
            //if (listUser.Items.Count == 0)
            //{
            //    return;
            //}
            try
            {
                TaskPC.User = listUser.Items[0].ToString();
                TaskPC.Viec = tbName.Text.Trim();
                TaskPC.Info = rtbInfo.Text.Trim();
            }
            catch { return; }
            TaskPC.TienDo = "";
            PcController.AddPc(TaskPC);
            listUser.Items.Clear();
            listSearch.Items.Clear();
            tbSearch.Clear();
            tbName.Clear();
            rtbInfo.Clear();

            DisplayTask();
            TienDo();
            //using (frmTask task = new frmTask())
            //{
            //    for (int i = 0; i < listPC.Items.Count; i++)
            //    {
            //        //if (!(task.lstUsers.Items.Contains(listPC.Items[i].SubItems[2].Text.Trim())))
            //        //{

            //            task.lstUsers.Items[i] = listPC.Items[i].SubItems[2].Text.Trim();
            //        //}
            //    }
            //}
        }
Пример #6
0
 void Start()
 {
     inGameMenu = GetComponent <PcController> ();
 }
Пример #7
0
    void Start()
    {
        //folder = Application.dataPath + "/Captures";
        folder = "C:/Users/Administrator/Pictures/Captures";
        if (!Directory.Exists(folder)) {
            Directory.CreateDirectory(folder);
        }

        Object[] objects = GameObject.FindObjectsOfType(typeof(Animator));
        Animator animator = (Animator)objects[0];
        pcCtrl = animator.GetComponent<PcController>();

        if (okCapture) StartCoroutine( MakeSpriteFiles(3f) );
    }