private void BtnCreate_Click(object sender, RoutedEventArgs e) { Result result = ProjectHandler.newProject("'" + TxtName.Text.ToString() + "', '" + TxtPrefix.Text.ToString().ToUpper() + "'"); if (result.errormsg != "OK") { MessageBox.Show(result.errormsg); } else { Application.Current.Resources["ProjectPrefix"] = TxtPrefix.Text.ToString().ToUpper(); Switcher.Switch(new ProjectPage(0)); } }