private void btnGenerateGraphic_Click(object sender, EventArgs e) { if (StructureExcel.MaxAge != 0) { CreateOutputFormat createOutputFormat = new CreateOutputFormat(); createOutputFormat.createOutput(); Graphics grafic = new Graphics(); grafic.ShowDialog(); } else { MessageBox.Show("Incarcati intai un fisier", "Atentionare", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void btnGenerateTable_Click(object sender, EventArgs e) { if (StructureExcel.MaxAge != 0) { CreateOutputFormat createOutputFormat = new CreateOutputFormat(); createOutputFormat.createOutput(); Tabela tabela = new Tabela(); tabela.ShowDialog(); } else { MessageBox.Show("Incarcati intai un fisier", "Atentionare", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void btnGenerateTable_Click(object sender, EventArgs e) { if (StructureExcel.MaxAge != 0) { mainPanel.Controls.Clear(); CreateOutputFormat createOutputFormat = new CreateOutputFormat(); createOutputFormat.createOutput(); Tabela tabela = new Tabela(); tabela.Show(); // CreateOutputFormat createOutputFormat = new CreateOutputFormat(); // createOutputFormat.createOutput(); // Tabela tabela = new Tabela(mainPanel.Width, mainPanel.Height, mainPanel.Location); // mainPanel.Controls.Clear(); // tabela.TopLevel = false; // tabela.AutoScroll = true; // tabela.FormBorderStyle = FormBorderStyle.None; // mainPanel.Controls.Add(tabela); // tabela.Show(); } else { MessageBox.Show("Incarcati intai un fisier", "Atentionare", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void btnGenerateGraphic_Click(object sender, EventArgs e) { if (StructureExcel.MaxAge != 0) { mainPanel.Controls.Clear(); CreateOutputFormat createOutputFormat = new CreateOutputFormat(); createOutputFormat.createOutput(); Graphics grafic = new Graphics(); grafic.Show(); //CreateOutputFormat createOutputFormat = new CreateOutputFormat(); //createOutputFormat.createOutput(); //Graphics grafic = new Graphics(); //mainPanel.Controls.Clear(); //grafic.TopLevel = false; //grafic.AutoScroll = true; //grafic.FormBorderStyle = FormBorderStyle.None; //mainPanel.Controls.Add(grafic); //grafic.Show(); } else { MessageBox.Show("Incarcati intai un fisier", "Atentionare", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }