Inheritance: Common.Controls.BaseForm
Exemplo n.º 1
0
        private void buttonLoadCurveFromLibrary_Click(object sender, EventArgs e)
        {
            CurveLibrarySelector selector = new CurveLibrarySelector();

            if (selector.ShowDialog() == DialogResult.OK && selector.SelectedItem != null)
            {
                // make a new curve that references the selected library curve, and set it to the current Curve
                Curve newCurve = new Curve(selector.SelectedItem.Item2);
                newCurve.LibraryReferenceName  = selector.SelectedItem.Item1;
                newCurve.IsCurrentLibraryCurve = false;
                Curve = newCurve;
            }
        }
Exemplo n.º 2
0
 private void curveEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var selector = new CurveLibrarySelector{DoubleClickMode = CurveLibrarySelector.Mode.Edit};
     selector.ShowDialog();
 }
Exemplo n.º 3
0
		private void buttonLoadCurveFromLibrary_Click(object sender, EventArgs e)
		{
			CurveLibrarySelector selector = new CurveLibrarySelector();
			if (selector.ShowDialog() == DialogResult.OK && selector.SelectedItem != null) {
				// make a new curve that references the selected library curve, and set it to the current Curve
				Curve newCurve = new Curve(selector.SelectedItem.Item2);
				newCurve.LibraryReferenceName = selector.SelectedItem.Item1;
				newCurve.IsCurrentLibraryCurve = false;
				Curve = newCurve;
			}
		}