// Use this for initialization void Start() { currentSelect = this.GetComponent <selection>(); segment = btSize; posMoveBt = new Rect(leftMargin, topMargin, btSize, btSize); posSummonBt = new Rect(leftMargin, topMargin + segment, btSize, btSize); posAttackBt = new Rect(leftMargin, topMargin + segment * 2, btSize, btSize); posSkillBt = new Rect(leftMargin, topMargin + segment * 3, btSize, btSize); posDefenseBt = new Rect(leftMargin, topMargin + segment * 4, btSize, btSize); posEndTurnBt = new Rect(leftMargin, topMargin + segment * 5, btSize, btSize); MainGuiShow = false; mousePos = new Vector2(); mainStyle.font = MainFont; mainStyle.normal.textColor = Color.white; mainStyle.fontSize = 20; subStyle = new GUIStyle(mainStyle); subStyle.fontSize = 16; subStyle.normal.textColor = new Color(.8f, .8f, .8f, 1.0f); subStyle.onHover.textColor = Color.white; players = this.GetComponent <RoundCounter>(); numIcon = this.GetComponent <NumIconVault>(); infoUI = this.GetComponent <InfoUI>(); chessUI = this.GetComponent <MainInfoUI>(); InSecondTutor = false; init = GameObject.Find("InitStage").transform.GetComponent <InitStage>(); }
public void LoadPeace() { sel = FindObjectOfType<selection>(); sel.symbol = 0; DontDestroyOnLoad(sel); Application.LoadLevel(1); }
public LoginRoles(DBConnectionControl4.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginRoles.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginRoles.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_Name.col_name = LoginRoles.Name.name; o_Name.col_type.m_Type = "nvarchar"; o_Name.col_type.bPRIMARY_KEY = false; o_Name.col_type.bFOREIGN_KEY = false; o_Name.col_type.bUNIQUE = false; o_Name.col_type.bNULL = true; Add(o_Name); o_description.col_name = LoginRoles.description.name; o_description.col_type.m_Type = "nvarchar"; o_description.col_type.bPRIMARY_KEY = false; o_description.col_type.bFOREIGN_KEY = false; o_description.col_type.bUNIQUE = false; o_description.col_type.bNULL = true; Add(o_description); }
void updatePlaying() { selection currentSel = transform.GetComponent <selection>(); if (!npcMode) { if (Network.peerType == NetworkPeerType.Client) { currentSel.Playing = currentSel.BPlaying; } else if (Network.peerType == NetworkPeerType.Server) { currentSel.Playing = currentSel.APlaying; } } else { if (roundCounter % 2 == 1) { currentSel.Playing = false; currentSel.NpcPlaying = true; currentSel.player = playerB; } else { currentSel.Playing = true; currentSel.NpcPlaying = false; currentSel.player = playerA; } } }
// Use this for initialization void Start() { mUI = transform.GetComponent <MainUI>(); sUI = transform.GetComponent <DamageSlidingUI>(); fb = transform.GetComponent <FightBack>(); chessUI = transform.GetComponent <MainInfoUI>(); cFX = transform.GetComponent <CommonFX>(); currentSel = transform.GetComponent <selection>(); }
// Use this for initialization void Start () { //rot = new Quaternion (redCandle.transform.rotation.x, redCandle.transform.rotation.y, redCandle.transform.rotation.z, 0.0); //rot = new Quaternion (0.0f, 90.0f, 90.0f, 0.0f); //GetComponent<SpriteRenderer>().sprite = WinSpritesArray[2]; //Star(); score = FindObjectOfType<Score>(); selection sel = new selection(); if (FindObjectOfType<selection>() != null) { sel = FindObjectOfType<selection>(); symbol = sel.symbol; } else { Debug.Log("Starting from main, wont go to end scene"); // VVVV this is not workign good //GameObject s = GameObject.Instantiate(Resources.Load("Objects/selection", typeof(GameObject))) as GameObject;// (GameObject)Resources.Load("Assets/Objects/selection", typeof(GameObject)); //symbol = s.GetComponent<selection>().symbol; //symbol = sel.symbol; } if (symbol == 0) { SetUpPeace(); redCandle.transform.FindChild("NewRedCandleHolderInner").GetComponent<Melt>().speed = peaceSpeed; blueCandle.transform.FindChild("NewBlueCandleHolderInner").GetComponent<Melt>().speed = peaceSpeed; Instantiate(redCandle, PeaceArray[candleNum], rot); maxCandleNum = 13; spawnedCandleNum = 1; maxCandlesToSpawn = 2; } if (symbol == 1) { SetUpHeart(); redCandle.transform.FindChild("NewRedCandleHolderInner").GetComponent<Melt>().speed = heartSpeed; blueCandle.transform.FindChild("NewBlueCandleHolderInner").GetComponent<Melt>().speed = heartSpeed; Instantiate(redCandle, HeartArray[candleNum], rot); maxCandleNum = 20; spawnedCandleNum = 1; maxCandlesToSpawn = 3; } if (symbol == 2) { SetUpHappy(); redCandle.transform.FindChild("NewRedCandleHolderInner").GetComponent<Melt>().speed = happySpeed; blueCandle.transform.FindChild("NewBlueCandleHolderInner").GetComponent<Melt>().speed = happySpeed; Instantiate(redCandle, HappyArray[candleNum], rot); maxCandleNum = 23; spawnedCandleNum = 1; maxCandlesToSpawn = 4; } }
// Use this for initialization void Start() { InMove = false; InPause = false; decisions = transform.GetComponent <Decisions>(); CurrentSel = Camera.main.GetComponent <selection>(); CurrentRC = Camera.main.GetComponent <RoundCounter>(); playerBList = new List <Transform>(); firstPhaseList = new List <Transform>(); secondPhaseList = new List <Transform>(); thirdPhaseList = new List <Transform>(); }
public void SetSelected(int selected) { switch (selected) { case 4: currentSelected = selection.arrowleft; break; case 5: currentSelected = selection.arrowright; break; } }
// Use this for initialization void Start() { roundCounter = 1; playerA = GameObject.Find("pSummonerA").transform; playerB = GameObject.Find("pSummonerB").transform; AllChesses = new List <Transform>(); PlayerAChesses = new List <Transform>(); PlayerBChesses = new List <Transform>(); PlayerATerritory = new List <Transform>(); PlayerBTerritory = new List <Transform>(); PlayerAChesses.Clear(); PlayerBChesses.Clear(); PlayerAChesses.Add(playerA); foreach (Transform gf in playerA.GetComponent <CharacterProperty>().soldiers) { Transform gfClone = Instantiate(gf, noWhere, Quaternion.identity) as Transform; gfClone.gameObject.layer = 10; PlayerAChesses.Add(gfClone); gfClone.GetComponent <CharacterProperty>().death = true; gfClone.GetComponent <CharacterProperty>().Player = playerA.GetComponent <CharacterProperty>().Player; gfClone.GetComponent <CharacterProperty>().InitPlayer = playerA.GetComponent <CharacterProperty>().Player; } PlayerBChesses.Add(playerB); foreach (Transform gf in playerB.GetComponent <CharacterProperty>().soldiers) { Transform gfClone = Instantiate(gf, noWhere, Quaternion.identity) as Transform; gfClone.gameObject.layer = 10; PlayerBChesses.Add(gfClone); gfClone.GetComponent <CharacterProperty>().death = true; gfClone.GetComponent <CharacterProperty>().Player = playerB.GetComponent <CharacterProperty>().Player; gfClone.GetComponent <CharacterProperty>().InitPlayer = playerB.GetComponent <CharacterProperty>().Player; } foreach (Transform chess in PlayerAChesses) { AllChesses.Add(chess); } foreach (Transform chess in PlayerBChesses) { AllChesses.Add(chess); } PlayerATerritory.Add(GameObject.Find("unit_start_point_A").transform); PlayerBTerritory.Add(GameObject.Find("unit_start_point_B").transform); rUI = transform.GetComponent <RoundUI>(); mUI = transform.GetComponent <MainUI>(); infoUI = transform.GetComponent <MainInfoUI>(); currentSel = transform.GetComponent <selection>(); }
public Log(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = Log.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = Log.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LogFile_id.col_name = Log.LogFile_id.name; o_LogFile_id.col_type.m_Type = "int"; o_LogFile_id.col_type.bPRIMARY_KEY = false; o_LogFile_id.col_type.bFOREIGN_KEY = true; o_LogFile_id.col_type.bUNIQUE = false; o_LogFile_id.col_type.bNULL = false; Add(o_LogFile_id); o_LogTime.col_name = Log.LogTime.name; o_LogTime.col_type.m_Type = "datetime"; o_LogTime.col_type.bPRIMARY_KEY = false; o_LogTime.col_type.bFOREIGN_KEY = false; o_LogTime.col_type.bUNIQUE = false; o_LogTime.col_type.bNULL = false; Add(o_LogTime); o_Log_Type_id.col_name = Log.Log_Type_id.name; o_Log_Type_id.col_type.m_Type = "int"; o_Log_Type_id.col_type.bPRIMARY_KEY = false; o_Log_Type_id.col_type.bFOREIGN_KEY = true; o_Log_Type_id.col_type.bUNIQUE = false; o_Log_Type_id.col_type.bNULL = false; Add(o_Log_Type_id); o_Log_Description_id.col_name = Log.Log_Description_id.name; o_Log_Description_id.col_type.m_Type = "int"; o_Log_Description_id.col_type.bPRIMARY_KEY = false; o_Log_Description_id.col_type.bFOREIGN_KEY = true; o_Log_Description_id.col_type.bUNIQUE = false; o_Log_Description_id.col_type.bNULL = false; Add(o_Log_Description_id); }
void ActivateAtk() { if (FightBackMode) { AttackCalFX atkCal = Camera.mainCamera.GetComponent <AttackCalFX>(); atkCal.fightBack = false; atkCal.CriticalHit = false; atkCal.SetAttackSequence(Chess, Sel); FightBackMode = false; } else { currentSelect = Camera.mainCamera.GetComponent <selection>(); currentSelect.AttackActivate(Chess, Sel); } }
bool selection_changed(selection s) { switch (s) { case selection.item_type: if (item_types_index != item_types_index_old) { item_types_index_old = item_types_index; return(true); } else { return(false); } default: return(false); } }
private void getWeather(int index = 0) { if (index < 0) { index = 0; } List <WeatherRow> weather = new List <WeatherRow>(); selection select = selection.now; if (CityList != null) { if (CityList.Count > 0) { City c = CityList.ElementAt(index); switch (tabControl.SelectedIndex) { case 0: select = selection.now; break; case 1: select = selection.week; break; } weather = ParsePage(c.NameTranslit, select); if (weather != null) { dataGrid_Now.ItemsSource = weather; dataGrid.ItemsSource = weather; CurentCity.Content = c.Name; } else { dataGrid_Now.ItemsSource = null; dataGrid.ItemsSource = null; CurentCity.Content = c.Name; } } } }
// Use this for initialization void Start() { roundCounter = 1; if (!SummonerLand) { playerA = GameObject.Find("pSummonerA").transform.GetChild(0).transform; } else { playerA = GameObject.Find("pSummonerA").transform; } if (!SummonerLand) { playerB = GameObject.Find("pSummonerB").transform.GetChild(0).transform; } else { playerB = GameObject.Find("pSummonerB").transform; } //AllChesses = new List<Transform>(); //PlayerAChesses = new List<Transform>(); //PlayerBChesses = new List<Transform>(); PlayerATerritory = new List <Transform>(); PlayerBTerritory = new List <Transform>(); //PlayerATerritory.Add(GameObject.Find("unit_start_point_A").transform); PlayerATerritory.Add(GameObject.Find("red_tower").transform); //PlayerBTerritory.Add(GameObject.Find("unit_start_point_B").transform); PlayerBTerritory.Add(GameObject.Find("yellow_tower").transform); rUI = transform.GetComponent <RoundUI>(); mUI = transform.GetComponent <MainUI>(); infoUI = transform.GetComponent <MainInfoUI>(); currentSel = transform.GetComponent <selection>(); CamOffest = MidObject.position - transform.position; npc = GameObject.Find("NpcPlayer").GetComponent <NpcPlayer>(); }
public Control1(int numFields, int currentNumItems) { #region "Create Instances of all the Images" background = new Image("OptionsScreen/poster_background"); field_active = new Image("OptionsScreen/field_active"); mainbuttonup = new Image("OptionsScreen/buttonup_selected"); mainbuttonmiddle = new Image("OptionsScreen/buttonmiddel_selected"); mainbuttondown = new Image("OptionsScreen/buttondown_selected"); mainbuttonup_pressed = new Image("OptionsScreen/buttonup_selected_pressed"); mainbuttondown_pressed = new Image("OptionsScreen/buttondown_selected_pressed"); buttonback = new cText("Back", "DryGood"); buttoncontinue = new cText("Continue", "DryGood"); #endregion this.numberControlFields = numFields; this.CurrentNumberControlItems = currentNumItems; currentSelectedMainControl = selection.buttonmiddle; currentSelectedItemControl = selection.arrow_left; int[] Fields = new int[numFields]; CurrentActiveField = 0; }
// Use this for initialization void Start() { InMove = false; InPause = false; decisions = transform.GetComponent<Decisions>(); CurrentSel = Camera.main.GetComponent<selection>(); CurrentRC = Camera.main.GetComponent<RoundCounter>(); playerBList = new List<Transform>(); firstPhaseList = new List<Transform>(); secondPhaseList = new List<Transform>(); thirdPhaseList = new List<Transform>(); }
public LogFile(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LogFile.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LogFile.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LogFileImportTime.col_name = LogFile.LogFileImportTime.name; o_LogFileImportTime.col_type.m_Type = "datetime"; o_LogFileImportTime.col_type.bPRIMARY_KEY = false; o_LogFileImportTime.col_type.bFOREIGN_KEY = false; o_LogFileImportTime.col_type.bUNIQUE = false; o_LogFileImportTime.col_type.bNULL = false; Add(o_LogFileImportTime); o_Log_Computer_id.col_name = LogFile.Log_Computer_id.name; o_Log_Computer_id.col_type.m_Type = "int"; o_Log_Computer_id.col_type.bPRIMARY_KEY = false; o_Log_Computer_id.col_type.bFOREIGN_KEY = true; o_Log_Computer_id.col_type.bUNIQUE = false; o_Log_Computer_id.col_type.bNULL = false; Add(o_Log_Computer_id); o_Log_UserName_id.col_name = LogFile.Log_UserName_id.name; o_Log_UserName_id.col_type.m_Type = "int"; o_Log_UserName_id.col_type.bPRIMARY_KEY = false; o_Log_UserName_id.col_type.bFOREIGN_KEY = true; o_Log_UserName_id.col_type.bUNIQUE = false; o_Log_UserName_id.col_type.bNULL = true; Add(o_Log_UserName_id); o_Log_Program_id.col_name = LogFile.Log_Program_id.name; o_Log_Program_id.col_type.m_Type = "int"; o_Log_Program_id.col_type.bPRIMARY_KEY = false; o_Log_Program_id.col_type.bFOREIGN_KEY = true; o_Log_Program_id.col_type.bUNIQUE = false; o_Log_Program_id.col_type.bNULL = false; Add(o_Log_Program_id); o_Log_PathFile_id.col_name = LogFile.Log_PathFile_id.name; o_Log_PathFile_id.col_type.m_Type = "int"; o_Log_PathFile_id.col_type.bPRIMARY_KEY = false; o_Log_PathFile_id.col_type.bFOREIGN_KEY = true; o_Log_PathFile_id.col_type.bUNIQUE = false; o_Log_PathFile_id.col_type.bNULL = false; Add(o_Log_PathFile_id); o_LogFile_Description_id.col_name = LogFile.LogFile_Description_id.name; o_LogFile_Description_id.col_type.m_Type = "int"; o_LogFile_Description_id.col_type.bPRIMARY_KEY = false; o_LogFile_Description_id.col_type.bFOREIGN_KEY = true; o_LogFile_Description_id.col_type.bUNIQUE = false; o_LogFile_Description_id.col_type.bNULL = true; Add(o_LogFile_Description_id); }
public Log_UserName(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = Log_UserName.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = Log_UserName.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_UserName.col_name = Log_UserName.UserName.name; o_UserName.col_type.m_Type = "nvarchar"; o_UserName.col_type.bPRIMARY_KEY = false; o_UserName.col_type.bFOREIGN_KEY = false; o_UserName.col_type.bUNIQUE = false; o_UserName.col_type.bNULL = false; Add(o_UserName); }
public LogFile_Attachment_VIEW(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LogFile_Attachment_VIEW.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LogFile_Attachment_VIEW.id.name; o_id.col_type.m_Type = "int"; Add(o_id); o_LogFile_id.col_name = LogFile_Attachment_VIEW.LogFile_id.name; o_LogFile_id.col_type.m_Type = "int"; Add(o_LogFile_id); o_Attachment.col_name = LogFile_Attachment_VIEW.Attachment.name; o_Attachment.col_type.m_Type = "varbinary"; Add(o_Attachment); o_Attachment_type.col_name = LogFile_Attachment_VIEW.Attachment_type.name; o_Attachment_type.col_type.m_Type = "nvarchar"; Add(o_Attachment_type); o_LogFile_Attachment_Type_id.col_name = LogFile_Attachment_VIEW.LogFile_Attachment_Type_id.name; o_LogFile_Attachment_Type_id.col_type.m_Type = "int"; Add(o_LogFile_Attachment_Type_id); }
public Login_VIEW(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = Login_VIEW.tablename_const; myUpdateObjects = UpdateObjects; o_LoginUsers_id.col_name = Login_VIEW.Users_id.name; o_LoginUsers_id.col_type.m_Type = "int"; Add(o_LoginUsers_id); o_first_name.col_name = Login_VIEW.first_name.name; o_first_name.col_type.m_Type = "nvarchar"; Add(o_first_name); o_last_name.col_name = Login_VIEW.last_name.name; o_last_name.col_type.m_Type = "nvarchar"; Add(o_last_name); o_Identity.col_name = Login_VIEW.Identity.name; o_Identity.col_type.m_Type = "nvarchar"; Add(o_Identity); o_Contact.col_name = Login_VIEW.Contact.name; o_Contact.col_type.m_Type = "nvarchar"; Add(o_Contact); o_username.col_name = Login_VIEW.username.name; o_username.col_type.m_Type = "nvarchar"; Add(o_username); o_password.col_name = Login_VIEW.password.name; o_password.col_type.m_Type = "varbinary"; Add(o_password); o_PasswordNeverExpires.col_name = Login_VIEW.PasswordNeverExpires.name; o_PasswordNeverExpires.col_type.m_Type = "bit"; Add(o_PasswordNeverExpires); o_enabled.col_name = Login_VIEW.enabled.name; o_enabled.col_type.m_Type = "bit"; Add(o_enabled); o_Maximum_password_age_in_days.col_name = Login_VIEW.Maximum_password_age_in_days.name; o_Maximum_password_age_in_days.col_type.m_Type = "int"; Add(o_Maximum_password_age_in_days); o_NotActiveAfterPasswordExpires.col_name = Login_VIEW.NotActiveAfterPasswordExpires.name; o_NotActiveAfterPasswordExpires.col_type.m_Type = "bit"; Add(o_NotActiveAfterPasswordExpires); o_Time_When_UserSetsItsOwnPassword_FirstTime.col_name = Login_VIEW.Time_When_UserSetsItsOwnPassword_FirstTime.name; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.m_Type = "datetime"; Add(o_Time_When_UserSetsItsOwnPassword_FirstTime); o_Time_When_UserSetsItsOwnPassword_LastTime.col_name = Login_VIEW.Time_When_UserSetsItsOwnPassword_LastTime.name; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.m_Type = "datetime"; Add(o_Time_When_UserSetsItsOwnPassword_LastTime); o_ChangePasswordOnFirstLogin.col_name = Login_VIEW.ChangePasswordOnFirstLogin.name; o_ChangePasswordOnFirstLogin.col_type.m_Type = "bit"; Add(o_ChangePasswordOnFirstLogin); o_Role_id.col_name = Login_VIEW.Role_id.name; o_Role_id.col_type.m_Type = "int"; Add(o_Role_id); o_Role_Name.col_name = Login_VIEW.Role_Name.name; o_Role_Name.col_type.m_Type = "nvarchar"; Add(o_Role_Name); o_Role_PrivilegesLevel.col_name = Login_VIEW.Role_PrivilegesLevel.name; o_Role_PrivilegesLevel.col_type.m_Type = "int"; Add(o_Role_PrivilegesLevel); o_Role_description.col_name = Login_VIEW.Role_description.name; o_Role_description.col_type.m_Type = "nvarchar"; Add(o_Role_description); }
public LoginUsers(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginUsers.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginUsers.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_first_name.col_name = LoginUsers.first_name.name; o_first_name.col_type.m_Type = "nvarchar"; o_first_name.col_type.bPRIMARY_KEY = false; o_first_name.col_type.bFOREIGN_KEY = false; o_first_name.col_type.bUNIQUE = false; o_first_name.col_type.bNULL = true; Add(o_first_name); o_last_name.col_name = LoginUsers.last_name.name; o_last_name.col_type.m_Type = "nvarchar"; o_last_name.col_type.bPRIMARY_KEY = false; o_last_name.col_type.bFOREIGN_KEY = false; o_last_name.col_type.bUNIQUE = false; o_last_name.col_type.bNULL = true; Add(o_last_name); o_Identity.col_name = LoginUsers.Identity.name; o_Identity.col_type.m_Type = "nvarchar"; o_Identity.col_type.bPRIMARY_KEY = false; o_Identity.col_type.bFOREIGN_KEY = false; o_Identity.col_type.bUNIQUE = false; o_Identity.col_type.bNULL = true; Add(o_Identity); o_Contact.col_name = LoginUsers.Contact.name; o_Contact.col_type.m_Type = "nvarchar"; o_Contact.col_type.bPRIMARY_KEY = false; o_Contact.col_type.bFOREIGN_KEY = false; o_Contact.col_type.bUNIQUE = false; o_Contact.col_type.bNULL = true; Add(o_Contact); o_username.col_name = LoginUsers.username.name; o_username.col_type.m_Type = "nvarchar"; o_username.col_type.bPRIMARY_KEY = false; o_username.col_type.bFOREIGN_KEY = false; o_username.col_type.bUNIQUE = true; o_username.col_type.bNULL = false; Add(o_username); o_password.col_name = LoginUsers.password.name; o_password.col_type.m_Type = "varbinary"; o_password.col_type.bPRIMARY_KEY = false; o_password.col_type.bFOREIGN_KEY = false; o_password.col_type.bUNIQUE = false; o_password.col_type.bNULL = true; Add(o_password); o_enabled.col_name = LoginUsers.enabled.name; o_enabled.col_type.m_Type = "bit"; o_enabled.col_type.bPRIMARY_KEY = false; o_enabled.col_type.bFOREIGN_KEY = false; o_enabled.col_type.bUNIQUE = false; o_enabled.col_type.bNULL = false; Add(o_enabled); o_ChangePasswordOnFirstLogin.col_name = LoginUsers.ChangePasswordOnFirstLogin.name; o_ChangePasswordOnFirstLogin.col_type.m_Type = "bit"; o_ChangePasswordOnFirstLogin.col_type.bPRIMARY_KEY = false; o_ChangePasswordOnFirstLogin.col_type.bFOREIGN_KEY = false; o_ChangePasswordOnFirstLogin.col_type.bUNIQUE = false; o_ChangePasswordOnFirstLogin.col_type.bNULL = false; Add(o_ChangePasswordOnFirstLogin); o_Time_When_AdministratorSetsPassword.col_name = LoginUsers.Time_When_AdministratorSetsPassword.name; o_Time_When_AdministratorSetsPassword.col_type.m_Type = "datetime"; o_Time_When_AdministratorSetsPassword.col_type.bPRIMARY_KEY = false; o_Time_When_AdministratorSetsPassword.col_type.bFOREIGN_KEY = false; o_Time_When_AdministratorSetsPassword.col_type.bUNIQUE = false; o_Time_When_AdministratorSetsPassword.col_type.bNULL = true; Add(o_Time_When_AdministratorSetsPassword); o_Administrator_LoginUsers_id.col_name = LoginUsers.Administrator_LoginUsers_id.name; o_Administrator_LoginUsers_id.col_type.m_Type = "int"; o_Administrator_LoginUsers_id.col_type.bPRIMARY_KEY = false; o_Administrator_LoginUsers_id.col_type.bFOREIGN_KEY = false; o_Administrator_LoginUsers_id.col_type.bUNIQUE = false; o_Administrator_LoginUsers_id.col_type.bNULL = true; Add(o_Administrator_LoginUsers_id); o_Time_When_UserSetsItsOwnPassword_FirstTime.col_name = LoginUsers.Time_When_UserSetsItsOwnPassword_FirstTime.name; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.m_Type = "datetime"; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.bPRIMARY_KEY = false; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.bFOREIGN_KEY = false; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.bUNIQUE = false; o_Time_When_UserSetsItsOwnPassword_FirstTime.col_type.bNULL = true; Add(o_Time_When_UserSetsItsOwnPassword_FirstTime); o_Time_When_UserSetsItsOwnPassword_LastTime.col_name = LoginUsers.Time_When_UserSetsItsOwnPassword_LastTime.name; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.m_Type = "datetime"; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.bPRIMARY_KEY = false; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.bFOREIGN_KEY = false; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.bUNIQUE = false; o_Time_When_UserSetsItsOwnPassword_LastTime.col_type.bNULL = true; Add(o_Time_When_UserSetsItsOwnPassword_LastTime); o_PasswordNeverExpires.col_name = LoginUsers.PasswordNeverExpires.name; o_PasswordNeverExpires.col_type.m_Type = "bit"; o_PasswordNeverExpires.col_type.bPRIMARY_KEY = false; o_PasswordNeverExpires.col_type.bFOREIGN_KEY = false; o_PasswordNeverExpires.col_type.bUNIQUE = false; o_PasswordNeverExpires.col_type.bNULL = false; Add(o_PasswordNeverExpires); o_Maximum_password_age_in_days.col_name = LoginUsers.Maximum_password_age_in_days.name; o_Maximum_password_age_in_days.col_type.m_Type = "int"; o_Maximum_password_age_in_days.col_type.bPRIMARY_KEY = false; o_Maximum_password_age_in_days.col_type.bFOREIGN_KEY = false; o_Maximum_password_age_in_days.col_type.bUNIQUE = false; o_Maximum_password_age_in_days.col_type.bNULL = true; Add(o_Maximum_password_age_in_days); o_NotActiveAfterPasswordExpires.col_name = LoginUsers.NotActiveAfterPasswordExpires.name; o_NotActiveAfterPasswordExpires.col_type.m_Type = "bit"; o_NotActiveAfterPasswordExpires.col_type.bPRIMARY_KEY = false; o_NotActiveAfterPasswordExpires.col_type.bFOREIGN_KEY = false; o_NotActiveAfterPasswordExpires.col_type.bUNIQUE = false; o_NotActiveAfterPasswordExpires.col_type.bNULL = false; Add(o_NotActiveAfterPasswordExpires); }
public LoginSession(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginSession.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginSession.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LoginUsers_id.col_name = LoginSession.LoginUsers_id.name; o_LoginUsers_id.col_type.m_Type = "int"; o_LoginUsers_id.col_type.bPRIMARY_KEY = false; o_LoginUsers_id.col_type.bFOREIGN_KEY = false; o_LoginUsers_id.col_type.bUNIQUE = false; o_LoginUsers_id.col_type.bNULL = false; Add(o_LoginUsers_id); o_Login_time.col_name = LoginSession.Login_time.name; o_Login_time.col_type.m_Type = "datetime"; o_Login_time.col_type.bPRIMARY_KEY = false; o_Login_time.col_type.bFOREIGN_KEY = false; o_Login_time.col_type.bUNIQUE = false; o_Login_time.col_type.bNULL = false; Add(o_Login_time); o_Logout_time.col_name = LoginSession.Logout_time.name; o_Logout_time.col_type.m_Type = "datetime"; o_Logout_time.col_type.bPRIMARY_KEY = false; o_Logout_time.col_type.bFOREIGN_KEY = false; o_Logout_time.col_type.bUNIQUE = false; o_Logout_time.col_type.bNULL = true; Add(o_Logout_time); o_LoginComputer_id.col_name = LoginSession.LoginComputer_id.name; o_LoginComputer_id.col_type.m_Type = "int"; o_LoginComputer_id.col_type.bPRIMARY_KEY = false; o_LoginComputer_id.col_type.bFOREIGN_KEY = false; o_LoginComputer_id.col_type.bUNIQUE = false; o_LoginComputer_id.col_type.bNULL = true; Add(o_LoginComputer_id); o_LoginComputerUser_id.col_name = LoginSession.LoginComputerUser_id.name; o_LoginComputerUser_id.col_type.m_Type = "int"; o_LoginComputerUser_id.col_type.bPRIMARY_KEY = false; o_LoginComputerUser_id.col_type.bFOREIGN_KEY = false; o_LoginComputerUser_id.col_type.bUNIQUE = false; o_LoginComputerUser_id.col_type.bNULL = true; Add(o_LoginComputerUser_id); }
public bool Update3(int id, [FromBody] selection question) { return(repository.Update3(id, question)); }
private void button_story_Click(object sender, RoutedEventArgs e) { //switch to the story tab _currentSelection = selection.Story; update(); }
public virtual void Update(GameTime gameTime) { background.Update(gameTime); if (currentSelectedMainControl != selection.fieldactive) { currentSelectedItemControl = selection.arrow_left; CurrentActiveItem = 0; } #region "Seleced Update" switch (currentSelectedMainControl) { case selection.buttonup: mainbuttonup.Update(gameTime); break; case selection.buttonmiddle: mainbuttonmiddle.Update(gameTime); break; case selection.buttondown: mainbuttondown.Update(gameTime); break; case selection.fieldactive: field_active.Update(gameTime); break; case selection.buttonback: buttonback.Update(gameTime); break; case selection.buttoncontinue: buttoncontinue.Update(gameTime); break; } #endregion #region "Navigation of the control" if (currentSelectedMainControl == selection.fieldactive) { if (InputManager.Instance.KeyPressed(Keys.Left) || ScreenManager.Instance.Controllers[0].Left(true)) { if (currentSelectedItemControl == selection.arrow_right) { currentSelectedItemControl = selection.arrow_left; } else if (currentSelectedItemControl == selection.arrow_left) { currentSelectedMainControl = selection.buttonup; } } if (InputManager.Instance.KeyPressed(Keys.Right) || ScreenManager.Instance.Controllers[0].Right(true)) { if (currentSelectedItemControl == selection.arrow_right) { currentSelectedItemControl = selection.arrow_left; } else if (currentSelectedItemControl == selection.arrow_left) { currentSelectedItemControl = selection.arrow_right; } } if (InputManager.Instance.KeyPressed(Keys.Down) || ScreenManager.Instance.Controllers[0].Down(true)) { if (CurrentActiveItem + 1 >= CurrentNumberControlItems) { currentSelectedMainControl = selection.buttoncontinue; CurrentActiveItem = 10; } else { CurrentActiveItem++; //if (currentSelectedItemControl == selection.buttonleft) //currentSelectedItemControl = selection.arrow_left; //if (currentSelectedItemControl == selection.buttonright) //currentSelectedItemControl = selection.arrow_right; } } if (InputManager.Instance.KeyPressed(Keys.Up) || ScreenManager.Instance.Controllers[0].Up(true)) { if (CurrentActiveItem == 10) { CurrentActiveItem = CurrentNumberControlItems - 1; //if (currentSelectedItemControl == selection.buttonleft) //currentSelectedItemControl = selection.arrow_left; //if (currentSelectedItemControl == selection.buttonright) //currentSelectedItemControl = selection.arrow_right; } else if (CurrentActiveItem != 0) { CurrentActiveItem--; } } } else { if (InputManager.Instance.KeyPressed(Keys.Up) || ScreenManager.Instance.Controllers[0].Up(true)) { if (currentSelectedMainControl == selection.buttonmiddle) { currentSelectedMainControl = selection.buttonup; } else if (currentSelectedMainControl == selection.buttondown) { currentSelectedMainControl = selection.buttonup; } else if (currentSelectedMainControl == selection.buttonback) { currentSelectedMainControl = selection.buttondown; } else if (currentSelectedMainControl == selection.buttoncontinue) { currentSelectedMainControl = selection.fieldactive; currentSelectedItemControl = selection.arrow_right; } } if (InputManager.Instance.KeyPressed(Keys.Down) || ScreenManager.Instance.Controllers[0].Down(true)) { if (currentSelectedMainControl == selection.buttonmiddle) { currentSelectedMainControl = selection.buttondown; } else if (currentSelectedMainControl == selection.buttonup) { currentSelectedMainControl = selection.buttondown; } else if (currentSelectedMainControl == selection.buttondown) { currentSelectedMainControl = selection.buttonback; } } if (InputManager.Instance.KeyPressed(Keys.Right) || ScreenManager.Instance.Controllers[0].Right(true)) { if (currentSelectedMainControl == selection.buttondown || currentSelectedMainControl == selection.buttonup) { currentSelectedMainControl = selection.fieldactive; } else if (currentSelectedMainControl == selection.buttonback) { currentSelectedMainControl = selection.buttoncontinue; } } if (InputManager.Instance.KeyPressed(Keys.Left) || ScreenManager.Instance.Controllers[0].Left(true)) { if (currentSelectedMainControl == selection.buttoncontinue) { currentSelectedMainControl = selection.buttonback; } } } #endregion #region "Actions" if (InputManager.Instance.KeyPressed(Keys.Enter) || ScreenManager.Instance.Controllers[0].A_Button(true)) { switch (currentSelectedMainControl) { case selection.buttondown: if (CurrentActiveField == numberControlFields - 1) { CurrentActiveField = 0; } else { CurrentActiveField++; } break; case selection.buttonup: if (CurrentActiveField == 0) { CurrentActiveField = numberControlFields - 1; } else { CurrentActiveField--; } break; case selection.buttonback: ScreenManager.Instance.ChangeScreen("MenuScreen"); break; } } #endregion //mainbuttonup_pressed.Update(gameTime); //mainbuttondown_pressed.Update(gameTime); }
private void button_sprint_Click(object sender, RoutedEventArgs e) { //switch to the sprint tab _currentSelection = selection.Sprint; update(); }
private void button_project_Click(object sender, RoutedEventArgs e) { //switch to the project tab _currentSelection = selection.Project; update(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { if (!_viewModel.IsManager) { menu_main.Visibility = Visibility.Hidden; button_New.Visibility = Visibility.Hidden; } this.DataContext = _viewModel; _currentSelection = selection.Home; update(); }
private void button_home_Click(object sender, RoutedEventArgs e) { //switch to the home tab _currentSelection = selection.Home; update(); }
private void MenuItem_Unchecked(object sender, RoutedEventArgs e) { //turns off historic mode if (_viewModel.HistoricMode == true) { BackgroundColor = Brushes.LightBlue; _viewModel.ToggleHistoricMode(); _currentSelection = selection.Home; grid_projectInfo.IsEnabled = true; foreach (UIElement child in grid_sprintInfo.Children) { child.IsEnabled = true; } grid_storyInfo.IsEnabled = true; grid_taskInfo.IsEnabled = true; button_project.Visibility = Visibility.Hidden; button_sprint.Visibility = Visibility.Hidden; button_story.Visibility = Visibility.Hidden; button_task.Visibility = Visibility.Hidden; if (_viewModel.IsManager) { menu_main.Visibility = Visibility.Visible; button_New.Visibility = Visibility.Visible; } update(); } }
public LoginManagerJournal_VIEW(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginManagerJournal_VIEW.tablename_const; myUpdateObjects = UpdateObjects; o_Time.col_name = LoginManagerJournal_VIEW.Time.name; o_Time.col_type.m_Type = "datetime"; Add(o_Time); o_LoginManagerEvent_id.col_name = LoginManagerJournal_VIEW.LoginManagerEvent_id.name; o_LoginManagerEvent_id.col_type.m_Type = "int"; Add(o_LoginManagerEvent_id); o_LoginManagerEvent_Message.col_name = LoginManagerJournal_VIEW.LoginManagerEvent_Message.name; o_LoginManagerEvent_Message.col_type.m_Type = "nvarchar"; Add(o_LoginManagerEvent_Message); o_LoginUsers_id.col_name = LoginManagerJournal_VIEW.LoginUsers_id.name; o_LoginUsers_id.col_type.m_Type = "int"; Add(o_LoginUsers_id); o_username.col_name = LoginManagerJournal_VIEW.username.name; o_username.col_type.m_Type = "nvarchar"; Add(o_username); }
// Use this for initialization void Start() { currentSelect = transform.GetComponent <selection>(); mUI = transform.GetComponent <MainUI>(); }
public LoginSession_VIEW(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginSession_VIEW.tablename_const; myUpdateObjects = UpdateObjects; o_LoginSession_id.col_name = LoginSession_VIEW.LoginSession_id.name; o_LoginSession_id.col_type.m_Type = "int"; Add(o_LoginSession_id); o_LoginUsers_id.col_name = LoginSession_VIEW.LoginUsers_id.name; o_LoginUsers_id.col_type.m_Type = "int"; Add(o_LoginUsers_id); o_username.col_name = LoginSession_VIEW.username.name; o_username.col_type.m_Type = "nvarchar"; Add(o_username); o_first_name.col_name = LoginSession_VIEW.first_name.name; o_first_name.col_type.m_Type = "nvarchar"; Add(o_first_name); o_last_name.col_name = LoginSession_VIEW.last_name.name; o_last_name.col_type.m_Type = "nvarchar"; Add(o_last_name); o_Identity.col_name = LoginSession_VIEW.Identity.name; o_Identity.col_type.m_Type = "nvarchar"; Add(o_Identity); o_Contact.col_name = LoginSession_VIEW.Contact.name; o_Contact.col_type.m_Type = "nvarchar"; Add(o_Contact); o_Login_time.col_name = LoginSession_VIEW.Login_time.name; o_Login_time.col_type.m_Type = "datetime"; Add(o_Login_time); o_Logout_time.col_name = LoginSession_VIEW.Logout_time.name; o_Logout_time.col_type.m_Type = "datetime"; Add(o_Logout_time); o_LoginComputer_id.col_name = LoginSession_VIEW.LoginComputer_id.name; o_LoginComputer_id.col_type.m_Type = "int"; Add(o_LoginComputer_id); o_ComputerName.col_name = LoginSession_VIEW.ComputerName.name; o_ComputerName.col_type.m_Type = "nvarchar"; Add(o_ComputerName); o_LoginComputerUser_id.col_name = LoginSession_VIEW.LoginComputerUser_id.name; o_LoginComputerUser_id.col_type.m_Type = "int"; Add(o_LoginComputerUser_id); o_ComputerUserName.col_name = LoginSession_VIEW.ComputerUserName.name; o_ComputerUserName.col_type.m_Type = "nvarchar"; Add(o_ComputerUserName); }
// Use this for initialization void Start() { currentSelect = this.GetComponent<selection>(); segment = btSize; posMoveBt =new Rect(leftMargin,topMargin,btSize,btSize); posSummonBt = new Rect(leftMargin,topMargin+segment,btSize,btSize); posAttackBt = new Rect(leftMargin,topMargin+segment*2,btSize,btSize); posSkillBt = new Rect(leftMargin,topMargin+segment*3,btSize,btSize); posDefenseBt = new Rect(leftMargin,topMargin+segment*4,btSize,btSize); posEndTurnBt = new Rect(leftMargin,topMargin+segment*5,btSize,btSize); MainGuiShow = false; mousePos = new Vector2(); mainStyle.font = MainFont; mainStyle.normal.textColor = Color.white; mainStyle.fontSize = 20; subStyle = new GUIStyle(mainStyle); subStyle.fontSize = 16; subStyle.normal.textColor = new Color(.8f,.8f,.8f,1.0f); subStyle.onHover.textColor = Color.white; players = this.GetComponent<RoundCounter>(); numIcon = this.GetComponent<NumIconVault>(); infoUI = this.GetComponent<InfoUI>(); chessUI = this.GetComponent<MainInfoUI>(); InSecondTutor = false; init = GameObject.Find("InitStage").transform.GetComponent<InitStage>(); }
public LoginUsersAndLoginRoles(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginUsersAndLoginRoles.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginUsersAndLoginRoles.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LoginUsers_id.col_name = LoginUsersAndLoginRoles.LoginUsers_id.name; o_LoginUsers_id.col_type.m_Type = "int"; o_LoginUsers_id.col_type.bPRIMARY_KEY = false; o_LoginUsers_id.col_type.bFOREIGN_KEY = false; o_LoginUsers_id.col_type.bUNIQUE = false; o_LoginUsers_id.col_type.bNULL = false; Add(o_LoginUsers_id); o_LoginRoles_id.col_name = LoginUsersAndLoginRoles.LoginRoles_id.name; o_LoginRoles_id.col_type.m_Type = "int"; o_LoginRoles_id.col_type.bPRIMARY_KEY = false; o_LoginRoles_id.col_type.bFOREIGN_KEY = false; o_LoginRoles_id.col_type.bUNIQUE = false; o_LoginRoles_id.col_type.bNULL = false; Add(o_LoginRoles_id); }
private List <WeatherRow> ParsePage(string CityName, selection select) { HtmlAgilityPack.HtmlDocument html = new HtmlAgilityPack.HtmlDocument(); string page = GetHtmlPageText("https://www.meteoservice.ru/weather/" + select + "/" + CityName + ".html"); if (page == null) { return(null); } else { html.LoadHtml(page); List <WeatherRow> weatherlist = new List <WeatherRow>(); switch (select) { case selection.now: { HtmlNodeCollection Now = html.DocumentNode.SelectNodes("//*[contains(@class,'callout')]/div/div"); for (int i = 0; i < Now.Count; i++) { string str = (Now[i].InnerText.Replace("\t", "")).Replace("\n", ""); weatherlist.Add(new WeatherRow(str, str)); } break; } case selection.today: { break; } case selection.week: { HtmlAgilityPack.HtmlNodeCollection Week = (html.DocumentNode.SelectNodes("//*[contains(@class,'row')]/div/table")); //.SelectNodes("//div/h3"); HtmlAgilityPack.HtmlNodeCollection DayName = (html.DocumentNode.SelectNodes("//*[contains(@class,'row collapse align-middle')]/div")); //.SelectNodes("//div/h3"); HtmlAgilityPack.HtmlNodeCollection days = html.DocumentNode.SelectNodes("//*[contains(@class,'row')]/div/*[contains(@class,'row collapse align-middle')]//*[contains(@class,'text-nowrap')]"); ; for (int j = 0; j < Week.Count; j++) { weatherlist.Add(new WeatherRow(days[j].InnerText, "")); HtmlAgilityPack.HtmlNodeCollection DayTime = Week[j].SelectNodes("//table[" + (j + 1) + "]/tbody/*[contains(@class,'time')]/td"); HtmlAgilityPack.HtmlNodeCollection DayTemp = Week[j].SelectNodes("//table[" + (j + 1) + "]/tbody/*[contains(@class,'temperature')]/td"); HtmlAgilityPack.HtmlNodeCollection DayWeather = Week[j].SelectNodes("//table[" + (j + 1) + "]/tbody/*[contains(@class,'weather')]/td"); if (DayTime != null & DayTemp != null) { for (int k = 2; k < DayTime.Count; k++) { var Time = DayTime[k].FirstChild.InnerText; var Temp = DayTemp[k].InnerText.Replace("\t", "").Replace("\n", "").Replace("°", "").Replace(" ", ""); var Weather = DayWeather[k].InnerText.Replace("\t", "").Replace("\n", "").Replace("°", "").Replace(" ", ""); if (Time != null & Temp != null) { ; } weatherlist.Add(new WeatherRow(Time, Temp, Weather)); } } } break; } default: break; } return(weatherlist); } }
public LogFile_Attachment(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LogFile_Attachment.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LogFile_Attachment.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LogFile_id.col_name = LogFile_Attachment.LogFile_id.name; o_LogFile_id.col_type.m_Type = "int"; o_LogFile_id.col_type.bPRIMARY_KEY = false; o_LogFile_id.col_type.bFOREIGN_KEY = true; o_LogFile_id.col_type.bUNIQUE = false; o_LogFile_id.col_type.bNULL = false; Add(o_LogFile_id); o_LogFile_Attachment_Type_id.col_name = LogFile_Attachment.LogFile_Attachment_Type_id.name; o_LogFile_Attachment_Type_id.col_type.m_Type = "int"; o_LogFile_Attachment_Type_id.col_type.bPRIMARY_KEY = false; o_LogFile_Attachment_Type_id.col_type.bFOREIGN_KEY = true; o_LogFile_Attachment_Type_id.col_type.bUNIQUE = false; o_LogFile_Attachment_Type_id.col_type.bNULL = false; Add(o_LogFile_Attachment_Type_id); o_Attachment.col_name = LogFile_Attachment.Attachment.name; o_Attachment.col_type.m_Type = "varbinary"; o_Attachment.col_type.bPRIMARY_KEY = false; o_Attachment.col_type.bFOREIGN_KEY = false; o_Attachment.col_type.bUNIQUE = false; o_Attachment.col_type.bNULL = true; Add(o_Attachment); o_Description.col_name = LogFile_Attachment.Description.name; o_Description.col_type.m_Type = "nvarchar"; o_Description.col_type.bPRIMARY_KEY = false; o_Description.col_type.bFOREIGN_KEY = false; o_Description.col_type.bUNIQUE = false; o_Description.col_type.bNULL = true; Add(o_Description); }
// Use this for initialization void Start() { UnStatusCounter = new Dictionary <UnnormalStatus, int>(); LastUnStatusCounter = new Dictionary <UnnormalStatus, int>(); //print("Dictionary length:" + UnStatusCounter.Count); UnStatusCounter.Add(UnnormalStatus.Burned, 0); UnStatusCounter.Add(UnnormalStatus.Chaos, 0); UnStatusCounter.Add(UnnormalStatus.Freezed, 0); UnStatusCounter.Add(UnnormalStatus.Poisoned, 0); UnStatusCounter.Add(UnnormalStatus.Sleeping, 0); UnStatusCounter.Add(UnnormalStatus.Wounded, 0); LastUnStatusCounter.Add(UnnormalStatus.Burned, 0); LastUnStatusCounter.Add(UnnormalStatus.Chaos, 0); LastUnStatusCounter.Add(UnnormalStatus.Freezed, 0); LastUnStatusCounter.Add(UnnormalStatus.Poisoned, 0); LastUnStatusCounter.Add(UnnormalStatus.Sleeping, 0); LastUnStatusCounter.Add(UnnormalStatus.Wounded, 0); //print("Dictionary length after adds:" + UnStatusCounter.Count); if (Player == 1) { Moved = false; Attacked = false; Activated = false; } else { Moved = true; Attacked = true; Activated = true; } //init initial status death = true; Ready = false; Hp = defPower; ModifiedDefPow = defPower; Damage = atkPower; BuffAtkRange = atkRange; BuffCriticalHit = CriticalhitChance; BuffMoveRange = moveRange; BuffSkillRate = SkillRate; if (Player > 1) { WaitRounds = StandByRounds - 1; } else { WaitRounds = StandByRounds; } if (Summoner) { Ready = true; death = false; WaitRounds = 0; } if (!Tower) { if (Player == 1) { transform.position = GameObject.Find("unit_start_point_A").transform.position; transform.Translate(0.0f, 1.5f, 0.0f); } else if (Player == 2) { transform.position = GameObject.Find("unit_start_point_B").transform.position; transform.Translate(0.0f, 1.5f, 0.0f); } } else { if (Player == 1) { transform.position = GameObject.Find("red_tower").transform.position; transform.Translate(0.0f, 4.0f, 0.0f); } else if (Player == 2) { transform.position = GameObject.Find("yellow_tower").transform.position; transform.Translate(0.0f, 4.0f, 0.0f); } } currentSel = Camera.mainCamera.GetComponent <selection>(); dFX = Camera.mainCamera.GetComponent <DeathFX>(); }
private void button_task_Click(object sender, RoutedEventArgs e) { //switch to the task tab _currentSelection = selection.Task; update(); }
public selection Add3([FromBody] selection question) { return(repository.Add3((int)question.ID, question)); }
public Log_VIEW(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = Log_VIEW.tablename_const; myUpdateObjects = UpdateObjects; o_LogFile_id.col_name = Log_VIEW.LogFile_id.name; o_LogFile_id.col_type.m_Type = "int"; Add(o_LogFile_id); o_Log_Time.col_name = Log_VIEW.Log_Time.name; o_Log_Time.col_type.m_Type = "datetime"; Add(o_Log_Time); o_Log_TypeName.col_name = Log_VIEW.Log_TypeName.name; o_Log_TypeName.col_type.m_Type = "nvarchar"; Add(o_Log_TypeName); o_Log_Type_id.col_name = Log_VIEW.Log_Type_id.name; o_Log_Type_id.col_type.m_Type = "int"; Add(o_Log_Type_id); o_Log_Description.col_name = Log_VIEW.Log_Description.name; o_Log_Description.col_type.m_Type = "nvarchar"; Add(o_Log_Description); o_Log_Description_id.col_name = Log_VIEW.Log_Description_id.name; o_Log_Description_id.col_type.m_Type = "int"; Add(o_Log_Description_id); o_ComputerName.col_name = Log_VIEW.ComputerName.name; o_ComputerName.col_type.m_Type = "nvarchar"; Add(o_ComputerName); o_Log_Computer_id.col_name = Log_VIEW.Log_Computer_id.name; o_Log_Computer_id.col_type.m_Type = "int"; Add(o_Log_Computer_id); o_UserName.col_name = Log_VIEW.UserName.name; o_UserName.col_type.m_Type = "nvarchar"; Add(o_UserName); o_Log_UserName_id.col_name = Log_VIEW.Log_UserName_id.name; o_Log_UserName_id.col_type.m_Type = "int"; Add(o_Log_UserName_id); o_Program.col_name = Log_VIEW.Program.name; o_Program.col_type.m_Type = "nvarchar"; Add(o_Program); o_Log_Program_id.col_name = Log_VIEW.Log_Program_id.name; o_Log_Program_id.col_type.m_Type = "int"; Add(o_Log_Program_id); o_LogFile_Description.col_name = Log_VIEW.LogFile_Description.name; o_LogFile_Description.col_type.m_Type = "nvarchar"; Add(o_LogFile_Description); o_LogFile_Description_id.col_name = Log_VIEW.LogFile_Description_id.name; o_LogFile_Description_id.col_type.m_Type = "int"; Add(o_LogFile_Description_id); }
public LoginFailed(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginFailed.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginFailed.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_username.col_name = LoginFailed.username.name; o_username.col_type.m_Type = "nvarchar"; o_username.col_type.bPRIMARY_KEY = false; o_username.col_type.bFOREIGN_KEY = false; o_username.col_type.bUNIQUE = false; o_username.col_type.bNULL = false; Add(o_username); o_AttemptTime.col_name = LoginFailed.AttemptTime.name; o_AttemptTime.col_type.m_Type = "datetime"; o_AttemptTime.col_type.bPRIMARY_KEY = false; o_AttemptTime.col_type.bFOREIGN_KEY = false; o_AttemptTime.col_type.bUNIQUE = false; o_AttemptTime.col_type.bNULL = false; Add(o_AttemptTime); o_username_does_not_exist.col_name = LoginFailed.username_does_not_exist.name; o_username_does_not_exist.col_type.m_Type = "bit"; o_username_does_not_exist.col_type.bPRIMARY_KEY = false; o_username_does_not_exist.col_type.bFOREIGN_KEY = false; o_username_does_not_exist.col_type.bUNIQUE = false; o_username_does_not_exist.col_type.bNULL = false; Add(o_username_does_not_exist); o_password_wrong.col_name = LoginFailed.password_wrong.name; o_password_wrong.col_type.m_Type = "bit"; o_password_wrong.col_type.bPRIMARY_KEY = false; o_password_wrong.col_type.bFOREIGN_KEY = false; o_password_wrong.col_type.bUNIQUE = false; o_password_wrong.col_type.bNULL = true; Add(o_password_wrong); o_LoginComputer_id.col_name = LoginFailed.LoginComputer_id.name; o_LoginComputer_id.col_type.m_Type = "int"; o_LoginComputer_id.col_type.bPRIMARY_KEY = false; o_LoginComputer_id.col_type.bFOREIGN_KEY = false; o_LoginComputer_id.col_type.bUNIQUE = false; o_LoginComputer_id.col_type.bNULL = true; Add(o_LoginComputer_id); o_LoginComputerUser_id.col_name = LoginFailed.LoginComputerUser_id.name; o_LoginComputerUser_id.col_type.m_Type = "int"; o_LoginComputerUser_id.col_type.bPRIMARY_KEY = false; o_LoginComputerUser_id.col_type.bFOREIGN_KEY = false; o_LoginComputerUser_id.col_type.bUNIQUE = false; o_LoginComputerUser_id.col_type.bNULL = true; Add(o_LoginComputerUser_id); }
public sysdiagrams(Log_DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = sysdiagrams.tablename_const; myUpdateObjects = UpdateObjects; o_name.col_name = sysdiagrams.name__.name; o_name.col_type.m_Type = "nvarchar"; o_name.col_type.bPRIMARY_KEY = false; o_name.col_type.bFOREIGN_KEY = false; o_name.col_type.bUNIQUE = true; o_name.col_type.bNULL = false; Add(o_name); o_principal_id.col_name = sysdiagrams.principal_id.name; o_principal_id.col_type.m_Type = "int"; o_principal_id.col_type.bPRIMARY_KEY = false; o_principal_id.col_type.bFOREIGN_KEY = false; o_principal_id.col_type.bUNIQUE = true; o_principal_id.col_type.bNULL = false; Add(o_principal_id); o_diagram_id.col_name = sysdiagrams.diagram_id.name; o_diagram_id.col_type.m_Type = "int"; o_diagram_id.col_type.bPRIMARY_KEY = true; o_diagram_id.col_type.bFOREIGN_KEY = false; o_diagram_id.col_type.bUNIQUE = false; o_diagram_id.col_type.bNULL = false; Add(o_diagram_id); o_version.col_name = sysdiagrams.version.name; o_version.col_type.m_Type = "int"; o_version.col_type.bPRIMARY_KEY = false; o_version.col_type.bFOREIGN_KEY = false; o_version.col_type.bUNIQUE = false; o_version.col_type.bNULL = true; Add(o_version); o_definition.col_name = sysdiagrams.definition.name; o_definition.col_type.m_Type = "varbinary"; o_definition.col_type.bPRIMARY_KEY = false; o_definition.col_type.bFOREIGN_KEY = false; o_definition.col_type.bUNIQUE = false; o_definition.col_type.bNULL = true; Add(o_definition); }
public LoginManagerJournal(DBConnectionControl40.DBConnection xcon) { select = new selection(this); where = new WHERE(this); m_con = xcon; tablename = LoginManagerJournal.tablename_const; myUpdateObjects = UpdateObjects; o_id.col_name = LoginManagerJournal.id.name; o_id.col_type.m_Type = "int"; o_id.col_type.bPRIMARY_KEY = true; o_id.col_type.bFOREIGN_KEY = false; o_id.col_type.bUNIQUE = false; o_id.col_type.bNULL = false; Add(o_id); o_LoginUsers_id.col_name = LoginManagerJournal.LoginUsers_id.name; o_LoginUsers_id.col_type.m_Type = "int"; o_LoginUsers_id.col_type.bPRIMARY_KEY = false; o_LoginUsers_id.col_type.bFOREIGN_KEY = false; o_LoginUsers_id.col_type.bUNIQUE = false; o_LoginUsers_id.col_type.bNULL = false; Add(o_LoginUsers_id); o_LoginManagerEvent_id.col_name = LoginManagerJournal.LoginManagerEvent_id.name; o_LoginManagerEvent_id.col_type.m_Type = "int"; o_LoginManagerEvent_id.col_type.bPRIMARY_KEY = false; o_LoginManagerEvent_id.col_type.bFOREIGN_KEY = false; o_LoginManagerEvent_id.col_type.bUNIQUE = false; o_LoginManagerEvent_id.col_type.bNULL = false; Add(o_LoginManagerEvent_id); o_Time.col_name = LoginManagerJournal.Time.name; o_Time.col_type.m_Type = "datetime"; o_Time.col_type.bPRIMARY_KEY = false; o_Time.col_type.bFOREIGN_KEY = false; o_Time.col_type.bUNIQUE = false; o_Time.col_type.bNULL = false; Add(o_Time); }
// Use this for initialization void Start() { currentSel = transform.GetComponent <selection>(); chessUI = transform.GetComponent <MainInfoUI>(); }
private void rightList_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { //jumping to a task if (rightList.SelectedIndex >= 0) { _viewModel.CurrTask = (TaskView)rightList.SelectedItem; _viewModel.JumpToTask(_viewModel.CurrTask); _currentSelection = selection.Task; grid_projectInfo.DataContext = _viewModel.CurrProject; grid_sprintInfo.DataContext = _viewModel.CurrSprint; grid_storyInfo.DataContext = _viewModel.CurrStory; grid_taskInfo.DataContext = _viewModel.CurrTask; comboBox_project_owner.ItemsSource = _viewModel.AllManagers; comboBox_story_sprint.DataContext = _viewModel; label_story_project.DataContext = _viewModel.CurrProject; label_task_project.DataContext = _viewModel.CurrProject; comboBox_task_owner.DataContext = _viewModel.GetTeamMembers(_viewModel.CurrTeam); comboBox_task_complexity.ItemsSource = ViewModel.EnumValues.sizeComplexity; comboBox_task_state.ItemsSource = ViewModel.EnumValues.taskState; comboBox_task_value.ItemsSource = ViewModel.EnumValues.businessValue; comboBox_task_type.ItemsSource = ViewModel.EnumValues.taskType; update(); } rightList.SelectedIndex = -1; }
public void setSel(selection insel) { sel = insel; beenClicked = true; }
public Control1_Item(int itemID, string itemname, string itemsetting, int fieldID, int maxindex) { this.fieldID = fieldID; ItemID = itemID; this.itemtitle = new cText(itemname + ":", "DryGood"); this.itemsetting = new cText(itemsetting, "DryGood"); arrow_left = new Image("OptionsScreen/arrow_left"); arrow_right = new Image("OptionsScreen/arrow_right"); arrow_left.Color = Color.Black; arrow_right.Color = Color.Black; fadeeffect = new FadeEffect(1.5f, 1.0f, 0.3f); currentSelected = selection.arrowleft; this.maxIndex = maxindex; Random random = new Random(); if (ScreenManager.Instance.Controllers[0].characterInfo.NotFound == true) { currentIndex = random.Next(0, maxindex); } else { if (fieldID == 1) { switch (itemID) { case 0: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Gender; break; case 1: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Skincolor; break; } } else if (fieldID == 2) { switch (itemID) { case 0: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Head; break; case 1: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Shirt; break; case 2: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Belt; break; case 3: currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.Pants; break; } } else if (fieldID == 0) { currentIndex = ScreenManager.Instance.Controllers[0].characterInfo.NameIndex; } } }
// Use this for initialization void Start() { UnStatusCounter = new Dictionary<UnnormalStatus, int>(); LastUnStatusCounter = new Dictionary<UnnormalStatus, int>(); //print("Dictionary length:" + UnStatusCounter.Count); UnStatusCounter.Add(UnnormalStatus.Burned,0); UnStatusCounter.Add(UnnormalStatus.Chaos,0); UnStatusCounter.Add(UnnormalStatus.Freezed,0); UnStatusCounter.Add(UnnormalStatus.Poisoned,0); UnStatusCounter.Add(UnnormalStatus.Sleeping,0); UnStatusCounter.Add(UnnormalStatus.Wounded,0); LastUnStatusCounter.Add(UnnormalStatus.Burned,0); LastUnStatusCounter.Add(UnnormalStatus.Chaos,0); LastUnStatusCounter.Add(UnnormalStatus.Freezed,0); LastUnStatusCounter.Add(UnnormalStatus.Poisoned,0); LastUnStatusCounter.Add(UnnormalStatus.Sleeping,0); LastUnStatusCounter.Add(UnnormalStatus.Wounded,0); //print("Dictionary length after adds:" + UnStatusCounter.Count); if(Player==1){ Moved = false; Attacked = false; Activated = false; }else{ Moved = true; Attacked = true; Activated = true; } //init initial status death = true; Ready = false; Hp = defPower; ModifiedDefPow = defPower; Damage = atkPower; BuffAtkRange = atkRange; BuffCriticalHit = CriticalhitChance; BuffMoveRange = moveRange; BuffSkillRate = SkillRate; if(Player>1) WaitRounds = StandByRounds-1; else WaitRounds = StandByRounds; if(Summoner || LeadingCharacter){ Ready = true; death = false; WaitRounds = 0; } /* if(!Tower){ if(Player==1){ transform.position = GameObject.Find("unit_start_point_A").transform.position; transform.Translate(0.0f,1.5f,0.0f); }else if(Player==2){ transform.position = GameObject.Find("unit_start_point_B").transform.position; transform.Translate(0.0f,1.5f,0.0f); } }else{ if(Player==1){ transform.position = GameObject.Find("red_tower").transform.position; transform.Translate(0.0f,4.0f,0.0f); }else if(Player==2){ transform.position = GameObject.Find("yellow_tower").transform.position; transform.Translate(0.0f,4.0f,0.0f); } }*/ currentSel = Camera.mainCamera.GetComponent<selection>(); dFX = Camera.mainCamera.GetComponent<DeathFX>(); }
_behaviourSetter = new PlacerTileBehaviourSetter(selection, tileGrid);
// Use this for initialization void Start() { currentSelect = Camera.main.GetComponent <selection>(); currentRC = Camera.main.GetComponent <RoundCounter>(); }
public void ResetSelected() { currentSelected = selection.arrowleft; }