Ejemplo n.º 1
0
        private void editTraceToolStripButton_Click(object sender, EventArgs e)
        {
            Trace o = traceListBox.SelectedItem as Trace;

            if (o != null)
            {
                using (LineDialog ld = new LineDialog())
                {
                    ld.Style      = o.penstyle;
                    ld.TraceStyle = o.tracestyle;
                    ld.ShapeMode  = LineDialog.LineDialogMode.Trace;

                    if (ld.ShowDialog(this) == DialogResult.OK)
                    {
                        stv.UndoAdd();
                        o.penstyle   = ld.Style;
                        o.tracestyle = ld.TraceStyle;
                        stv.UpdateTraces();
                        stv.UpdateEverything(true);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private void tracePane_OnTraceModified(object sender, EventArgs e)
 {
     m_stv.UpdateTraces();
     m_stv.UpdateEverything(true);
     tracePane.RefreshData();
 }