I want to do something like this.
public partial class Form1 : Form{
// bla bla.....
}
public enum FormMode {
Insert,
Update,
Delete,
View,
Print
}
private FormMode frmMode = FormMode.Insert;
public FormMode MyFormMode
{
get { return this.frmMode; }
set { this.frmMode = value; }
}
And use it's like this.
fmDetails.MyFormMode= FormMode.Insert | FormMode.Delete | FormMode.Update;
I want to do like this.Already in .net have this type of thing.But I don't know what they use, if it's struct
,enum
or any other type
.