Beispiel #1
0
 public override void InitBindings()
 {
     ChooseFancyButton.SetOnClickCommand(ViewModel.AskUserAboutFancyThingsCommand);
     ShowFancyButton.SetOnClickCommand(ViewModel.ShowLastFanciedThingCommand);
     ResetButton.SetOnClickCommand(ViewModel.ResetFanciness);
     NavigateButton.SetOnClickCommand(ViewModel.NavigateSomewhereElseCommand);
     ShowDialogButton.SetOnClickCommand(ViewModel.ShowDialogCommand);
     ShowDifferentDialogButton.SetOnClickCommand(ViewModel.ShowDialogBCommand);
 }
        void ReleaseDesignerOutlets()
        {
            if (ChooseFancyButton != null)
            {
                ChooseFancyButton.Dispose();
                ChooseFancyButton = null;
            }

            if (NavigateButton != null)
            {
                NavigateButton.Dispose();
                NavigateButton = null;
            }

            if (ResetButton != null)
            {
                ResetButton.Dispose();
                ResetButton = null;
            }

            if (ShowDialogButton != null)
            {
                ShowDialogButton.Dispose();
                ShowDialogButton = null;
            }

            if (ShowDifferentDialogButton != null)
            {
                ShowDifferentDialogButton.Dispose();
                ShowDifferentDialogButton = null;
            }

            if (ShowFancyButton != null)
            {
                ShowFancyButton.Dispose();
                ShowFancyButton = null;
            }
        }