/// <summary> /// Initialize Wintab when the test form is loaded. /// If you do it at form construction time, you could exception when closing. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ExtensionTestForm_Load(object sender, EventArgs e) { grfxEKP = EKPanel.CreateGraphics(); grfxTCP = TCPanel.CreateGraphics(); if (!InitWintab()) { String errmsg = "Oops - couldn't initialize Wintab.\n" + "Make sure the tablet driver is running and a tablet is plugged in.\n\n" + "Bailing out..."; MessageBox.Show(errmsg); Close(); } }
public WindowVM() { leftPanel = new TCPanel(); rightPanel = new TCPanel(); focusedPanel = null; }