Ejemplo n.º 1
0
        //void InitCustomFont()
        //{
        //    //Create your private font collection object.
        //    PrivateFontCollection pfc = new PrivateFontCollection();

        //    //Select your font from the resources.
        //    //My font here is "Digireu.ttf"
        //    int fontLength = Properties.Resources.BebasNeue_Regular.Length;

        //    // create a buffer to read in to
        //    byte[] fontdata = Properties.Resources.BebasNeue_Regular;

        //    // create an unsafe memory block for the font data
        //    System.IntPtr data = Marshal.AllocCoTaskMem(fontLength);

        //    // copy the bytes to the unsafe memory block
        //    Marshal.Copy(fontdata, 0, data, fontLength);

        //    // pass the font to the font collection
        //    pfc.AddMemoryFont(data, fontLength);

        //    label1.Font = new Font(pfc.Families[0], label1.Font.Size);
        //    QueryBtn.Font = new Font(pfc.Families[0], QueryBtn.Font.Size);
        //    complaintsBtn.Font = new Font(pfc.Families[0], complaintsBtn.Font.Size);
        //    IssueBtn.Font = new Font(pfc.Families[0], IssueBtn.Font.Size);
        //}
        private void QueryBtn_Click(object sender, EventArgs e)
        {
            SetSelectionPanel(QueryBtn);
            SwitchPage(QueryPage);
            QueryPage.BringToFront();
        }