コード例 #1
0
        public void RemoveBox(NotifyBox box)
        {
            Container.Children.Remove(box);

            if (Container.Children.Count == 0)
            {
                Controller.Current.MainWindow.Sidebar.DontHideSidebar = false;

                Hide();
            }
        }
コード例 #2
0
        public void AddBox(NotifyBox box)
        {
            Container.Children.Add(box);

            // show sidebar
            Controller.Current.MainWindow.Sidebar.DontHideSidebar = true;
            Controller.Current.MainWindow.Sidebar.Opacity = 0.6;

            PositionWindow();
            Show();
        }
コード例 #3
0
ファイル: Notifier.cs プロジェクト: anaimi/farawla
        public static void Growl(string title, string message, string footer, bool stick)
        {
            var box = new NotifyBox(title, message, footer, stick);

            NotifyContainer.Instance.AddBox(box);
        }