예제 #1
0
        protected override void WndProc(ref Message m)
        {
            base.WndProc(ref m);

            if (m.Msg == 0x0312)
            {
                //Add texts of every textboxed to a clean list.
                textBoxTexts.Clear();
                textBoxTexts.Add(richTextBox1.Text);
                textBoxTexts.Add(richTextBox2.Text);
                textBoxTexts.Add(richTextBox3.Text);
                textBoxTexts.Add(richTextBox4.Text);
                textBoxTexts.Add(richTextBox5.Text);
                textBoxTexts.Add(richTextBox6.Text);
                textBoxTexts.Add(richTextBox7.Text);
                textBoxTexts.Add(richTextBox8.Text);
                textBoxTexts.Add(richTextBox9.Text);
                textBoxTexts.Add(richTextBox10.Text);

                //Toggle timer.
                if (TypeTimer.Enabled)
                {
                    TypeTimer.Stop();
                }
                else if (TypeTimer.Enabled == false)
                {
                    TypeTimer.Start();
                }
            }
        }
예제 #2
0
        protected override void OnResume()
        {
            base.OnResume();

            if (mTimer != null)
            {
                mTimer.Cancel();
            }

            mTimer = new TypeTimer(60 * 60 * 24 * 7 * 1000L, 1000, mSendBirdMessagingAdapter);
            mTimer.Start();
        }
예제 #3
0
 private void All_TextChanged(object sender, EventArgs e)
 {
     TypeTimer.Stop();
 }
예제 #4
0
 private void TextBox_Gotfocus(object sender, EventArgs e)
 {
     TypeTimer.Stop();
 }