static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string abc = @"Software\pos\PosPrivate"; Secure scr = new Secure(); bool logic = scr.Algorithm("DA412-628DS-S1VD2-SITCH", abc); if (logic == true) Application.Run(new Login()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string path = @"Software\WWSoft\Protection"; Secure scr = new Secure(); bool logic = scr.Algorithm("admin123#", path); if (logic == true) { Application.Run(new frm_mdi_parent()); } }