private void Button_Click(object sender, RoutedEventArgs e)
{
    try
    {
        using (WFR2025.WfrControl wfrCtrl = new WFR2025.WfrControl())
        {
            wfrCtrl.Open(@"d:\test\sample.wfr");
            wfrCtrl.Import("#1", WFR2025.IT.CSV, @"d:\test\sample.csv");
            wfrCtrl.Create();
            wfrCtrl.Save(WFR2025.ST.WFI, @"c:\out\sample.wfi");
        }
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message, "ERROR");
    }
}