Example #1
0
        private void AddCheckToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CheckDialog dialog = new CheckDialog();

            dialog.ShowDialog();

            LoadChecks();
        }
Example #2
0
        private void Checks_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (Checks.SelectedItems.Count == 0)
            {
                return;
            }

            CheckDialog dialog = new CheckDialog();

            dialog.Value = CheckRepository.GetCheck((int)Checks.SelectedItems[0].Tag);

            dialog.ShowDialog();

            LoadChecks();
        }