示例#1
0
        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);
        }
示例#2
0
        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;
        }