Beispiel #1
0
        void 账户ToolStripMenuItemClick(object sender, EventArgs e)
        {
            string Current;
            Current = Directory.GetCurrentDirectory();//获取当前根目录

            iniFile ini=new iniFile(Current+"/config.ini");
            ArrayList list=ini.ReadSections();
            if(list.Count==0)
            {
                frmAccount firstAccount=new frmAccount();
                firstAccount.firstAccount="yes";
                firstAccount.Show();
            }
            else
            {
                frmAccount firstAccount=new frmAccount();
                firstAccount.firstAccount="no";
                firstAccount.Show();
            }
            //            string stemp=ini.ReadValue("Account","AccountName");

            //            if(string.IsNullOrEmpty(stemp))
            //            {
            //            	frmAccount firstAccount=new frmAccount();
            //            	firstAccount.firstAccount="yes";
            //            	firstAccount.Show();
            ////			addAccount.panel1.Visible=false;
            //
            ////            	frmAccount firstAccount=new frmAccount();
            ////            	firstAccount.Show();
            ////            	firstAccount.
            ////            		firstAccount.paa
            ////            					addAccount.Show();
            ////			addAccount.panel1.Visible=false;
            ////			addAccount.label6.Visible=true;
            ////			addAccount.txtAccountName.Visible=true;
            //            }
            //            else
            //            {
            //            	frmAccount firstAccount=new frmAccount();
            ////            	firstAccount.firstAccount="yes";
            //            	firstAccount.Show();
            //            }
        }
Beispiel #2
0
 void BtnAddAccountClick(object sender, EventArgs e)
 {
     //			WriteAccount();
     //			frmAccount addAccount=new frmAccount();
     //			addAccount.Show();
     //			addAccount.panel1.Visible=false;
     //			addAccount.label6.Visible=true;
     //			addAccount.txtAccountName.Visible=true;
     frmAccount firstAccount=new frmAccount();
     firstAccount.firstAccount="yes";
     firstAccount.Show();
 }