public TownMapDisplay(TownMapTable Table) { InitializeComponent(); this.Table = Table; UpdateFields(); }
public TownMapDisplay(TownMapTable Table, string imagepath) { InitializeComponent(); this.Table = Table; this.TownMapImagePath = imagepath; UpdateFields(); }
public static int Execute( List<string> args ) { string Path = @"../../0.bin"; TownMapTable t = new TownMapTable( Path ); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault( false ); Application.Run( new TownMapDisplay( t ) ); return 0; }
public static int Execute(List <string> args) { if (args.Count != 2) { System.Windows.Forms.MessageBox.Show("Requires 2 arguments: scenario_0.bin folder_with_U_MAP_images"); return(-1); } string scenario0path = args[0]; string imagepath = args[1]; TownMapTable t = new TownMapTable(scenario0path); new TownMapDisplay(t, imagepath).Show(); return(0); }
public static int Execute(List <string> args) { if (args.Count != 2) { Console.WriteLine("Usage: TownMapViewer scenario_0.bin folder_with_U_MAP_images"); return(-1); } string scenario0path = args[0]; string imagepath = args[1]; TownMapTable t = new TownMapTable(scenario0path); new TownMapDisplay(t, imagepath).Show(); return(0); }
public static int Execute(List <string> args) { if (args.Count != 2) { Console.WriteLine("Usage: TownMapViewer scenario_0.bin folder_with_U_MAP_images"); return(-1); } string scenario0path = args[0]; string imagepath = args[1]; TownMapTable t = new TownMapTable(scenario0path); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new TownMapDisplay(t, imagepath)); return(0); }
private void button1_Click(object sender, EventArgs e) { Table = new TownMapTable(Table.Filepath); UpdateFields(); }
private void button1_Click(object sender, EventArgs e) { Table = new TownMapTable( Table.Filepath ); UpdateFields(); }