예제 #1
0
        private void EditScheme(string filename)
        {
            var editor = new FEditor();

            editor.LoadXMLFile(filename);
            editor.ShowDialog();
            loadDeviceMaps();
        }
예제 #2
0
        private void NewScheme()
        {
            var editor = new FEditor();

            if (editor.OpenFileDialog())
            {
                editor.ShowDialog();
            }
        }
예제 #3
0
 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;
 }