예제 #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);
                    }
                }
            }
        }
예제 #2
0
파일: NodeEditor.cs 프로젝트: evest/Tree
 private void tracePane_OnTraceModified(object sender, EventArgs e)
 {
     m_stv.UpdateTraces();
     m_stv.UpdateEverything(true);
     tracePane.RefreshData();
 }