Esempio n. 1
0
 private void buttonJoin_Click(object sender, EventArgs e)
 {
     try
     {
         SplitJoin.JoinMap(textBoxMapJoinPath.Text);
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
 private void buttonSplit_Click(object sender, EventArgs e)
 {
     try
     {
         string path      = textBoxMapSplitPath.Text;
         bool   encrypted = path.ToLowerInvariant().EndsWith("mape");
         Map    map       = new Map(path, encrypted);
         SplitJoin.SplitMap(map, (int)numericUpDownSplit.Value, encrypted, Path.GetDirectoryName(path), checkBoxSaveImages.Checked);
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }