Example #1
0
 private void exportDbBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string query = EmulatorHandler.GenerateQuery(Quest);
         ExportQuery.ToDatabase(query);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Failed to generate query", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #2
0
 private void exportSqlBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string query = EmulatorHandler.GenerateQuery(this);
         ExportQuery.ToFile("Vendor" + npcTb.Text + " Item " + itemTb.Text + ".sql", query);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Failed to generate query", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void exportSqlBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string query = EmulatorHandler.GenerateQuery(Creature);
         ExportQuery.ToFile("Creature " + Creature.Entry, query);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Failed to generate query", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #4
0
 private void exportSqlBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string query = EmulatorHandler.GenerateQuery(this);
         ExportQuery.ToFile(((ComboBoxItem)lootTypeCb.SelectedValue).Content.ToString() + " Loot Template " + entryTb.Text + ".sql", query);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Failed to generate query", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }