public WinDirector() { InitializeComponent(); tbDragger.MouseDown += delegate { this.DragMove(); }; btnReference.Click += delegate { ExtraClass.Reference(); }; btnBack.Click += delegate { ExtraClass.OpenWinAutorization(this); }; btnHidde.Click += delegate { ExtraClass.MinimizedWindow(this); }; btnClose.Click += delegate { ExtraClass.Shutdown(); }; }
public WinAutorization() { InitializeComponent(); autorization = new Autorization(this, tbLogin, pbPassword, snack, snackMessage); tbDragger.MouseDown += delegate { this.DragMove(); }; btnEnter.Click += delegate { autorization.Enter(tbLogin.Text); }; snackMessage.ActionClick += delegate { autorization.CloseSnack(); }; btnHidde.Click += delegate { ExtraClass.MinimizedWindow(this); }; btnClose.Click += delegate { ExtraClass.Shutdown(); }; }