} // Control of allowed input // // ------------------------------------------------------------------------------------------------------------------ // // Definition of ToolStripButtons private async void toolStripButton_Start_Click(object sender, EventArgs e) { // new instance: new frame: new instance of NewFrame NewFrame outputWin = new NewFrame(size); outputWin.Show(); // Generation of Graphics instance correlated to image in picturebox Graphics g = Graphics.FromImage(outputWin.Field.Image); //g.Clear(Color.White); // Grap parameters from dataGridview2 (they could be modified by user) MM0.GetData(dataGridView2, Para); // Random Jump by IFS await Task.Run(() => MM0.OutPut(outputWin.Field, g, rand, textBox_XShift, textBox_YShift, textBox_Scaling, size, Para, textBox_IFSName, textBox_Points, radioButton_non)); // methode running in async mode -> no freezing of desktop due to long-time calculation duration of this methode // Dispose graphic instance g.Dispose(); } // calculation of fractal structure by given parameters
}// Program-End with Exit-Button private void toolStripButton_Info_Click(object sender, EventArgs e) { NewFrame Info = new NewFrame(); Info.Show(); }