Example #1
0
		public LibraryForm(GraphControl graph, MainForm main) {
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			this.graph = graph;
			this.main = main;
			errForm = new ErrorsForm(graph);
		}
Example #2
0
		public SourceForm(GraphControl graph, FunctionItem old, MainForm mainform)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			this.graph = graph;
			parForm = new ParForm();
			paritem = new FunctionItem();
			oldItem = old;
			this.mainform = mainform;
			lineStyle.DropDownStyle = ComboBoxStyle.DropDownList;
			for (DashStyle s = DashStyle.Solid; s < DashStyle.Custom; s++) {
				lineStyle.Items.Add(s.ToString());
			}
			lineStyle.SelectedIndex = 0;
		}
Example #3
0
		static void Main(string[] args) {
			MainForm form = new MainForm();
			if (args.Length > 0 && form.graph.LoadFromFile(args[0])) {
				form.Text = Title + System.IO.Path.GetFileNameWithoutExtension(args[0]);
				form.ResetMenu();
			}
			Application.Run(form);
		}
Example #4
0
			public EditMenuItem(MainForm form, PlotItem item) {
				this.item = item;
				this.Click += new EventHandler(form.EditClick);
			}