ObjectEditor.frmMain.txtInvPic_TextChanged C# (CSharp) Method

txtInvPic_TextChanged() private method

private txtInvPic_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void txtInvPic_TextChanged(object sender, EventArgs e)
        {
            if (Data.Graphics.ContainsKey(txtInvPic.Text.ToLower()))
            {
                Bitmap bmp = Data.Graphics[txtInvPic.Text.ToLower()];
                pctInventory.Image = bmp;
            }
            else
                pctInventory.Image = null;
        }