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

            dialog.ShowDialog();

            LoadChecks();
        }
예제 #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();
        }