示例#1
0
        private void ImportSelection_Load(object sender, EventArgs e)
        {
            Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);

            ComboImportFrom.SelectedIndex = 0;
            ButtonOK.Select();
        }
示例#2
0
 void OnScanUrlReuslt(string url)
 {
     if (!string.IsNullOrEmpty(url))
     {
         //if (Uri.IsWellFormedUriString(url, UriKind.Absolute))
         {
             ButtonOK.GetComponent <Button>().interactable = true;
             UrlText.GetComponent <Text>().text            = url;
             gameObject.GetComponent <AudioSource>().Play();
             MessageText.GetComponent <Text>().text = "Air Tap Okay Button to play";
             LastUrl = url;
         }
     }
 }
示例#3
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonOK != null)
            {
                ButtonOK.Dispose();
                ButtonOK = null;
            }

            if (TextDictionaryFolderPath != null)
            {
                TextDictionaryFolderPath.Dispose();
                TextDictionaryFolderPath = null;
            }

            if (TextAnkiMediaCollectionFolderPath != null)
            {
                TextAnkiMediaCollectionFolderPath.Dispose();
                TextAnkiMediaCollectionFolderPath = null;
            }
        }
示例#4
0
 private void ButtonMore_Click(object sender, EventArgs e)
 {
     if (ButtonMore.Text == ">>")
     {
         this.Height = this.Height + 300;
         RichTextBoxMoreInfo.Location = new Point(LabelMoreInfo.Left, LabelMoreInfo.Top + LabelMoreInfo.Height + Spacing);
         RichTextBoxMoreInfo.Height   = this.ClientSize.Height - RichTextBoxMoreInfo.Top - 45;
         RichTextBoxMoreInfo.Width    = this.ClientSize.Width - 2 * Spacing;
         RichTextBoxMoreInfo.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
         RichTextBoxMoreInfo.Visible  = true;
         ButtonOK.Focus();
         ButtonMore.Text = "<<";
     }
     else
     {
         this.SuspendLayout();
         ButtonMore.Text             = ">>";
         this.Height                 = ButtonMore.Top + ButtonMore.Height + Spacing + 45;
         RichTextBoxMoreInfo.Visible = false;
         RichTextBoxMoreInfo.Anchor  = AnchorStyles.None;
         this.ResumeLayout();
     }
 }
示例#5
0
 private void WarningBox_Load(object sender, EventArgs e)
 {
     ButtonOK.Focus();
 }
示例#6
0
 private void Init()
 {
     this.btOK   = new ButtonOK();
     this.btQUIT = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.result = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // btOK
     //
     this.btOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btOK.Enabled      = false;
     this.btOK.Location     = new System.Drawing.Point(336, 136);
     this.btOK.Name         = "btOK";
     this.btOK.TabIndex     = 0;
     this.btOK.Text         = "OK";
     //
     // btQUIT
     //
     this.btQUIT.DialogResult = System.Windows.Forms.DialogResult.Abort;
     this.btQUIT.Location     = new System.Drawing.Point(224, 136);
     this.btQUIT.Name         = "btQUIT";
     this.btQUIT.TabIndex     = 1;
     this.btQUIT.Text         = "Quit";
     this.btQUIT.Click       += new System.EventHandler(this.btQUIT_Click);
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(280, 48);
     this.label1.TabIndex = 2;
     this.label1.Text     = string.Format("Verifying your copy of {0}:", Application.ProductName);
     //
     // result
     //
     this.result.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.result.Location = new System.Drawing.Point(8, 64);
     this.result.Name     = "result";
     this.result.Size     = new System.Drawing.Size(424, 48);
     this.result.TabIndex = 3;
     this.result.Text     = "Please wait...";
     //
     // StartupScreen
     //
     this.AcceptButton      = this.btOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btQUIT;
     this.ClientSize        = new System.Drawing.Size(426, 192);
     this.ControlBox        = false;
     this.Controls.Add(this.result);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btQUIT);
     this.Controls.Add(this.btOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "StartupScreen";
     this.Text            = "StartupScreen";
     this.ResumeLayout(false);
 }