public frmIncognito(applicationsList list) { InitializeComponent(); this.Icon = Properties.Resources.Chrome_Incognito; blockerList = list; applicationsListBindingSource.DataSource = blockerList; /*listApp.DataSource = applicationsListBindingSource; listApp.DisplayMember = "Status";*/ }
public frmIncognito() { InitializeComponent(); blockerList = new applicationsList(); /*listApp.DataSource = blockerList; listApp.DisplayMember = "Status"; listApp.ValueMember = "AppName"; listApp.Refresh(); listApp.Update();*/ }
static void Main() { applicationsList blockerList = new applicationsList(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); /*blockerList.Add(new fileBlocker("Explorer", "1b4dd67f29cb1962")); blockerList.Add(new fileBlocker("Media player classic", "d7a07b8500c35d28")); blockerList.Add(new fileBlocker("Notepad", "9b9cdc69c1c24e2b"));*/ Application.Run(new frmIncognito(blockerList)); }