//public OptionForm() //{ // InitializeComponent(); //} public OptionForm(MainForm parent, string sel) { InitializeComponent(); cubeView = parent.cubeView; shortcuts = parent.shortcuts; treeView.SelectedNode = GetNode(treeView.Nodes, sel); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //if (Net4Installed()) //{ // MessageBox.Show("please download .net frameword 4", // "", // MessageBoxButtons.OK, // MessageBoxIcon.Exclamation); // return; //} flashForm = new FlashForm(); flashForm.Show(); MainForm mf = new MainForm(); mf.OnLoaded += new MainForm.LoadedEvent(MainForm_Loaded); Application.Run(mf); }