private void btn_AddMat_Click(object sender, EventArgs e) { frmSelMaterial frmX = new frmSelMaterial(); frmX.AppInformation = AppInformation; frmX.UserInformation = UserInformation; frmX.DoSelMatEvent = doSelMaterial; frmX.ShowDialog(); frmX.Dispose(); }
private void btn_AddMat_Click(object sender, EventArgs e) { frmSelMaterial material = new frmSelMaterial { AppInformation = base.AppInformation, UserInformation = base.UserInformation, DoSelMatEvent = new DoSelMaterialEvent(this.doSelMaterial) }; material.ShowDialog(); material.Dispose(); }