Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            _graphApiService = new GraphApiService();
            _oneNoteService  = new OneNoteService(_graphApiService);
            button1.Show();
            button2.Hide();
            button4.Enabled  = false;
            textBox2.Enabled = false;

            _hk = new Hotkey
            {
                KeyCode = Keys.J,
                Control = true,
                Alt     = true
            };
            _hk.Pressed += _hk_Pressed;

            if (_hk.GetCanRegister(this))
            {
                _hk.Register(this);
            }
        }
Exemplo n.º 2
0
 public OneNoteService(GraphApiService graphApiService)
 {
     _graphApiService = graphApiService;
 }