public bool IsSimilar(GameInfo other) { if (name == other.name) { return true; } if (title.IsComparable) { return title.IsSimilar(other.title); } if (className.IsComparable) { return className.IsSimilar(other.className); } if (file.IsComparable) { return file.IsSimilar(other.file); } return true; }
public void Add(GameInfo info) { games.Add(info); }
void SetGame(Win32Form form, GameInfo info) { if (current != null) { if (info != current.info) { current.Deactivate(); } else { return; } } if (info == null) { current = null; } else { current = new GameImmersifier(form, info); current.Activate(); } }
public void Add(GameInfo info) { agi.Add(info); }
public GameImmersifier(Win32Form form, GameInfo info) { this.form = form; this.info = info; }
private void UpdateFromGame(GameInfo value) { Enabled = value != null; if (value == null) { return; } chkWindowTitle.Checked = value.title.active; cmbWindowTitle.SelectedIndex = (int)value.title.operation; txtWindowTitle.Text = value.title.pattern; chkClassName.Checked = value.className.active; cmbClassName.SelectedIndex = (int)value.className.operation; txtClassName.Text = value.className.pattern; chkFileName.Checked = value.file.active; cmbFileName.SelectedIndex = (int)value.file.operation; txtFileName.Text = value.file.pattern; chkAot.CheckState = value.alwaysOnTop; chkBlackout.Checked = value.blackoutUnused; chkHideCursor.Checked = value.hideMouse; foreach (DisplayChooser.SelectableDisplay screen in monitors.Monitors) { screen.Selected = false; } foreach (DisplayChooser.SelectableDisplay screen in value.monitors.Select(a=>monitors.ScreenFromBounds(a.Bounds)).Where(a=>a!=null)) { screen.Selected = true; } }