private void EditScheme(string filename) { var editor = new FEditor(); editor.LoadXMLFile(filename); editor.ShowDialog(); loadDeviceMaps(); }
private void NewScheme() { var editor = new FEditor(); if (editor.OpenFileDialog()) { editor.ShowDialog(); } }
public FEditorItem(FEditor form) { parent = form; InitializeComponent(); dataGridView1.CellValueChanged += gridViewDataChanged; dataGridView1.MouseClick += dataGridView_MouseClick; dataGridView1.DataError += DataGridView1_DataError; dataGridView2.CellValueChanged += gridViewDataChanged; dataGridView2.CellContentClick += dataGridView2_CellContentClick; dataGridView2.MouseClick += dataGridView_MouseClick; dataGridView2.DataError += DataGridView1_DataError; }