Beispiel #1
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         btnOK.Command = newValue.NUDCommands.Cancel;
     }
     else
     {
         btnOK.Command = null;
     }
 }
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         btnUpdate.Command = newValue.SDRRCommands.ShowTransactionForm;
         btnback.Command   = newValue.SDRRCommands.Cancel;
     }
     else
     {
         btnUpdate.Command = null;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         EditNew_tile.Command = newValue.NUDCommands.New;
         NUDNew_tile.Command  = newValue.NUDCommands.New;
         back_tile.Command    = newValue.NUDCommands.Cancel;
     }
     else
     {
         EditNew_tile.Command = null;
         NUDNew_tile.Command  = null;
         back_tile.Command    = null;
     }
 }
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         btnback.Command        = newValue.NUDCommands.Cancel;
         btnSave.Command        = newValue.NUDCommands.New;
         btnAddInvoices.Command = newValue.NUDCommands.New;
     }
     else
     {
         btnback.Command        = null;
         btnSave.Command        = null;
         btnAddInvoices.Command = null;
     }
 }
Beispiel #5
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         SDRR_tile.Command   = newValue.SDRRCommands.MenuCotrol;
         NUD_tile.Command    = newValue.NUDCommands.MenuCotrol;
         Report_tile.Command = newValue.ReportCommands.MenuCotrol;
         appViewTile.Command = newValue.ToggleStartControl;
     }
     else
     {
         NUD_tile.Command    = null;
         SDRR_tile.Command   = null;
         Report_tile.Command = null;
         appViewTile.Command = null;
     }
 }
Beispiel #6
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         EditNew_tile.Command    = newValue.SDRRCommands.New;
         SDRRNew_tile.Command    = newValue.SDRRCommands.New;
         EditDelStattile.Command = newValue.SDRRCommands.New;
         back_tile.Command       = newValue.SDRRCommands.Cancel;
     }
     else
     {
         EditNew_tile.Command    = null;
         SDRRNew_tile.Command    = null;
         EditDelStattile.Command = null;
         back_tile.Command       = null;
     }
 }
Beispiel #7
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         invoicereg_tile.Command = newValue.ReportCommands.New;
         allsdrr_tile.Command    = newValue.ReportCommands.New;
         delstatus_tile.Command  = newValue.ReportCommands.New;
         nudreg_tile.Command     = newValue.ReportCommands.New;
         back_tile.Command       = newValue.ReportCommands.Cancel;
     }
     else
     {
         invoicereg_tile.Command = null;
         allsdrr_tile.Command    = null;
         delstatus_tile.Command  = null;
         nudreg_tile.Command     = null;
         back_tile.Command       = null;
     }
 }
Beispiel #8
0
 /// <summary>
 /// Called when Commands property has changed.
 /// </summary>
 /// <param name="oldValue">Old property value</param>
 /// <param name="newValue">New property value</param>
 protected virtual void OnCommandsChanged(MetroBillCommands oldValue, MetroBillCommands newValue)
 {
     if (newValue != null)
     {
         if (Utils.printpreview_formuse == "newSDRRtransControl")
         {
             btnSave.Command   = newValue.SDRRCommands.Save;
             btncancel.Command = newValue.SDRRCommands.Cancel;
         }
         else if (Utils.printpreview_formuse == "NewNUDtransControl")
         {
             btnSave.Command   = newValue.NUDCommands.Save;
             btncancel.Command = newValue.NUDCommands.Cancel;
         }
     }
     else
     {
         btnSave.Command   = null;
         btncancel.Command = null;
     }
 }