Exemplo n.º 1
0
        private void Changetask_Click(object sender, EventArgs e)
        {
            var stripitem = sender as ToolStripItem;

            foreach (var item in panel2.Controls.OfType <Panel>())
            {
                foreach (var item2 in item.Controls.OfType <Button>())
                {
                    if (item2.ContextMenuStrip != null)
                    {
                        foreach (ToolStripItem item3 in item2.ContextMenuStrip.Items)
                        {
                            if (item3 == stripitem)
                            {
                                //MessageBox.Show(item.Controls.OfType<Label>().First().Text);
                                EnterName enterName = new EnterName();
                                enterName.ShowDialog();
                                item.Controls.OfType <RichTextBox>().Where(x => x.Name == stripitem.Name).First().Text = EnterName.name;
                                trello.ChangeTaskContent(trello.GetRowById(Convert.ToInt32(item.Name)), EnterName.name, Convert.ToInt32(stripitem.Name));
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void İtem1_Click(object sender, EventArgs e)
        {
            var stripitem = sender as ToolStripItem;

            foreach (var item in panel2.Controls.OfType <Panel>())
            {
                foreach (var item2 in item.Controls.OfType <Button>())
                {
                    if (item2.ContextMenuStrip != null)
                    {
                        foreach (ToolStripItem item3 in item2.ContextMenuStrip.Items)
                        {
                            if (item3 == stripitem)
                            {
                                //MessageBox.Show(item.Controls.OfType<Label>().First().Text);
                                EnterName enterName = new EnterName();
                                enterName.ShowDialog();
                                item.Controls.OfType <Label>().First().Text = EnterName.name;
                                trello.ChangeRowName(trello.getBoardId(id), EnterName.name, Convert.ToInt32(item.Name));
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            EnterName name = new EnterName();

            name.ShowDialog();
            trello.addRow(id, EnterName.name);
            DrawRows(trello.getBoardId(id));
        }
Exemplo n.º 4
0
        private void CardButton_Click(object sender, EventArgs e)
        {
            var       button    = sender as Button;
            EnterName enterName = new EnterName();

            enterName.ShowDialog();
            trello.AddTask(trello.GetRowById(Convert.ToInt32(button.Name)), EnterName.name);
            DrawRows(trello.getBoardId(id));
        }