private void btnGenerate_Click(object sender, RoutedEventArgs e) { try { ClassParameters obj = GetCodeGeneratorParameters(); if (obj == null) return; ResultWindow win = new ResultWindow(Proxy.BuildClass(obj).ToString()); win.Show(); ResultWindows.Add(win); } catch (Exception ex) { Error(ex); } }
private void btnGenerateGridViewColumns_Click(object sender, RoutedEventArgs e) { try { ClassParameters obj = CommonValidation(); if (obj == null) return; ResultWindow win = new ResultWindow(Proxy.BuildGridViewColumns(obj).ToString()); win.Show(); ResultWindows.Add(win); } catch (Exception ex) { Error(ex); } }