示例#1
0
 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);
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
        public frmYocto()
        {
            InitializeComponent();
            Strings.Translate(this);
            GUIUtilities.ScaleDPI(this);

            if (CmdYocto.RegisterYocto(false))
            {
                FillList();
            }
            lstRelays_SelectedIndexChanged(this, null);
        }
示例#5
0
        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;
            }
        }
示例#6
0
 public void frmReportProblem_Load(object sender, EventArgs e)
 {
     Strings.Translate(this);
     GUIUtilities.ScaleDPI(this);
 }
示例#7
0
 public void frmPaletteDetails_Load(object sender, EventArgs e)
 {
     GUIUtilities.ScaleDPI(this);
 }
示例#8
0
 public void frmErrorReport_Load(object sender, EventArgs e)
 {
     Strings.Translate(this);
     GUIUtilities.ScaleDPI(this);
     btnQuit.Visible = NumberErrors >= 4;
 }
示例#9
0
 public void frmNewPageBackground_Load(object sender, EventArgs e)
 {
     Strings.Translate(this);
     GUIUtilities.ScaleDPI(this);
 }
示例#10
0
 public void frmActivityRename_Load(object sender, EventArgs e)
 {
     GUIUtilities.ScaleDPI(this);
 }
示例#11
0
 public void frmLineWidth_Load(object sender, EventArgs e)
 {
     GUIUtilities.ScaleDPI(this);
     Strings.Translate(this);
 }
示例#12
0
        // This always uses a separate transaction from the outer screen

        public void frmUserButtonStyle_Load(object sender, EventArgs e)
        {
            GUIUtilities.ScaleDPI(this);
            Strings.Translate(this);
        }
示例#13
0
 public void frmPageSize_Load(object sender, EventArgs e)
 {
     Strings.Translate(this);
     GUIUtilities.ScaleDPI(this);
 }
示例#14
0
 public void frmButton_Load(object sender, EventArgs e)
 {
     GUIUtilities.ScaleDPI(this);
 }