예제 #1
0
        //}

        void frm_OnCompleted(object sender, EventArgs e)
        {
            try
            {
                frmTextType.Close();
                frmTextType         = null;
                this.rbNone.Checked = true;
            }
            catch { }
        }
예제 #2
0
        private void SendTextType()
        {
            IsTyping = false;
            if (frmTextType != null)
            {
                frmTextType.Close();
                frmTextType = null;
            }
            frmTextType = new frmText();
            frmTextType.IsEnableCompletedReport = true;
            frmTextType.Width = Global.frmOption.ShowDisplay.Bounds.Width;
            frmTextType.Left  = Global.frmOption.ShowDisplay.Bounds.Left;

            frmTextType.Top = -400;
            frmTextType.Show();
            frmTextType.Refresh();

            frmTextType.TextFont      = this.fontDialogText.Font;
            frmTextType.TextColor     = this.colorDialogText.Color;
            frmTextType.BackColor     = this.colorDialogBack.Color;
            frmTextType.IsTransparent = chbIsTransparent.Checked;

            frmTextType.AddItem(tbTextType.Text, 0);

            frmTextType.Refresh();


            tbTextType.Enabled       = false;
            frmTextType.OnCompleted += new EventHandler(frm_OnCompleted);

            if (this.TextLocation == Locations.Down)
            {
                frmTextType.Top = Global.frmOption.ControlDisplay.Bounds.Height - frmTextType.Height;
            }
            else
            {
                frmTextType.Top = 0;
            }

            frmTextType.IsMotion = true;
            btn.Focus();
        }