public MainForm() { InitializeComponent(); mBtAdt = new BluetoothAdapter(); mPenCommV1 = new PenCommV1(this); mPenCommV2 = new PenCommV2(this); mWidth = pictureBox1.Width; mHeight = pictureBox1.Height; mBitmap = new Bitmap(pictureBox1.Width, pictureBox1.Height); mPwdForm = new PasswordInputForm(OnInputPassword); }
public MainForm() { InitializeComponent(); mBtAdt = new BluetoothAdapter(); // Create MetadataManager mMetadataManager = new GenericMetadataManager(new NProjParser()); mPenCommV1 = new PenCommV1(this); mPenCommV2 = new PenCommV2(this); // Bind MetadataManager to PenComm. mPenCommV1.MetadataManager = mMetadataManager; mPenCommV2.MetadataManager = mMetadataManager; mWidth = pictureBox1.Width; mHeight = pictureBox1.Height; mBitmap = new Bitmap(pictureBox1.Width, pictureBox1.Height); mPwdForm = new PasswordInputForm(OnInputPassword); }