public ClientEditor(MuBMD.BmdFile file, bool IsGroupedMode) { InitializeComponent(); m_File = file; m_IsSaved = false; m_NeedsSaving = false; m_IsGroupedMode = IsGroupedMode; m_SaveFolderPath = Properties.Settings.Default.SaveFolder; Properties.Settings.Default.Save(); dataGridView1.RowHeadersWidth = 50; if (m_IsGroupedMode) { m_AllStructures = file.GetStructures(); object[] items = Item.GetItemsByGroupID(m_AllStructures, 0); file.BuildTable(dataGridView1, items); } else { groupbox_grouping.Visible = false; groupbox_grouping.Dock = DockStyle.None; dataGridView1.Dock = DockStyle.Fill; file.BuildTable(dataGridView1, file.GetStructures()); dataGridView1.EditMode = DataGridViewEditMode.EditOnF2; } }
void init(BmdFile File) { m_File = File; m_Items = m_File.GetStructures(); m_SaveFolderPath = Properties.Settings.Default.SaveFolder; m_IsSaved = false; m_NeedSaving = false; m_CopyboardIndex = -1; button4.Enabled = false; m_ItemCode = -1; Properties.Settings.Default.Save(); }
public ItemEditor(BmdFile File) { InitializeComponent(); init(File); }
public ItemExcellentOptionEditor(BmdFile File) { InitializeComponent(); init(File); }