public GenomViewForm() { InitializeComponent(); tvFemale.NameFormat = tvMale.NameFormat = "n, [b], C"; FormSizeSaver.Append(this); }
public ReplaceYoungersForm() { InitializeComponent(); cs = new ListViewColumnSorter(listView1, new int[] { 1, 4, 6, 7 }, Options.OPT_ID.REPL_YOUNG_LIST); listView1.ListViewItemSorter = cs; FormSizeSaver.Append(this); }
public DeadForm() { InitializeComponent(); fp = new DeadFilter(); rsb.FilterPanel = fp; cs = new ListViewColumnSorter(listView1, new int[] { 2, 3 }, Options.OPT_ID.DEAD_LIST); FormSizeSaver.Append(this); }
public KillForm() { InitializeComponent(); initialHints(); dateDays1.DateValue = DateTime.Now; confirm = Engine.opt().getIntOption(Options.OPT_ID.CONFIRM_KILL) == 1; Catalog c = Engine.db().catalogs().getDeadReasons(); cbDeadReason.Items.Add(""); for (int i = 0; i < c.Count; i++) { cbDeadReason.Items.Add(c[i + 3]); } cs = new ListViewColumnSorter(listView1, new int[] { IND_AGE, IND_COUNT, IND_KILL_COUNT }, Options.OPT_ID.KILL_LIST); update(); FormSizeSaver.Append(this); }
private FuckForm() { InitializeComponent(); initialHints(); dateDays1.DateValue = DateTime.Now; _breeds = Engine.db().catalogs().getBreeds(); _manual = false; chCandidates.Checked = Engine.opt().getBoolOption(Options.OPT_ID.SHOW_CANDIDATES); chHetererosis.Checked = Engine.opt().getBoolOption(Options.OPT_ID.GETEROSIS); chInbreed.Checked = Engine.opt().getBoolOption(Options.OPT_ID.INBREEDING); _opt_malewait = Engine.opt().getIntOption(Options.OPT_ID.MALE_WAIT); _opt_makeCand = Engine.opt().getIntOption(Options.OPT_ID.MAKE_CANDIDATE); _manual = true; cs = new ListViewColumnSorter(listView1, new int[] { IND_FUCKS, IND_CHILDREN }, Options.OPT_ID.MAKE_FUCK_LIST); listView1.ListViewItemSorter = cs; FormSizeSaver.Append(this); }
public ReplaceForm() { InitializeComponent(); initialHints(); _dataSet.Columns.Add("Имя", typeof(string)); _dataSet.Columns.Add("Порода", typeof(string)); _dataSet.Columns.Add("Возраст", typeof(int)); _dataSet.Columns.Add("Пол", typeof(string)); _dataSet.Columns.Add("Количество", typeof(int)); _dataSet.Columns.Add("Старый адрес", typeof(string)); _dataSet.Columns.Add("Новый адрес", typeof(string)); //FIELD_PLACE _dataSet.Columns.Add("Статус", typeof(string)); _dataSet.Columns.Add("Гнездовье", typeof(bool)); //FIELD_NEST dataGridView1.DataSource = _dataSet; dataGridView1.Columns[FIELD_NAME].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; cbFilter.Tag = 1; cbFilter.SelectedIndex = 0; cbFilter.Tag = 0; _combineage = Engine.get().options().getIntOption(Options.OPT_ID.COMBINE_AGE); FormSizeSaver.Append(this); _manual = true; }