public void AddedToContainer(NotifyBarContainer container)
		{
			container.btnDetail.Enabled = false;
			container.btnDetail.Text = "SinglePlayer";
		    container.Title = "Loading a single player mission";
            container.TitleTooltip = "Please await resource download";
		}
예제 #2
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
     container.btnDetail.Enabled = true;
     container.btnDetail.Text    = "Restart";
     container.Title             = "New version";
 }
예제 #3
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "SinglePlayer";
     container.Title             = "Loading a single player mission";
     container.TitleTooltip      = "Please await resource download";
 }
예제 #4
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnStop.Enabled = true;
     Program.ToolTip.SetText(container.btnStop, "Hide bar temporarily");
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "Scan";
     this.container = container;
 }
예제 #5
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     barContainer = container;
     container.btnDetail.Image = ZklResources.battle;
     container.btnDetail.Text  = "Start";
     Program.ToolTip.SetText(container.btnDetail, "Start battle");
     Program.ToolTip.SetText(container.btnStop, "Quit battle");
 }
예제 #6
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.BackgroundImageLayout = ImageLayout.Center;
     container.btnDetail.BackgroundImage       = ZklResources.WebDown;
     container.btnDetail.Enabled = false;
     container.Title             = string.Format("Downloading {0}", Download.Name);
     container.TitleTooltip      = "If download failes you can try closing this bar and rejoining a battle room";
 }
예제 #7
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "Vote";
     container.Title             = "Battle poll";
     container.TitleTooltip      = "Vote using buttons on the left side";
 }
예제 #8
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "PlanetWars";
     container.btnStop.Enabled   = false;
     container.btnStop.Visible   = false;
     //container.btnDetail.Visible = false;
 }
예제 #9
0
        public void CloseClicked(NotifyBarContainer container)
        {
            var args = new CancelEventArgs();

            CloseButtonClicked(this, args);
            if (!args.Cancel)
            {
                Program.NotifySection.RemoveBar(this);
            }
        }
예제 #10
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnStop.Enabled = true;
     Program.ToolTip.SetText(container.btnStop, "Hide bar temporarily");
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "Scan";
     this.container         = container;
     container.Title        = "Scanning local game content";
     container.TitleTooltip = "Please wait until local files are verified";
 }
예제 #11
0
		public void AddedToContainer(NotifyBarContainer container)
		{
			container.btnStop.Enabled = true;
            Program.ToolTip.SetText(container.btnStop, "Hide bar temporarily");
			container.btnDetail.Enabled = false;
			container.btnDetail.Text = "Scan";
			this.container = container;
            container.Title = "Scanning local game content";
            container.TitleTooltip = "Please wait until local files are verified"; 
		}
예제 #12
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     barContainer = container;
     container.btnDetail.Image = ZklResources.battle;
     container.btnDetail.Text  = "Start";
     Program.ToolTip.SetText(container.btnDetail, "Start battle");
     Program.ToolTip.SetText(container.btnStop, "Quit battle");
     container.Title        = "Joined Battle Room";
     container.TitleTooltip = "Use button on the left side to start a game";
 }
예제 #13
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "PlanetWars";
     container.btnStop.Enabled   = false;
     container.btnStop.Visible   = false;
     //container.btnDetail.Visible = false;
     container.Title        = "PlanetWars match maker";
     container.TitleTooltip = "You need at least two people to attack a planet and at least one to defend a planet";
 }
예제 #14
0
 public void DetailClicked(NotifyBarContainer container)
 {
     NavigationControl.Instance.Path = "chat/battle";
     if (IsHostGameRunning())
     {
         Rejoin();
     }
     else
     {
         client.Say(SayPlace.Battle, "", "!start", false);
     }
 }
예제 #15
0
        public void AddedToContainer(NotifyBarContainer container)
        {
            container.btnDetail.ImageAlign = ContentAlignment.TopCenter;
            container.btnDetail.Text       = "Connect";

            const int newSize = 20;
            var       image   = new Bitmap(newSize, newSize);

            using (var g = Graphics.FromImage(image))
            {
                g.InterpolationMode = InterpolationMode.High;
                g.DrawImage(ZklResources.redlight, 0, 0, newSize, newSize);
            }
            container.btnDetail.Image = image;
            container.btnStop.Visible = false;
        }
예제 #16
0
        public void AddedToContainer(NotifyBarContainer container) {
            container.btnDetail.ImageAlign = ContentAlignment.TopCenter;
            container.btnDetail.Text = "Connect";

            const int newSize = 20;
            var image = new Bitmap(newSize, newSize);
            using (var g = Graphics.FromImage(image))
            {
                g.InterpolationMode = InterpolationMode.High;
                g.DrawImage(ZklResources.redlight, 0, 0, newSize, newSize);
            }
            container.btnDetail.Image = image;
            container.btnStop.Visible = false;
            container.Title = "Connecting to server";
            container.TitleTooltip = "Check website for server status";
        }
예제 #17
0
 public void CloseClicked(NotifyBarContainer container)
 {
     container.btnStop.Enabled = false;
     //progress.Value = 0;
     Download.Abort(); //IsAborted = true; . when IsAborted is TRUE it also cause periodic check in MainWindow.cs to remove DownloadBar
 }
예제 #18
0
 public void DetailClicked(NotifyBarContainer container)
 {
     TryToConnectTasClient();
 }
 public void AddedToContainer(NotifyBarContainer container) {
     this.container = container;
     container.btnDetail.Enabled = true;
     container.btnDetail.Text = "Restart";
     container.Title = "New version";
 }
예제 #20
0
 public void CloseClicked(NotifyBarContainer container)
 {
     Stop();
 }
예제 #21
0
 public void CloseClicked(NotifyBarContainer container)
 {
     container.btnStop.Enabled = false;
     //progress.Value = 0;
     Download.Abort(); //IsAborted = true; . when IsAborted is TRUE it also cause periodic check in MainWindow.cs to remove DownloadBar
 }
예제 #22
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
 }
예제 #23
0
        public void AddedToContainer(NotifyBarContainer container)
        {
            this.container = container;
            container.btnDetail.Enabled = false;
            container.btnDetail.Text = "PlanetWars";
            container.btnStop.Enabled = false;
            container.btnStop.Visible = false;
            //container.btnDetail.Visible = false;
            container.Title = "PlanetWars match maker";
            container.TitleTooltip = "You need at least two people to attack a planet and at least one to defend a planet";

        }
예제 #24
0
		public void CloseClicked(NotifyBarContainer container) {
            Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this));
            ignoreCount = Math.Abs(workTotal - workDone)/2;
        }
예제 #25
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container         = container;
     container.Title        = "Loading a singleplayer mission";
     container.TitleTooltip = "Please await resource download";
 }
예제 #26
0
		public void DetailClicked(NotifyBarContainer container)
		{
			DetailButtonClicked(this, EventArgs.Empty);
		}
예제 #27
0
 public void AddedToContainer(NotifyBarContainer container) {
     this.container = container;
     container.btnDetail.Enabled = false;
     container.btnDetail.Text = "Vote";
     container.Title = "Battle poll";
     container.TitleTooltip = "Vote using buttons on the left side";
 }
예제 #28
0
		public void CloseClicked(NotifyBarContainer container)
		{
			var args = new CancelEventArgs();
			CloseButtonClicked(this, args);
			if (!args.Cancel) Program.NotifySection.RemoveBar(this);
		}
예제 #29
0
		public void AddedToContainer(NotifyBarContainer container)
		{
			BarContainer = container;
			container.btnDetail.Text = DetailButtonLabel;
		    container.Title = "Notice";
		}
예제 #30
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container = container;
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "Vote";
 }
예제 #31
0
 public void CloseClicked(NotifyBarContainer container)
 {
     Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this));
     ignoreCount = Math.Abs(workTotal - workDone) / 2;
 }
예제 #32
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     this.container         = container;
     container.Title        = "Replay preparing";
     container.TitleTooltip = "Please await downloads";
 }
예제 #33
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     BarContainer             = container;
     container.btnDetail.Text = DetailButtonLabel;
 }
 public void DetailClicked(NotifyBarContainer container) {
     Program.Restart();
 }
		public void CloseClicked(NotifyBarContainer container)
		{
			CloseBar();
		}
예제 #36
0
 public void CloseClicked(NotifyBarContainer container) {
     Program.NotifySection.RemoveBar(this);
 }
예제 #37
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.Enabled = false;
     container.btnDetail.Text    = "SinglePlayer";
 }
예제 #38
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.BackgroundImageLayout = ImageLayout.Center;
     container.btnDetail.BackgroundImage       = ZklResources.WebDown;
     container.btnDetail.Enabled = false;
 }
예제 #39
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     barContainer = container;
     container.btnDetail.Image = ZklResources.battle;
     container.btnDetail.Text = "Start";
     Program.ToolTip.SetText(container.btnDetail, "Start battle");
     Program.ToolTip.SetText(container.btnStop, "Quit battle");
     container.Title = "Joined Battle Room";
     container.TitleTooltip = "Use button on the left side to start a game";
 }
예제 #40
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.Enabled         = false;
     container.btnDetail.BackgroundImage = ZklResources.warning;
 }
예제 #41
0
 public void DetailClicked(NotifyBarContainer container)
 {
     NavigationControl.Instance.Path = "chat/battle";
     if (IsHostGameRunning()) Rejoin();
     else client.Say(SayPlace.Battle, "", "!start", false);
 }
예제 #42
0
 public void DetailClicked(NotifyBarContainer container)
 {
 }
예제 #43
0
 public void CloseClicked(NotifyBarContainer container)
 {
 }
예제 #44
0
 public void DetailClicked(NotifyBarContainer container) {
     TryToConnectTasClient();
 }
예제 #45
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.Enabled = false;
     container.btnDetail.BackgroundImage = ZklResources.warning;
     container.Title = title;
 }
예제 #46
0
 public void DetailClicked(NotifyBarContainer container)
 {
     Program.Restart();
 }
예제 #47
0
 public void CloseClicked(NotifyBarContainer container)
 {
     Program.NotifySection.RemoveBar(this);
 }
예제 #48
0
 public void AddedToContainer(NotifyBarContainer container) {
     this.container = container;
     container.Title = "Loading a singleplayer mission";
     container.TitleTooltip = "Please await resource download";
 }
예제 #49
0
 public void AddedToContainer(NotifyBarContainer container) {
     this.container = container;
     container.Title = "Replay preparing";
     container.TitleTooltip = "Please await downloads";
 }
예제 #50
0
 public void AddedToContainer(NotifyBarContainer container)
 {
     container.btnDetail.BackgroundImageLayout = ImageLayout.Center;
     container.btnDetail.BackgroundImage = ZklResources.WebDown;
     container.btnDetail.Enabled = false;
     container.Title = string.Format("Downloading {0}", Download.Name);
     container.TitleTooltip = "If download failes you can try closing this bar and rejoining a battle room";
 }
예제 #51
0
 public void DetailClicked(NotifyBarContainer container) {
 }
예제 #52
0
 public void DetailClicked(NotifyBarContainer container)
 {
     DetailButtonClicked(this, EventArgs.Empty);
 }