类2 继承 类1 
类1种定义好多属性,   窗体2中的文本框获取的值,都保存到类1的属性里面代码:
public class edbData : System.Windows.Forms.Form
{
        private static string key1;
        public static string Key1
        {
            set
            {
                key1 = value;
            }
            get
            {
                return key1 == null ? "" : key1;
            }
        }
}
public class PosCommonData :edbData
{
   。。
}
wfp_edbposwork : PosCommonData
{
   把界面的值赋值给Key1
}
请问大家有这样写代码的啊?   这样写有什么好处啊?