Ejemplo n.º 1
0
 /// <summary>
 /// Импорт данных
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void menuItemFileImport_Click(object sender, EventArgs e)
 {
     if (_importDataForm == null || _importDataForm.IsDisposed)
     {
         _importDataForm = new ImportDataForm(_patientForm, _dbEngine)
         {
             MdiParent = this
         };
         _importDataForm.Show();
     }
     else
     {
         _importDataForm.Focus();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Импорт данных
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemFileImport_Click(object sender, EventArgs e)
        {
            if (_masterKey.HashInfoHardDisks != _masterKey.GetMasterKeyFromFile())
            {
                MessageBox.Show("Программа не зарегистрирована. Для импорта данных зарегистрируйте программу.", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (_importDataForm == null || _importDataForm.IsDisposed)
            {
                _importDataForm = new ImportDataForm(_patientForm, _dbEngine)
                {
                    MdiParent = this
                };
                _importDataForm.Show();
            }
            else
            {
                _importDataForm.Focus();
            }
        }