Exemplo n.º 1
0
        private void kaldırToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Core.Questions a = Core.Questions.GetById(eqOrWordIdFind());
            DialogResult   r = MessageBox.Show("Kelimeyi ya da İşlemi Silmek istediğinizden emin misiniz?", "Kelimeyi ya da İşlemi Sil?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (r == DialogResult.Yes)
            {
                a.Remove();
            }
        }
Exemplo n.º 2
0
 private void numericUpDown3_ValueChanged(object sender, EventArgs e)
 {
     Core.Questions eaw = Core.Questions.GetById((int)numericUpDown3.Value);
     foreach (Core.Questions a in Core.Questions.All)
     {
         a.menuItem.ForeColor = SystemColors.WindowText;
     }
     if (eaw != null)
     {
         eaw.menuItem.ForeColor = Color.DarkGreen;
     }
 }
Exemplo n.º 3
0
 internal static void setup(Core.Questions sent)
 {
     current       = sent;
     questionchars = current.GetCompetitionArray();
     currentPoints = current.MaximumWorthInPoints;
     if (sent.GetType() == typeof(Core.DictionaryWord) || sent.GetType() == typeof(Core.UserWord))
     {
         actualJoker = true;
     }
     else
     {
         actualJoker = false;
     }
     viewChars            = new string[] { "", "", "", "", "", "", "", "" };
     viewJoker            = false;
     views                = new bool[8];
     panel                = 0;
     randomizedpanelindex = 0;
     paneltimer.Start();
 }
Exemplo n.º 4
0
 internal void SendItem(Core.Questions eq)
 {
     ViewerPanel.ViewerClass.setup(eq);
 }