public Form1(Data data, ItemChecker ItemC, StartForm startform) { serialize = new Serialize(); this.Data = data; this.Startform = startform; this.itemchecker = ItemC; this.GuiC = new GUIControl(this.itemchecker); InitializeComponent(); this.Text = data.getfilename() + " - MCItemChecker"; GuiC.UpdateListview(lvitems, itemchecker.Items); lvitems.ListViewItemSorter = GuiC.ColumnSorter; Initlvitems(); Initlvsubitems(); Initlvcalculateitems(); UpdateModPackControls(); UpdateItemTypeControls(); cbfiltertype.SelectedItem = "-"; cbsearchmodpack.SelectedItem = "-"; cbsearchtype.SelectedItem = "-"; litemid.Text = ""; litemname.Text = ""; litemtype.Text = ""; lmodpack.Text = ""; }
/// <summary> /// Checks if the mainform was saved before exit. /// </summary> public StartForm() { InitializeComponent(); serializeData = new Serialize(); if (CheckLoad() == false) { ExitApplication(); } if (data.Filepath == null) { tbpath.Text = "No file selected!"; } else { tbpath.Text = data.Filepath; } }