Beispiel #1
0
        /// <summary>
        /// Main関数
        /// </summary>
        public MainForm()
        {
            //システム基礎的な関数
            InitializeComponent();
            //紙を用意する
            graphObj = PreparePaper();
            //読み上げる判断
            if (Properties.Settings.Default.NEEDINPUTREADER)
            {
                tobeRead.SpeakAsync("入力した内容を読み上げます。");
            }
            //キーボードイベント関数
            this.textBox_Input.KeyDown += new KeyEventHandler(EnterKeyPress);
            this.tabControl_code.SelectedIndexChanged += new EventHandler(tabControl_code_SelectedIndexChanged);
            this.KeyDown += new KeyEventHandler(KeyMovement);

            #region About the Tablet Event
            //ペンタブレット移動量に関するイベント関数
            MouseMove += new MouseEventHandler(this.TabletMouseMove);
            #endregion

            #region DV2 Key Event
            //点群データサイズ自動化処理
            allDotData     = new int[picBox.Width, picBox.Height];
            arroundDotData = new int[picBox.Width, picBox.Height];

            CheckForIllegalCrossThreadCalls = false;
            Point_Offset.X = picBox.Width / 2;
            Point_Offset.Y = picBox.Height / 2;

            Dv2ConnectFunction(this);
            Dv2Instance.DvCtl.KeyUp += new DV.KeyEventHandler(this.Dv2KeyEventHandle);
            //DV-2繋がる判断
            if (DV2.Net_Graphics_Application.Properties.Settings.Default.Dv2_CONNECTED)
            {
                Dv2Instance.Connect();
            }
            #endregion
        }