private void InitializeActions(DataGridTableStyle ts) { DataTable actions = new DataTable(); actions.Columns.Add(new DataColumn("value", typeof(string))); actions.Columns.Add(new DataColumn("description", typeof(string))); actions.Rows.Add(new object[] { "3", "Aim at" }); actions.Rows.Add(new object[] { "10", "Airstrike Cannister" }); actions.Rows.Add(new object[] { "11", "Artillery Hint" }); actions.Rows.Add(new object[] { "29", "Button" }); actions.Rows.Add(new object[] { "0", "Camp" }); actions.Rows.Add(new object[] { "16", "Camp Engineer" }); actions.Rows.Add(new object[] { "18", "Camp MG42" }); actions.Rows.Add(new object[] { "28", "Camp Mobile MG42" }); actions.Rows.Add(new object[] { "22", "Command Post" }); actions.Rows.Add(new object[] { "19", "Construct Major" }); actions.Rows.Add(new object[] { "32", "Construct Major Plant" }); actions.Rows.Add(new object[] { "2", "Construct Minor" }); actions.Rows.Add(new object[] { "9", "Defend" }); actions.Rows.Add(new object[] { "5", "Defuse" }); actions.Rows.Add(new object[] { "7", "Deliver" }); actions.Rows.Add(new object[] { "4", "Dynamite" }); actions.Rows.Add(new object[] { "33", "Expire" }); actions.Rows.Add(new object[] { "34", "Explode" }); actions.Rows.Add(new object[] { "15", "Grenade Hint" }); actions.Rows.Add(new object[] { "1", "MG42" }); actions.Rows.Add(new object[] { "25", "Mine Hunt" }); actions.Rows.Add(new object[] { "24", "Mine Plant" }); actions.Rows.Add(new object[] { "-1", "None" }); actions.Rows.Add(new object[] { "14", "Panzer" }); actions.Rows.Add(new object[] { "12", "Roam" }); actions.Rows.Add(new object[] { "17", "Roam Alternate" }); actions.Rows.Add(new object[] { "27", "Satchel" }); actions.Rows.Add(new object[] { "23", "Smoke Cannister Hint" }); actions.Rows.Add(new object[] { "13", "Snipe" }); actions.Rows.Add(new object[] { "6", "Spawn Flag" }); actions.Rows.Add(new object[] { "8", "Steal" }); actions.Rows.Add(new object[] { "26", "Subversion" }); actions.Rows.Add(new object[] { "20", "Tank" }); actions.Rows.Add(new object[] { "21", "Train" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("AllyAction", actions, "description", "value", dgActions); DataGridComboBoxColumn c2 = new DataGridComboBoxColumn("AxisAction", actions, "description", "value", dgActions); ts.GridColumnStyles.Add(c1); ts.GridColumnStyles.Add(c2); }
private void InitializeClasses(DataGridTableStyle ts) { DataTable classes = new DataTable(); classes.Columns.Add(new DataColumn("bitvalue", typeof(string))); classes.Columns.Add(new DataColumn("description", typeof(string))); classes.Rows.Add(new object[] { "0", "Everyone" }); classes.Rows.Add(new object[] { "16", "Coverts" }); classes.Rows.Add(new object[] { "17", "Coverts and Soldiers" }); classes.Rows.Add(new object[] { "18", "Coverts and Medics" }); classes.Rows.Add(new object[] { "19", "Coverts, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "20", "Coverts and Engineers" }); classes.Rows.Add(new object[] { "21", "Coverts, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "22", "Coverts, Engineers and Medics" }); classes.Rows.Add(new object[] { "23", "Coverts, Engineers, Medics and Soldiers" }); classes.Rows.Add(new object[] { "24", "Coverts and Field Ops" }); classes.Rows.Add(new object[] { "25", "Coverts, Field Ops, and Soldiers" }); classes.Rows.Add(new object[] { "26", "Coverts, Field Ops, and Medics" }); classes.Rows.Add(new object[] { "27", "Coverts, Field Ops, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "28", "Coverts, Field Ops, and Engineers" }); classes.Rows.Add(new object[] { "29", "Coverts, Field Ops, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "30", "Coverts, Field Ops, Engineers, and Medics" }); classes.Rows.Add(new object[] { "4", "Engineers" }); classes.Rows.Add(new object[] { "8", "Field Ops" }); classes.Rows.Add(new object[] { "12", "Field Ops and Engineers" }); classes.Rows.Add(new object[] { "10", "Field Ops and Medics" }); classes.Rows.Add(new object[] { "9", "Field Ops and Soldiers" }); classes.Rows.Add(new object[] { "13", "Field Ops, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "11", "Field Ops, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "14", "Field Ops, Medics, and Engineers" }); classes.Rows.Add(new object[] { "15", "Field Ops, Medics, Soldiers, and Engineers" }); classes.Rows.Add(new object[] { "2", "Medics" }); classes.Rows.Add(new object[] { "6", "Medics and Engineers" }); classes.Rows.Add(new object[] { "7", "Medics, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "1", "Soldiers" }); classes.Rows.Add(new object[] { "3", "Soldiers and Medics" }); classes.Rows.Add(new object[] { "5", "Soldiers and Engineers" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Class", classes, "description", "bitvalue", dgActions); ts.GridColumnStyles.Add(c1); }
//give a friendly name for active (just blank for not active) -crapshoot private void InitializeActiveState(DataGridTableStyle ts) { DataTable activeState = new DataTable(); activeState.Columns.Add(new DataColumn("bitvalue", typeof(string))); activeState.Columns.Add(new DataColumn("description", typeof(string))); activeState.Rows.Add(new object[] { "0", " " }); activeState.Rows.Add(new object[] { "1", "Active" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Active", activeState, "description", "bitvalue", dgActions); ts.GridColumnStyles.Add(c1); }
private void InitializeTeam(DataGridTableStyle ts) { DataTable teams = new DataTable(); teams.Columns.Add(new DataColumn("value", typeof(string))); teams.Columns.Add(new DataColumn("description", typeof(string))); teams.Rows.Add(new object[] { "2", "Allies" }); teams.Rows.Add(new object[] { "1", "Axis" }); teams.Rows.Add(new object[] { "0", "Both" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Team", teams, "description", "value", dgRoutes); ts.GridColumnStyles.Add(c1); }
private void InitializeFlags(DataGridTableStyle ts) { DataTable flags = new DataTable(); flags.Columns.Add(new DataColumn("value", typeof(string))); flags.Columns.Add(new DataColumn("description", typeof(string))); flags.Rows.Add(new object[] { "4", "Button" }); flags.Rows.Add(new object[] { "7", "Constructable" }); flags.Rows.Add(new object[] { "3", "Flag" }); flags.Rows.Add(new object[] { "-1", "Invalid" }); flags.Rows.Add(new object[] { "5", "Jump" }); flags.Rows.Add(new object[] { "2", "Ladder Bottom" }); flags.Rows.Add(new object[] { "1", "Ladder Top" }); flags.Rows.Add(new object[] { "6", "Leap" }); flags.Rows.Add(new object[] { "0", "Normal" }); flags.Rows.Add(new object[] { "9", "Walk" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Flag", flags, "description", "value", dgNodes); ts.GridColumnStyles.Add(c1); }
private void InitializeTeam(DataGridTableStyle ts) { DataTable teams = new DataTable(); teams.Columns.Add(new DataColumn("value", typeof(string))); teams.Columns.Add(new DataColumn("description", typeof(string))); teams.Rows.Add(new object[] { "2", "Allies" }); teams.Rows.Add(new object[] { "1", "Axis" }); teams.Rows.Add(new object[] { "0", "Both" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Team", teams, "description", "value", dgNodes); ts.GridColumnStyles.Add(c1); }
private void InitializeFlags(DataGridTableStyle ts) { DataTable flags = new DataTable(); flags.Columns.Add(new DataColumn("value", typeof(string))); flags.Columns.Add(new DataColumn("description", typeof(string))); flags.Rows.Add(new object[] { "4", "Button" }); flags.Rows.Add(new object[] { "7", "Constructable" }); flags.Rows.Add(new object[] { "3", "Flag" }); flags.Rows.Add(new object[] { "-1", "Invalid" }); flags.Rows.Add(new object[] { "5", "Jump" }); flags.Rows.Add(new object[] { "2", "Ladder Bottom" }); flags.Rows.Add(new object[] { "1", "Ladder Top" }); flags.Rows.Add(new object[] { "6", "Leap" }); flags.Rows.Add(new object[] { "0", "Normal" }); flags.Rows.Add(new object[] { "9", "Walk" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Flag", flags, "description", "value", dgNodes); ts.GridColumnStyles.Add(c1); }
private void InitializeClasses(DataGridTableStyle ts) { DataTable classes = new DataTable(); classes.Columns.Add(new DataColumn("bitvalue", typeof(string))); classes.Columns.Add(new DataColumn("description", typeof(string))); classes.Rows.Add(new object[] { "0", "Everyone" }); classes.Rows.Add(new object[] { "16", "Coverts" }); classes.Rows.Add(new object[] { "17", "Coverts and Soldiers" }); classes.Rows.Add(new object[] { "18", "Coverts and Medics" }); classes.Rows.Add(new object[] { "19", "Coverts, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "20", "Coverts and Engineers" }); classes.Rows.Add(new object[] { "21", "Coverts, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "22", "Coverts, Engineers and Medics" }); classes.Rows.Add(new object[] { "23", "Coverts, Engineers, Medics and Soldiers" }); classes.Rows.Add(new object[] { "24", "Coverts and Field Ops" }); classes.Rows.Add(new object[] { "25", "Coverts, Field Ops, and Soldiers" }); classes.Rows.Add(new object[] { "26", "Coverts, Field Ops, and Medics" }); classes.Rows.Add(new object[] { "27", "Coverts, Field Ops, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "28", "Coverts, Field Ops, and Engineers" }); classes.Rows.Add(new object[] { "29", "Coverts, Field Ops, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "30", "Coverts, Field Ops, Engineers, and Medics" }); classes.Rows.Add(new object[] { "4", "Engineers" }); classes.Rows.Add(new object[] { "8", "Field Ops" }); classes.Rows.Add(new object[] { "12", "Field Ops and Engineers" }); classes.Rows.Add(new object[] { "10", "Field Ops and Medics" }); classes.Rows.Add(new object[] { "9", "Field Ops and Soldiers" }); classes.Rows.Add(new object[] { "13", "Field Ops, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "11", "Field Ops, Medics, and Soldiers" }); classes.Rows.Add(new object[] { "14", "Field Ops, Medics, and Engineers" }); classes.Rows.Add(new object[] { "15", "Field Ops, Medics, Soldiers, and Engineers" }); classes.Rows.Add(new object[] { "2", "Medics" }); classes.Rows.Add(new object[] { "6", "Medics and Engineers" }); classes.Rows.Add(new object[] { "7", "Medics, Engineers, and Soldiers" }); classes.Rows.Add(new object[] { "1", "Soldiers" }); classes.Rows.Add(new object[] { "3", "Soldiers and Medics" }); classes.Rows.Add(new object[] { "5", "Soldiers and Engineers" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Class", classes, "description", "bitvalue", dgActions); ts.GridColumnStyles.Add(c1); }
private void InitializeActions(DataGridTableStyle ts) { DataTable actions = new DataTable(); actions.Columns.Add(new DataColumn("value", typeof(string))); actions.Columns.Add(new DataColumn("description", typeof(string))); actions.Rows.Add(new object[] { "3", "Aim at" }); actions.Rows.Add(new object[] { "10", "Airstrike Cannister" }); actions.Rows.Add(new object[] { "11", "Artillery Hint" }); actions.Rows.Add(new object[] { "29", "Button" }); actions.Rows.Add(new object[] { "0", "Camp" }); actions.Rows.Add(new object[] { "16", "Camp Engineer" }); actions.Rows.Add(new object[] { "18", "Camp MG42" }); actions.Rows.Add(new object[] { "28", "Camp Mobile MG42" }); actions.Rows.Add(new object[] { "22", "Command Post" }); actions.Rows.Add(new object[] { "19", "Construct Major" }); actions.Rows.Add(new object[] { "32", "Construct Major Plant" }); actions.Rows.Add(new object[] { "2", "Construct Minor" }); actions.Rows.Add(new object[] { "9", "Defend" }); actions.Rows.Add(new object[] { "5", "Defuse" }); actions.Rows.Add(new object[] { "7", "Deliver" }); actions.Rows.Add(new object[] { "4", "Dynamite" }); actions.Rows.Add(new object[] { "33", "Expire" }); actions.Rows.Add(new object[] { "34", "Explode" }); actions.Rows.Add(new object[] { "15", "Grenade Hint" }); actions.Rows.Add(new object[] { "1", "MG42" }); actions.Rows.Add(new object[] { "25", "Mine Hunt" }); actions.Rows.Add(new object[] { "24", "Mine Plant" }); actions.Rows.Add(new object[] { "-1", "None" }); actions.Rows.Add(new object[] { "14", "Panzer" }); actions.Rows.Add(new object[] { "12", "Roam" }); actions.Rows.Add(new object[] { "17", "Roam Alternate" }); actions.Rows.Add(new object[] { "27", "Satchel" }); actions.Rows.Add(new object[] { "23", "Smoke Cannister Hint" }); actions.Rows.Add(new object[] { "13", "Snipe" }); actions.Rows.Add(new object[] { "6", "Spawn Flag" }); actions.Rows.Add(new object[] { "8", "Steal" }); actions.Rows.Add(new object[] { "26", "Subversion" }); actions.Rows.Add(new object[] { "20", "Tank" }); actions.Rows.Add(new object[] { "21", "Train" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("AllyAction", actions, "description", "value", dgActions); DataGridComboBoxColumn c2 = new DataGridComboBoxColumn("AxisAction", actions, "description", "value", dgActions); ts.GridColumnStyles.Add(c1); ts.GridColumnStyles.Add(c2); }
//give a friendly name for prone (just blank not prone) -crapshoot private void InitializeProneState(DataGridTableStyle ts) { DataTable proneState = new DataTable(); proneState.Columns.Add(new DataColumn("bitvalue", typeof(string))); proneState.Columns.Add(new DataColumn("description", typeof(string))); proneState.Rows.Add(new object[] { "0", " " }); proneState.Rows.Add(new object[] { "1", "Prone" }); DataGridComboBoxColumn c1 = new DataGridComboBoxColumn("Prone", proneState, "description", "bitvalue", dgActions); ts.GridColumnStyles.Add(c1); }