public void SaveSetting() { SettingUtils helper = new SettingUtils(settingPath, "SearchTool.Properties.Settings"); helper.SetSettingValue("Top", Top.ToString()); helper.SetSettingValue("Left", Left.ToString()); helper.SetSettingValue("RadioType", RadioType); helper.SetSettingValue("Topmost", Topmost.ToString()); helper.Save(); }
public override int GetHashCode() { unchecked { int hashCode = (int)Side; hashCode = (hashCode * 397) ^ Color.GetHashCode(); hashCode = (hashCode * 397) ^ Size.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Style; hashCode = (hashCode * 397) ^ ShadowSize.GetHashCode(); hashCode = (hashCode * 397) ^ Topmost.GetHashCode(); hashCode = (hashCode * 397) ^ DropShadow.GetHashCode(); return(hashCode); } }
private void GetValidScriptScopes(List <ScriptScope> results, bool allowTemp = true, ScopeFindType values = ScopeFindType.Object) { if (Topmost != this || allowTemp) { visited.Clear(); } if (Topmost != this) { Topmost.GetValidScriptScopes(results, allowTemp, values); return; } if (visited.Contains(this)) { return; } visited.Add(this); if (allowTemp) { foreach (var scriptScopesValue in scriptScopes.Values) { if (!results.Any(a => a.Name == scriptScopesValue.Name && a.Show(values))) { results.Add(scriptScopesValue); } } } else { foreach (var scriptScopesValue in scriptScopes.Values) { if (!scriptScopesValue.Temporary && !results.Any(a => a.Name == scriptScopesValue.Name && a.Show(values))) { results.Add(scriptScopesValue); } } } var Connections = ReferenceManager.Instance.GetConnectionsTo(Topmost.Name); foreach (var eventConnection in Connections) { eventConnection.From.GetValidScriptScopes(results, false); } }
private void GetValidLocalVariables(List <Variable> results) { if (Topmost != this) { visited.Clear(); } if (Topmost != this) { Topmost.GetValidLocalVariables(results); return; } if (visited.Contains(this)) { return; } visited.Add(this); { foreach (var scriptScopesValue in localVariables.Values) { if (!results.Any(a => a.Name == scriptScopesValue.Name)) { results.Add(scriptScopesValue); } } } var Connections = ReferenceManager.Instance.GetConnectionsTo(Topmost.Name); foreach (var eventConnection in Connections) { eventConnection.From.GetValidLocalVariables(results); } }
public ScopeType GetRootScopeType() { return(Topmost.GetScopeType()); }