//*************************************************************************
    //  Constructor: RunNoParamCommandEventArgs()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="RunNoParamCommandEventArgs" /> class.
    /// </summary>
    ///
    /// <param name="noParamCommand">
    /// The no-parameter command that needs to be run.
    /// </param>
    //*************************************************************************

    public RunNoParamCommandEventArgs
    (
        NoParamCommand noParamCommand
    )
    {
        m_eNoParamCommand = noParamCommand;

        AssertValid();
    }
        //*************************************************************************
        //  Constructor: RunNoParamCommandEventArgs()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="RunNoParamCommandEventArgs" /> class.
        /// </summary>
        ///
        /// <param name="noParamCommand">
        /// The no-parameter command that needs to be run.
        /// </param>
        //*************************************************************************

        public RunNoParamCommandEventArgs
        (
            NoParamCommand noParamCommand
        )
        {
            m_eNoParamCommand = noParamCommand;

            AssertValid();
        }
        public MainSplitted_ViewModel()
        {
            cmdCloseFlyOut    = new NoParamCommand(CloseFlyOut);
            cmdSaveToGallery  = new NoParamCommandAsync(SaveToGallery);
            cmdDismissEntry   = new ParamCommand <Data.Data1>(DismissEntryAsync);
            cmdEnlargePicture = new NoParamCommand(EnlargePicture);

            Reddit_Entries = Task.Run(() => _model.LoadEntriesAsync(Services.SuspensionManager.PointerTo_ListOfEntries)).Result; //FF: Cant and doesnt need to be awaited as the UI will be notified when the IObservableCollection is filled
            SelectedEntry  = Services.SuspensionManager.PointerTo_SelectedEntry;
        }
        SendNoParamCommand
        (
            Object sender,
            NoParamCommand noParamCommand
        )
        {
            Debug.Assert(sender != null);

            SendCommand(sender, new RunNoParamCommandEventArgs(noParamCommand));
        }
    SendNoParamCommand
    (
        Object sender,
        NoParamCommand noParamCommand
    )
    {
        Debug.Assert(sender != null);

        SendCommand( sender, new RunNoParamCommandEventArgs(noParamCommand) );
    }
Beispiel #6
0
    SendNoParamCommand
    (
        NoParamCommand eNoParamCommand
    )
    {
        AssertValid();

        CommandDispatcher.SendNoParamCommand(this, eNoParamCommand);
    }