المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Quick Code Question



C# Programming
11-11-2009, 06:12 PM
private void btn_Next_Click(object sender, EventArgs e)
{
Plugin p = new Plugin();

nextImage = nextImage++;
string _Ext = p.Ext;

ass = Assembly.GetExecutingAssembly();
imageStream = ass.GetManifestResourceStream("NameSpace.Images." + nextImage + _Ext);
pictureBox1.Image = new Bitmap(imageStream);
this.btn_Previous.Enabled = true;
if (nextImage == p.End + 1)
{
this.btn_Next.Enabled = false;
}
}

I'm wondering how to write this to make it work, and make it clean, any suggestions?