private void addButton_Click(object sender, EventArgs e) { string result = addSlot.AddSlotsToFile(addSlot.gameSaves[saveComboBox.SelectedIndex], addComboBox.SelectedIndex + 1); saveComboBox.Items.Clear(); saveComboBox.ResetText(); farmBox.Clear(); farmerBox.Clear(); slotBox.Clear(); addSlot = new AddSlots(); MessageBox.Show(result, "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information); }
public void CreateTimestampTest() { StardewValleyExtraSlots.AddSlots addSlot = new StardewValleyExtraSlots.AddSlots(); List <string> timestamp = new List <string>(); for (int i = 0; i < 10; i++) { Int64 testNum = addSlot.CreateTimestamp(); Debug.WriteLine(testNum.ToString()); timestamp.Add(testNum.ToString()); } foreach (string ts in timestamp) { Assert.AreEqual(18, ts.Length); } }
private void find_Click(object sender, EventArgs e) { saveComboBox.Items.Clear(); saveComboBox.ResetText(); addSlot = new AddSlots(); string cid = addSlot.GenerateCabinNameID(); string mpid = addSlot.GenerateUniqueMultiplayerID(); addSlot.ReadTitleName(); foreach (GameSave g in addSlot.gameSaves) { saveComboBox.Items.Add(g.saveFile); } addComboBox.SelectedIndex = 0; saveComboBox.SelectedIndex = 0; farmBox.Text = addSlot.gameSaves[0].farmName; farmerBox.Text = addSlot.gameSaves[0].playerName; slotBox.Text = addSlot.gameSaves[0].cabinNum.ToString(); }
public MainForm() { addSlot = new AddSlots(); InitializeComponent(); }