Exemple #1
0
 private void Edit_button_Click(object sender, EventArgs e)
 {
     /// otevření okna editace hesla
     DataContainer.selected = listBox1.SelectedIndex;
     if (DataContainer.selected >= 0)
     {
         Edit_Form fm = new Edit_Form();
         fm.ShowDialog();
     }
 }
Exemple #2
0
        private void listBox1_DoubleClick(object sender, EventArgs e)
        {
            Edit_Form fm = new Edit_Form();

            DataContainer.selected = listBox1.SelectedIndex;
            if (DataContainer.selected == -1)
            {
                DataContainer.selected = 0;
            }
            fm.ShowDialog();
        }
Exemple #3
0
        private void addButton_Click(object sender, EventArgs e)
        {
            int count = 0;

            for (int i = 0; DataContainer.ps_name[i] != null; i++)
            {
                count++;
            }
            Edit_Form fm = new Edit_Form();

            DataContainer.selected = count;
            timer1.Enabled         = true;
            fm.ShowDialog();
        }