コード例 #1
0
ファイル: Burn.cs プロジェクト: xuanximoming/PIC
        private void Burn_Load(object sender, EventArgs e)
        {
            switch (ILL.GetConfig.DALAndModel)
            {
            case "SIS":
                b_worklist = new BWorkList();
                break;

            case "PACS":
                b_study = new BStudy();
                Bind_PATIENT_SEX();
                break;
            }

            this.btn_FunName.Text = this.Text.ToString();
            this.dgv_study.AutoGenerateColumns = false;
            dgv_WorkList.AutoGenerateColumns   = false;

            cmb_PATIENT_SEX.Items.Add("");
            cmb_PATIENT_SEX.Items.Add("男");
            cmb_PATIENT_SEX.Items.Add("女");

            dtps_STUDY_DATE_TIME.Value = DateTime.Now.AddMonths(-1);
            dtpe_STUDY_DATE_TIME.Value = DateTime.Now;

            int itDay = int.Parse(opini.IniReadValue("NeroBurn", "DefaultDay"));

            dtp_StudyS.Value = DateTime.Now.AddDays(-itDay);
            dtp_Studye.Value = DateTime.Now;

            int VKnameLength = int.Parse(opini.IniReadValue("NeroBurn", "VKdiqit"));

            l_discVolumeKey.Text = opini.IniReadValue("NeroBurn", "VKhead").PadRight(VKnameLength, '0');

            m_Nero   = new NeroClass();
            m_drives = ((INero5)m_Nero).GetDrives(NERO_MEDIA_TYPE.NERO_MEDIA_DVD_M);
            for (int i = 0; i < m_drives.Count; i++)
            {
                NeroDrive drive        = (NeroDrive)m_drives.Item(i);
                string    sDriveLetter = (drive.DriveLetter == "") ? "?" : drive.DriveLetter.ToUpper();
                cmb_BurnDevices.Items.Add(sDriveLetter + ": " + drive.DeviceName);
                cmb_BurnDevices.SelectedIndex = 0;
            }

            GetDiscInfo();
            m_evDriveStatusChanged        = new _INeroDriveEvents_OnDriveStatusChangedEventHandler(m_drive_OnDriveStatusChanged);
            m_drive.OnDriveStatusChanged += m_evDriveStatusChanged;
            m_drive.EnableStatusCallback(NERO_DRIVESTATUS_TYPE.NDT_DISC_CHANGE, true);
            m_drive.EnableStatusCallback(NERO_DRIVESTATUS_TYPE.NDT_IN_USE_CHANGE, true);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: tech-bear/imgburn
        // Ctor
        public MainForm()
        {
            InitializeComponent();
            _columnStatus = new ListViewColumnStatus();
            isLoggedIn    = false;

            _compResMan = new ComponentResourceManager(this.GetType());

            // Instantiation of all Resources
            _nero = new NeroClass();
            _nero.OnFileSelImage += new _INeroEvents_OnFileSelImageEventHandler(_nero_OnFileSelImage);

            // Get all available drives
            _drives = _nero.GetDrives(NERO_MEDIA_TYPE.NERO_MEDIA_CD);

            // instantiate logging list
            _log = new List <string>();

            // Used resources
            _resource   = new ResourceManager(typeof(BlueFlameResource));
            _sqlStrings = new ResourceManager(typeof(SqlStrings));
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: rahulsinghch26/imgburn
        // Ctor
        public MainForm()
        {
            InitializeComponent();
            _columnStatus = new ListViewColumnStatus();
            isLoggedIn = false;

            _compResMan = new ComponentResourceManager(this.GetType());

            // Instantiation of all Resources
            _nero = new NeroClass();
            _nero.OnFileSelImage +=new _INeroEvents_OnFileSelImageEventHandler(_nero_OnFileSelImage);

            // Get all available drives
            _drives = _nero.GetDrives(NERO_MEDIA_TYPE.NERO_MEDIA_CD);

            // instantiate logging list
            _log = new List<string>();

            // Used resources
            _resource = new ResourceManager(typeof(BlueFlameResource));
            _sqlStrings = new ResourceManager(typeof(SqlStrings));
        }