예제 #1
0
        private void buttonNastavit_Click(object sender, EventArgs e)
        {
            Editace_Karty k = new Editace_Karty(karta, main);

            k.ShowDialog();

            table.Controls.Clear();
            vykresliTabulku();
            labelNazevKarty.Text = karta.nazev;
        }
예제 #2
0
        private void nastaveniToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int           index         = ((ToolStripMenuItem)sender).MergeIndex;
            Editace_Karty kartaNasaveni = new Editace_Karty(index, main);

            kartaNasaveni.ShowDialog();
            table.GetControlFromPosition(index % 3, index / 3).Text      = main.poleKaret[index].nazev + (main.poleKaret[index].Finally ? (System.Environment.NewLine + main.poleKaret[index].rok + " " + main.poleKaret[index].mesic) : "");
            table.GetControlFromPosition(index % 3, index / 3).BackColor = main.poleKaret[index].color;

            Refresh();
        }