Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 private void btnDrawKnick_Click(object sender, RoutedEventArgs e)
 {
     factory = new KnickFactory();
     log.Log(mko.Log.RC.CreateStatus("Knick erzeugen"));
 }
Ejemplo n.º 3
0
 private void btnDrawLine_Click(object sender, RoutedEventArgs e)
 {
     factory = new LinienFactory();
     log.Log(mko.Log.RC.CreateStatus("Linie erzeugen"));
 }