Пример #1
0
        protected override void OnClosing(CancelEventArgs i_EventArgs)
        {
            base.OnClosing(i_EventArgs);
            AppConfigService appConfig = AppConfigService.GetInstance();

            appConfig.WindowPosition = new Point(this.Top, this.Left);
            appConfig.WindowWidth    = this.Width;
            appConfig.WindowHeight   = this.Height;
            AppConfigService.SaveToFile();
        }