public UserRollplayTables(string name, string iDFieldName, string passFieldName, string userFieldName, UserRollplays rollplay, LoginMatchOptions matchOption) { Name = name; IDFieldName = iDFieldName; PassFieldName = passFieldName; UserFieldName = userFieldName; Rollplay = rollplay; MatchOption = matchOption; }
public LoginData(int iD, UserRollplays rollplay, LoginMatchOptions matchOption) { ID = iD; this.rollplay = rollplay; this.matchOption = matchOption; }
internal static void Execution(UserRollplays rollplay, LoginMatchOptions matchOption, int ID) { switch (rollplay) { case UserRollplays.Chauffeurs: switch (matchOption) { case LoginMatchOptions.OpenForm: //Implement Code break; case LoginMatchOptions.OpenWindow: //Implement Code break; case LoginMatchOptions.ShowConsole: //Implement Code break; case LoginMatchOptions.ShowMessageBox: //Implement Code break; case LoginMatchOptions.ShowVSDebugger: Debug.WriteLine("There is a match found with ID: ", ID); break; } break; case UserRollplays.Customer: switch (matchOption) { case LoginMatchOptions.OpenForm: //Implement Code break; case LoginMatchOptions.OpenWindow: Windows.Customer.MainWindow window = new Windows.Customer.MainWindow(); window.Show(); break; case LoginMatchOptions.ShowConsole: //Implement Code break; case LoginMatchOptions.ShowMessageBox: //Implement Code break; case LoginMatchOptions.ShowVSDebugger: Debug.WriteLine("There is a match found with ID: ", ID); break; } break; case UserRollplays.Manager: switch (matchOption) { case LoginMatchOptions.OpenForm: //Implement Code break; case LoginMatchOptions.OpenWindow: //Implement Code break; case LoginMatchOptions.ShowConsole: //Implement Code break; case LoginMatchOptions.ShowMessageBox: //Implement Code break; case LoginMatchOptions.ShowVSDebugger: Debug.WriteLine("There is a match found with ID: ", ID); break; } break; case UserRollplays.Planner: switch (matchOption) { case LoginMatchOptions.OpenForm: //Implement Code break; case LoginMatchOptions.OpenWindow: //Implement Code break; case LoginMatchOptions.ShowConsole: //Implement Code break; case LoginMatchOptions.ShowMessageBox: //Implement Code break; case LoginMatchOptions.ShowVSDebugger: Debug.WriteLine("There is a match found with ID: ", ID); break; } break; default: break; } }