private void mnuOpenXaml_Click(object sender, RoutedEventArgs e) { try { var dlg = new System.Windows.Forms.OpenFileDialog(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { IO.Stream fstream = dlg.OpenFile(); var cv = (Canvas)markup.XamlReader.Load(fstream); cv.Name = ShapeFactory.MakeCtrlId(); mainCanvas.Children.Add(cv); } } catch (Exception ex) { log.Log(mko.Log.RC.CreateError(ex.Message)); } }
private void btnDrawKnick_Click(object sender, RoutedEventArgs e) { factory = new KnickFactory(); log.Log(mko.Log.RC.CreateStatus("Knick erzeugen")); }
private void btnDrawLine_Click(object sender, RoutedEventArgs e) { factory = new LinienFactory(); log.Log(mko.Log.RC.CreateStatus("Linie erzeugen")); }