예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
 public MainForm()
 {
     addSlot = new AddSlots();
     InitializeComponent();
 }