Exemplo n.º 1
0
        public LoginForm()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;

            ElipseControl nn = new ElipseControl();

            nn.TargetControl = btnLogin;
            nn.CornerRadius  = 30;
            //nn.TargetControl = pictureBox1;
            //nn.CornerRadius = 30;
        }
Exemplo n.º 2
0
        private void show()
        {
            pnltask.Controls.Clear();
            pnltaskcomplete.Controls.Clear();
            // CornerRadius Control
            ElipseControl nn = new ElipseControl();

            nn.TargetControl = lblHeader;
            nn.CornerRadius  = 30;
            nn.TargetControl = button1;
            nn.CornerRadius  = 30;
            nn.TargetControl = btnInsert;
            nn.CornerRadius  = 30;

            //Add task
            int basex = pnltask.Location.X;

            List <DAO.Mission> list        = new List <DAO.Mission>();
            MissionBUS         todolistBUS = new MissionBUS();

            list = todolistBUS.ReturnMission(ID);
            List <Task> tasks = new List <Task>();


            for (int i = 0; i < list.Count; i++)
            {
                //Set Name task
                string x = list[i].IDMission + "";
                Task   b = new Task(list[i].NameMission, list[i].Check);
                b.Name = String.Format(x);
                //Event check box changed
                b.checkBox.CheckStateChanged += CheckBox_CheckStateChanged;
                //Event Delete Task
                b.bntDelete.Click += BntDelete_Click;
                //Event Edit Task
                b.btnEdit.Click += btnEdit_Click;
                tasks.Add(b);
                // pnltask.Controls.Add(b);
            }


            Checking(tasks);
            Display();
        }