コード例 #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            var form = new MaintenanceCheckEditNew(comboBox1.SelectedItem as MaintenanceCheck);

            if (form.ShowDialog() == DialogResult.OK)
            {
                _animatedThreadWorker.RunWorkerAsync();
            }
        }
コード例 #2
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            var form = new MaintenanceCheckEditNew(new MaintenanceCheck()
            {
                ParentAircraft = _currentAircraft, ParentAircraftId = _currentAircraft.ItemId
            });

            if (form.ShowDialog() == DialogResult.OK)
            {
                _animatedThreadWorker.RunWorkerAsync();
            }
        }