Esempio n. 1
0
 private void Typewriter_KeyPress(object sender, KeyPressEventArgs e)
 {
     CurrentPressedKey += e.KeyChar;
     if (CurrentPressedKey.Length > 5)
     {
         CurrentPressedKey = CurrentPressedKey.Substring(1, 5);
     }
 }
Esempio n. 2
0
 private void Form2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.Shift)
     {
         myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Shift;
     }
     else if (e.Control)
     {
         myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Ctrl;
     }
 }
Esempio n. 3
0
 private void Form2_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
 }
Esempio n. 4
0
        public Form2()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myView = new shell();
            myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
            myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Nothing;
            myDegenerateModeIsOn=true;
            IsRectVisible=false;
        }
Esempio n. 5
0
 private void Form2_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Nothing;
 }
Esempio n. 6
0
 private void Form2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.Shift)
         myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Shift;
     else if (e.Control)
         myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Ctrl;
 }
Esempio n. 7
0
        public Form2()
        {
            //
              // Required for Windows Form Designer support
              //
              InitializeComponent();

              //
              // Create OCCT proxy object
              //
              myOCCTProxy = new OCCTProxy();
              myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
              myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
              myDegenerateModeIsOn = true;
              IsRectVisible = false;
        }