Exemplo n.º 1
0
        private void DataEditButton_Cliked(int currentId)
        {
            switch (this.tbdropdShowSettings.Text)
            {
            case "Dopants":
                CreateOrEditDopand EditDopantForm = new CreateOrEditDopand(currentId);

                if (EditDopantForm.ShowDialog() == DialogResult.OK)
                {
                    FillDataGridView(null, null);
                }
                break;

            case "Matrixes":
                CreateOrEditMatrix EditMatrixForm = new CreateOrEditMatrix(currentId);

                if (EditMatrixForm.ShowDialog() == DialogResult.OK)
                {
                    FillDataGridView(null, null);
                }
                break;

            case "Compuonds":
                // TODO: Realise compound editing
                break;

            default:
                DialogsManager.ShowError("Wrong settings where to search and what to display is setted");
                break;
            }
        }
Exemplo n.º 2
0
        private void CreateMatrix(object sender, EventArgs e)
        {
            CreateOrEditMatrix AddNewMatrixForm = new CreateOrEditMatrix(0);

            if (AddNewMatrixForm.ShowDialog() == DialogResult.OK)
            {
                FillDataGridView(null, null);
            }
        }