コード例 #1
0
ファイル: DateControl.cs プロジェクト: alish459/PersianShop
 private void Day_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter && Day.Focused)
     {
         Month.Focus();
         Month.Focus();
         Month.Select(0, 3);
     }
     else
     {
         CheckKeyUpDown(e, Day, 31);
     }
 }
コード例 #2
0
ファイル: DateControl.cs プロジェクト: alish459/PersianShop
 void Month_TextChanged(object sender, EventArgs e)
 {
     if (Convert.ToBoolean(Tag))
     {
         if (Month.Text.Length == 2 && !isUpDowningKey)
         {
             Year.Focus();
         }
     }
     else
     {
         Tag = true;
     }
 }
コード例 #3
0
ファイル: DateControl.cs プロジェクト: alish459/PersianShop
 void Atiran2DateControl_Enter(object sender, EventArgs e)
 {
     if (_dateCriterionFromServer)
     {
         if (NextControl != null && NextControl.Visible && NextControl.Enabled)
         {
             NextControl.Focus();
         }
         else if (NextControl != null && (!NextControl.Visible | !NextControl.Enabled))
         {
             SendKeys.Send("{TAB}");
         }
         this.Enabled = false;
     }
     else
     {
         Day.Focus();
     }
 }
コード例 #4
0
ファイル: TimeControl.cs プロジェクト: alish459/PersianShop
 private void Txthourstart_TextChanged(object sender, EventArgs e)
 {
     SetRegularExpressionInt((TextBox)sender);
     if (int.Parse(this.txthourstart.Text) > 24)
     {
         txthourstart.Text = "24";
     }
     if (txthourstart.Text.Length == 2)
     {
         txtminutestart.Focus();
     }
 }
コード例 #5
0
ファイル: TimeControl.cs プロジェクト: alish459/PersianShop
 private void Txtstarttime_Enter(object sender, EventArgs e)
 {
     txthourstart.Focus();
 }