示例#1
0
        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;
        }
示例#2
0
 public MainWindow()
 {
     InitializeComponent();
     this.Topmost = false;
     TraySystem TS = new TraySystem();
 }