public void frmCreateActivity_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); // no need to scale since the entire form is auto size m_AppliedUser = Globals.Root.GenerateAppliedConfig(Users.User, Globals.Root.CurrentDocument); m_AppliedTeacher = Globals.Root.GenerateAppliedConfig(Users.Editor, Globals.Root.CurrentDocument); }
public void frmMoreColours_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); btnOK.Visible = pnlColours.DisplayAdvanced; btnWindows.Visible = Globals.Root.User == Users.Editor; }
public void frmUpdate_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); txtCurrent.Text = SoftwareVersion.VersionString; Folder = Globals.Root.SharedFolder + System.IO.Path.DirectorySeparatorChar + "Update"; if (!System.IO.Directory.Exists(Folder)) { System.IO.Directory.CreateDirectory(Folder); } Folder += System.IO.Path.DirectorySeparatorChar; }
public frmYocto() { InitializeComponent(); Strings.Translate(this); GUIUtilities.ScaleDPI(this); if (CmdYocto.RegisterYocto(false)) { FillList(); } lstRelays_SelectedIndexChanged(this, null); }
public void frmFont_Load(object sender, EventArgs e) { // this assumes the form will only be used once before being disposed m_Filling = true; try { if (SelectedFont == null) { SelectedFont = new Font(FontFamily.GenericSansSerif, 10); } chkBold.Checked = (SelectedFont.Style & FontStyle.Bold) > 0; chkItalic.Checked = (SelectedFont.Style & FontStyle.Italic) > 0; chkStrikeout.Checked = (SelectedFont.Style & FontStyle.Strikeout) > 0; chkUnderline.Checked = (SelectedFont.Style & FontStyle.Underline) > 0; // size box... first fill in the values float size = 6f; while (size < MAXIMUMFONTSIZE) { cmbSize.Items.Add(size.ToString("0")); size = AdjustSize(size, +1); } cmbSize.Items.Add(size.ToString("0")); // add the final one, MAXIMUMFONTSIZE cmbSize.Text = SelectedFont.Size.ToString("0.#"); Strings.Translate(this); GUIUtilities.ScaleDPI(this); int selected = IndexOfFontFace(SelectedFont.Name); for (int index = 0; index <= g_Names.Count - 1; index++) { lstFont.Items.Add(g_Names[index]); } if (selected >= 0) { lstFont.SelectedIndex = selected; } } finally { m_Filling = false; } }
public void frmReportProblem_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); }
public void frmPaletteDetails_Load(object sender, EventArgs e) { GUIUtilities.ScaleDPI(this); }
public void frmErrorReport_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); btnQuit.Visible = NumberErrors >= 4; }
public void frmNewPageBackground_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); }
public void frmActivityRename_Load(object sender, EventArgs e) { GUIUtilities.ScaleDPI(this); }
public void frmLineWidth_Load(object sender, EventArgs e) { GUIUtilities.ScaleDPI(this); Strings.Translate(this); }
// This always uses a separate transaction from the outer screen public void frmUserButtonStyle_Load(object sender, EventArgs e) { GUIUtilities.ScaleDPI(this); Strings.Translate(this); }
public void frmPageSize_Load(object sender, EventArgs e) { Strings.Translate(this); GUIUtilities.ScaleDPI(this); }
public void frmButton_Load(object sender, EventArgs e) { GUIUtilities.ScaleDPI(this); }