public BitmapInjectionForm(HaloMap.Map.Map Map, string Filename, ParsedBitmap ParsedBitm, int NumDDS) { InitializeComponent(); this.bitm = ParsedBitm; this.filename = Filename; this.map = Map; // Load the DDS info & picture loadDDSInfo(filename, this.bitm); // Get the filename variable from the path / filename combo filename = filename.Substring(filename.LastIndexOf('\\') + 1); // Populate Bitmap Injection box with number of bitmaps in current selection for (int i = 0; i < NumDDS; i++) { lbInjectionBitmap.Items.Add("Bitmap #" + i.ToString()); } #region inject_Form this.Text = "Inject " + filename + " to..."; if (lbInjectionBitmap.Items.Count > 0) { lbInjectionBitmap.SelectedIndex = 0; } #endregion }
public BitmapInjectionForm(HaloMap.Map.Map Map, string Filename, ParsedBitmap ParsedBitm, int NumDDS) { InitializeComponent(); this.bitm = ParsedBitm; this.filename = Filename; this.map = Map; // Load the DDS info & picture loadDDSInfo(filename, this.bitm); // Get the filename variable from the path / filename combo string fname = filename.Substring(filename.LastIndexOf('\\') + 1); // Populate Bitmap Injection box with number of bitmaps in current selection for (int i = 0; i < NumDDS; i++) { lbInjectionBitmap.Items.Add("Bitmap #" + i.ToString()); } #region inject_Form this.Text = "Inject " + fname + " to..."; if (lbInjectionBitmap.Items.Count > 0) { lbInjectionBitmap.SelectedIndex = 0; } #endregion }
public WinMetaEditor(MapForm sender, HaloMap.Map.Map map) { InitializeComponent(); this.map = map; this.Owner = sender; mapForm = sender; this.Text = map.filePath.Substring(map.filePath.LastIndexOf('\\') + 1).ToUpper(); }