Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void cmbX_Graphics_Width_LostFocus(object sender, EventArgs e)
- {
- int i = 0, width = 0;
- TLQAShared._debug("Lost Focus Fired");
- for (i = 0; i < cmbX_Graphics_Width.Items.Count; i++)
- {
- if (cmbX_Graphics_Width.Text.Equals(cmbX_Graphics_Width.Items[i].ToString()))
- {
- Properties.X.Default.Graphics_Width = int.Parse(cmbX_Graphics_Width.Items[i].ToString());
- TLQAShared._debug("FOUND!");
- return;
- }
- TLQAShared._debug("FOR: " + i.ToString() + "/" + (cmbX_Graphics_Width.Items.Count - 1).ToString() + ": " + cmbX_Graphics_Width.SelectedText + ":" + cmbX_Graphics_Width.Items[i].ToString());
- }
- TLQAShared._debug("Not true: '" + cmbX_Graphics_Width.Text + "'");
- if (int.TryParse(cmbX_Graphics_Width.Text.ToString(), out width))
- {
- TLQAShared._debug("TryParse: true");
- Properties.X.Default.Graphics_Width = width;
- }
- else
- {
- tt.SetToolTip(cmbX_Graphics_Width, "You must supply a valid integer");
- this.ActiveControl = cmbX_Graphics_Width;
- TLQAShared._debug("TryParse invalid.");
- }
- }
- TLQAShared._debug("Not true: '" + cmbX_Graphics_Width.Text + "'");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement