private void inpAuthType_Text_Changed(object sender, usrEventArgs e) { bool value = inpAuthType.Text.Equals("Sql Server 인증"); inpId.Enabled = value; inpPass.Enabled = value; }
/// <summary> /// db 타입 변경 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void inpDbType_Text_Changed(object sender, usrEventArgs e) { switch (inpDbType.ComboBoxSelectItem.ToString()) { case "ORACLE": inpAuthType.ComboBoxSelectItem = "Sql Server 인증"; inpAuthType.Enabled = false; inpIp.Label_Text = "TNS"; inpDataBase.ComboBoxSelectItem = null; inpDataBase.Enabled = false; dbType = enDBType.Oracle; break; case "MS-SQL": inpAuthType.ComboBoxSelectItem = "Sql Server 인증"; inpAuthType.Enabled = true; inpIp.Label_Text = "IP"; inpDataBase.ComboBoxSelectItem = null; inpDataBase.Enabled = true; dbType = enDBType.MsSQL; break; default: inpAuthType.Enabled = false; inpDataBase.ComboBoxSelectItem = null; inpDataBase.Enabled = false; dbType = enDBType.None; break; } }
private void cmbType_Text_Changed(object sender, usrEventArgs e) { InputBox_Collapes(); }
private void inpPicSizeMode_Text_Changed(object sender, usrEventArgs e) { pnlImage.BackgroundImageLayout = (ImageLayout)Fnc.enumItem2Object(new ImageLayout(), inpPicSizeMode.Text); }