Example #1
0
		static private MessageBar CreateBar(DockContent target, string message)
		{
			MessageBar bar;
			foreach(Control ctrl in target.Controls)
			{
				if (ctrl is MessageBar)
				{
					bar = (ctrl as MessageBar);
					bar.Update(message);
					bar.Visible = true;
					return bar;
				}
			}
			bar = new MessageBar();
			bar.Visible = false;
			target.Controls.Add(bar);
			bar.Update(message);
			bar.BringToFront();
			bar.Dock = DockStyle.Top;
			bar.Visible = true;
			return bar;
		}
Example #2
0
 static private MessageBar CreateBar(ITabbedDocument target, String message)
 {
     MessageBar bar;
     foreach (Control ctrl in target.Controls)
     {
         if (ctrl is MessageBar)
         {
             bar = (ctrl as MessageBar);
             bar.Update(message);
             bar.Visible = true;
             return bar;
         }
     }
     bar = new MessageBar();
     bar.Visible = false;
     target.Controls.Add(bar);
     bar.Dock = DockStyle.Top;
     bar.Update(message);
     bar.SendToBack();
     bar.Visible = true;
     return bar;
 }
Example #3
0
        static private MessageBar CreateBar(ITabbedDocument target, String message)
        {
            MessageBar bar;

            foreach (Control ctrl in target.Controls)
            {
                if (ctrl is MessageBar)
                {
                    bar = (ctrl as MessageBar);
                    bar.Update(message);
                    bar.Visible = true;
                    return(bar);
                }
            }
            bar         = new MessageBar();
            bar.Visible = false;
            target.Controls.Add(bar);
            bar.Dock = DockStyle.Top;
            bar.Update(message);
            bar.SendToBack();
            bar.Visible = true;
            return(bar);
        }
        static private MessageBar CreateBar(DockContent target, string message)
        {
            MessageBar bar;

            foreach (Control ctrl in target.Controls)
            {
                if (ctrl is MessageBar)
                {
                    bar = (ctrl as MessageBar);
                    bar.Update(message);
                    bar.Visible = true;
                    return(bar);
                }
            }
            bar         = new MessageBar();
            bar.Visible = false;
            target.Controls.Add(bar);
            bar.Update(message);
            bar.BringToFront();
            bar.Dock    = DockStyle.Top;
            bar.Visible = true;
            return(bar);
        }