private void Window_Loaded(object sender, RoutedEventArgs e) { AC = new AnimaControl(); AC.PassCode += new EventHandler <AnimaControlEventArgs>(UpdateForm); Point Start = AC.DetermineRight(new Anima.Size(this.Width, this.Height)); SetPosition(Start); TraySystem TS = new TraySystem(AC); TS.AskToClose += new EventHandler(CloseProgram); this.MaxHeight = this.Height; this.MaxWidth = this.Width; this.MinHeight = this.Height; this.MinWidth = this.Width; }
public MainWindow() { InitializeComponent(); this.Topmost = false; TraySystem TS = new TraySystem(); }