Esempio n. 1
0
        private void UserControlForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            IsLoaded = false;

            if (UserControl != null)
            {
                UserControl.Closing();
            }
        }
Esempio n. 2
0
        private void UserControlForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            isloaded = false;

            if (UserControl != null)
            {
                UserControl.Closing();
            }

            Size winsize = (istemporaryresized) ? normalsize : this.Size;

            SQLiteDBClass.PutSettingInt(dbrefname + "Width", winsize.Width);
            SQLiteDBClass.PutSettingInt(dbrefname + "Height", winsize.Height);
            SQLiteDBClass.PutSettingInt(dbrefname + "Top", this.Top);
            SQLiteDBClass.PutSettingInt(dbrefname + "Left", this.Left);
        }
Esempio n. 3
0
        private void TabControlForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            isactive = false;

            if (UserControl != null)
            {
                UserControl.Closing();
            }

            string root = "PopUpForm" + refname;

            SQLiteDBClass.PutSettingInt(root + "Width", this.Width);
            SQLiteDBClass.PutSettingInt(root + "Height", this.Height);
            SQLiteDBClass.PutSettingInt(root + "Top", this.Top);
            SQLiteDBClass.PutSettingInt(root + "Left", this.Left);
        }
Esempio n. 4
0
        private void UserControlForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            isloaded = false;

            if (UserControl != null)
            {
                UserControl.Closing();
            }

            Size winsize = (istemporaryresized) ? normalsize : this.Size;

            SQLiteDBClass.PutSettingInt(dbrefname + "Width", winsize.Width);
            SQLiteDBClass.PutSettingInt(dbrefname + "Height", winsize.Height);
            SQLiteDBClass.PutSettingInt(dbrefname + "Top", this.Top);
            SQLiteDBClass.PutSettingInt(dbrefname + "Left", this.Left);
            System.Diagnostics.Debug.WriteLine("Save Position {0} {1} {2} {3} {4}", dbrefname, Top, Left, winsize.Width, winsize.Height);
        }
Esempio n. 5
0
        void TabRemoved(ExtendedControls.TabStrip t, Control ctrl)      // called by tab strip when a control is removed
        {
            UserControlCommonBase uccb = ctrl as UserControlCommonBase;

            uccb.Closing();
        }