| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- namespace ShwasherSys.Models.Modal
- {
-
- public class ModalViewModel1
- {
- public ModalViewModel1(string header, string modalId = "modal", int footer = 0,string sizeClass="lg", int? width = null)
- {
- Header = new ModalHeaderViewModel(header);
- Footer = footer+"";
- ModalId = modalId;
- Width = width;
- SizeClass = sizeClass;
- }
-
- public ModalViewModel1(string header1, string header2, string modalId = "modal", int footer = 0,string sizeClass="lg", int? width = null)
- {
- Header = new ModalHeaderViewModel(header1, header2);
- Footer = footer+"";
- ModalId = modalId;
- Width = width;
- SizeClass = sizeClass;
- }
- public ModalViewModel1(string header, ModalBodyViewModel body, string modalId = "modal", string footer = "0",string sizeClass="lg", int? width = null)
- {
- Header = new ModalHeaderViewModel(header);
- Body = body;
- Body.ModalId = modalId;
- Footer = footer;
- ModalId = modalId;
- Width = width;
- SizeClass = sizeClass;
- }
-
- public ModalViewModel1(string header1, string header2, ModalBodyViewModel body, string modalId = "modal", int footer = 0,string sizeClass="lg", int? width = null)
- {
- Header = new ModalHeaderViewModel(header1, header2);
- Body = body;
- if (body != null)
- {
- Body.ModalId = modalId;
- }
- Footer = footer+"";
- ModalId = modalId;
- Width = width;
- SizeClass = sizeClass;
- }
- public ModalViewModel1(ModalHeaderViewModel header, ModalBodyViewModel body, string modalId = "modal", int footer = 0,string sizeClass="lg", int? width = null)
- {
- Header = header;
- Body = body;
- Body.ModalId = modalId;
- Footer = footer+"";
- ModalId = modalId;
- Width = width;
- SizeClass = sizeClass;
- }
- public ModalHeaderViewModel Header { get; set; }
- public ModalBodyViewModel Body { get; set; }
- public string Footer { get; set; }
- public string ModalId { get; set; }
- public int? Width { get; set; }
- public string SizeClass { get; set; }
- public ModalViewModel1 SetModalSize( string sizeClass)
- {
- SizeClass = sizeClass;
- return this;
- }
- public ModalViewModel1 SetModalSize( int width)
- {
- Width = width;
- return this;
- }
- }
- }
|