public UserWindow() { InitializeComponent(); this.Loaded += UserWindow_Loaded; ThemeManager.ApplyTheme(App.Current, "BubbleCreme"); min_button = new Button(); close_button = new Button(); FatherWindow.TitleBarInit(min_button, close_button); this.TitleBar.Children.Add(min_button); this.TitleBar.Children.Add(close_button); min_button.Margin = new Thickness(0, 0, -5, 0); close_button.Click += close_button_Click; min_button.Click += min_button_Click; FatherWindow.buttonWrap(this.addFriendBtn, null); FatherWindow.buttonWrap(this.delFriendBtn, null); FatherWindow.buttonWrap(this.addFroupBtn, null); FatherWindow.buttonWrap(this.MsgListBtn, null); FatherWindow.buttonWrap(this.SetBtn, null); FatherWindow.buttonWrap(this.UserInfoSet, null); this.Closing += UserWindow_Closing; getUserinfo = new System.Windows.Forms.Timer(); getUserinfo.Interval = 3000; getUserinfo.Tick += getUserinfo_Tick; getUserinfo.Start(); }
public AddFriends() { InitializeComponent(); isOpen = true; FatherWindow.TitleBarInit(min_button, close_button); min_button.Click += min_button_Click; close_button.Click += close_button_Click; this.titleBar.Children.Add(min_button); this.titleBar.Children.Add(close_button); this.close_button.Margin = new Thickness(-5, 0, 5, 0); this.Closing += AddFriends_Closing; }
public SetingWindow() { InitializeComponent(); isOpen = true; FatherWindow.TitleBarInit(min_button, close_button); this.titleBar.Children.Add(min_button); this.titleBar.Children.Add(close_button); min_button.Click += min_button_Click; close_button.Click += close_button_Click; min_button.HorizontalAlignment = HorizontalAlignment.Right; close_button.HorizontalAlignment = HorizontalAlignment.Right; this.Closing += SetingWindow_Closing; }
public LoginPage() { InitializeComponent(); min_button = new Button(); close_button = new Button(); this.titleBar.Children.Add(min_button); this.titleBar.Children.Add(close_button); FatherWindow.TitleBarInit(min_button, close_button); min_button.Margin = new Thickness(0, 0, -5, 0); min_button.HorizontalAlignment = HorizontalAlignment.Right; close_button.HorizontalAlignment = HorizontalAlignment.Right; close_button.Click += close_button_Click; min_button.Click += min_button_Click; // this.loginGif.Source = @"Resource/login.gif"; getResultTimer = new System.Windows.Forms.Timer(); getResultTimer.Interval = 3000; getResultTimer.Tick += getResultTimer_Tick; getResultTimer.Start(); }