コード例 #1
0
 public frmAssetsBook(frmAdd frmAdd)
 {
     InitializeComponent();
     this.f1             = frmAdd;
     dgvAsset.DataSource = _AssetsC.ConsultAssetsBookAll();
     dgvAssetInitial();
     CountAssets();
     Cursor.Current = Cursors.Default;
 }
コード例 #2
0
        public frmAddPhoto(string nameP, frmAdd FormADD)
        {
            InitializeComponent();

            this.f1   = FormADD;
            namePhoto = nameP;
            GetInfo();
            myCamera.OnFrameArrived += MyCamera_OnFrameArrived;

            try
            {
                cmbCameraDevices.SelectedIndex = 0;
            }
            catch (Exception)
            {
                cmbCameraDevices.SelectedIndex = 1;
            }
        }