Button CreateAdvancedOptions() { var advanced = new Button(_("Advanced Options...")); advanced.Clicked += delegate { var seed = Variables.GetClone <UInt32>("seed"); var randomSeed = Variables.GetClone <bool>("random_seed"); var advancedDialog = new AdvancedDialog(seed, randomSeed); advancedDialog.ShowAll(); if (advancedDialog.Run() == ResponseType.Ok) { seed.Commit(); randomSeed.Commit(); } advancedDialog.Destroy(); }; return(advanced); }
Button CreateAdvancedOptions() { var advanced = new Button(_("Advanced Options...")); advanced.Clicked += delegate { var seed = Variables.GetClone<UInt32>("seed"); var randomSeed = Variables.GetClone<bool>("random_seed"); var advancedDialog = new AdvancedDialog(seed, randomSeed); advancedDialog.ShowAll(); if (advancedDialog.Run() == ResponseType.Ok) { seed.Commit(); randomSeed.Commit(); } advancedDialog.Destroy(); }; return advanced; }