예제 #1
0
        private void LOADINI()
        {
            int Rint;

            Rint     = Convert.ToInt32(INIC.Ini_Read("bg", "count", INIPath));
            filename = new string[Rint];
            for (int i = 0; i < Rint; i++)
            {
                listBox1.Items.Add(INIC.Ini_Read("bg", "bg" + (i + 1) + "_name", INIPath));
                filename[i] = AppPath + "\\bg\\" + INIC.Ini_Read("bg", "bg" + (i + 1) + "_file", INIPath);
            }
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            notifyIcon1.Visible = true;
            Icon ico = System.Drawing.Icon.ExtractAssociatedIcon(AppPath + "\\icon.ico");

            notifyIcon1.Icon = ico;
            this.Icon        = ico;

            this.Text   = INIC.Ini_Read("set", "title", INIPath);
            label1.Text = INIC.Ini_Read("set", "text", INIPath);
            label2.Text = "壁纸作者:" + INIC.Ini_Read("set", "author", INIPath);
            LOADINI();
        }