Пример #1
0
 public static void Clear()
 {
     if (Popper != null)
     {
         Popper.Clear();
     }
 }
Пример #2
0
 public Reader(RpcSocket socket, Header header, Popper popper)
 {
     this.socket = socket;
     this.header = header;
     this.popper = popper;
     mS          = new MemoryStream();
     bR          = new BinaryReader(mS);
 }
Пример #3
0
 public Reader(RpcSocket socket, Header header, Popper popper)
 {
     this.socket = socket;
       this.header = header;
       this.popper = popper;
       mS = new MemoryStream();
       bR = new BinaryReader(mS);
 }
Пример #4
0
 public HomeTheater1(Popper popper, Screen screen, Projector projector, Amplifier amplifier, SoundSystem soundSystem, DVD dvd, CD cd, Tuner tuner)
 {
     _popper      = popper;
     _screen      = screen;
     _projector   = projector;
     _amplifier   = amplifier;
     _soundSystem = soundSystem;
     _dvd         = dvd;
     _cd          = cd;
     _tuner       = tuner;
 }
Пример #5
0
 protected override async Task OnAfterRenderAsync(bool firstrun)
 {
     if (firstrun)
     {
         await Popper.SetPopper();
     }
     if (IsOpen ?? false)
     {
         var placement = Placement.ToDescriptionString();
         await BlazorStrapInterop.Popper(Target, Id, Arrow, placement);
     }
 }
Пример #6
0
 protected override async Task OnAfterRenderAsync(bool firstrun)
 {
     if (firstrun)
     {
         await Popper.SetPopper();
     }
     if (Target != null)
     {
         var placement = Placement.ToDescriptionString();
         await BlazorStrapInterop.Tooltip(Target, Tooltip, Arrow, placement);
     }
 }
Пример #7
0
 public void WatchMovie()
 {
     Console.WriteLine("Get ready to watch a move:");
     Popper.On();
     Popper.Pop();
     Popper.Off();
     Lights.Dim();
     Screen.Down();
     Projector.On();
     Amp.On();
     Amp.SetDvd("Hook");
     Dvd.On();
     Dvd.Play();
 }
Пример #8
0
        static void Main(string[] args)
        {
            Amplifier   amplifier   = new Amplifier();
            CD          cd          = new CD();
            DVD         dvd         = new DVD();
            Popper      popper      = new Popper();
            Projector   projector   = new Projector();
            Screen      screen      = new Screen();
            SoundSystem soundSystem = new SoundSystem();
            Tuner       tuner       = new Tuner();
            Control     control     = new Control(new HomeTheater1(popper, screen, projector, amplifier, soundSystem, dvd, cd, tuner));

            control.TurnOnDVD();

            Console.Read();
        }
Пример #9
0
 public HomeTheaterFacade(Amp amp, Popper popper, Screen screen)
 {
     _amp    = amp;
     _popper = popper;
     _screen = screen;
 }
 public HomeTheaterFacade(Popper popper, Screen screen, CDPlayer cdPlayer)
 {
     this._popper   = popper;
     this._screen   = screen;
     this._cdPlayer = cdPlayer;
 }
Пример #11
0
 public StatusFreeze(Sprite[] sp, Popper popp, char c)
 {
     frozen_keys   = sp;
     player_popper = popp;
 }
Пример #12
0
 public StatusShock(char swap, char origin, Popper popp)
 {
     swapped            = swap;
     this.original      = origin;
     this.player_popper = popp;
 }
Пример #13
0
 public StatusBurn(Player p, Popper popp, char c)
 {
     this.p             = p;
     this.player_popper = popp;
 }