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"; }
public void AddedToContainer(NotifyBarContainer container) { this.container = container; container.btnDetail.Enabled = true; container.btnDetail.Text = "Restart"; container.Title = "New version"; }
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; }
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"); }
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"; }
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"; }
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; }
public void CloseClicked(NotifyBarContainer container) { var args = new CancelEventArgs(); CloseButtonClicked(this, args); if (!args.Cancel) { Program.NotifySection.RemoveBar(this); } }
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"; }
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"; }
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"; }
public void DetailClicked(NotifyBarContainer container) { NavigationControl.Instance.Path = "chat/battle"; if (IsHostGameRunning()) { Rejoin(); } else { client.Say(SayPlace.Battle, "", "!start", false); } }
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; }
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"; }
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 }
public void DetailClicked(NotifyBarContainer container) { TryToConnectTasClient(); }
public void CloseClicked(NotifyBarContainer container) { Stop(); }
public void AddedToContainer(NotifyBarContainer container) { this.container = container; }
public void CloseClicked(NotifyBarContainer container) { Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this)); ignoreCount = Math.Abs(workTotal - workDone)/2; }
public void AddedToContainer(NotifyBarContainer container) { this.container = container; container.Title = "Loading a singleplayer mission"; container.TitleTooltip = "Please await resource download"; }
public void DetailClicked(NotifyBarContainer container) { DetailButtonClicked(this, EventArgs.Empty); }
public void CloseClicked(NotifyBarContainer container) { var args = new CancelEventArgs(); CloseButtonClicked(this, args); if (!args.Cancel) Program.NotifySection.RemoveBar(this); }
public void AddedToContainer(NotifyBarContainer container) { BarContainer = container; container.btnDetail.Text = DetailButtonLabel; container.Title = "Notice"; }
public void AddedToContainer(NotifyBarContainer container) { this.container = container; container.btnDetail.Enabled = false; container.btnDetail.Text = "Vote"; }
public void CloseClicked(NotifyBarContainer container) { Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this)); ignoreCount = Math.Abs(workTotal - workDone) / 2; }
public void AddedToContainer(NotifyBarContainer container) { this.container = container; container.Title = "Replay preparing"; container.TitleTooltip = "Please await downloads"; }
public void AddedToContainer(NotifyBarContainer container) { BarContainer = container; container.btnDetail.Text = DetailButtonLabel; }
public void DetailClicked(NotifyBarContainer container) { Program.Restart(); }
public void CloseClicked(NotifyBarContainer container) { CloseBar(); }
public void CloseClicked(NotifyBarContainer container) { Program.NotifySection.RemoveBar(this); }
public void AddedToContainer(NotifyBarContainer container) { container.btnDetail.Enabled = false; container.btnDetail.Text = "SinglePlayer"; }
public void AddedToContainer(NotifyBarContainer container) { container.btnDetail.BackgroundImageLayout = ImageLayout.Center; container.btnDetail.BackgroundImage = ZklResources.WebDown; container.btnDetail.Enabled = false; }
public void AddedToContainer(NotifyBarContainer container) { container.btnDetail.Enabled = false; container.btnDetail.BackgroundImage = ZklResources.warning; }
public void DetailClicked(NotifyBarContainer container) { NavigationControl.Instance.Path = "chat/battle"; if (IsHostGameRunning()) Rejoin(); else client.Say(SayPlace.Battle, "", "!start", false); }
public void DetailClicked(NotifyBarContainer container) { }
public void CloseClicked(NotifyBarContainer container) { }
public void AddedToContainer(NotifyBarContainer container) { container.btnDetail.Enabled = false; container.btnDetail.BackgroundImage = ZklResources.warning; container.Title = title; }