public Insert_Dialog() { Text = AppMain.AppName + " - Insert"; FormBorderStyle = FormBorderStyle.FixedDialog; ClientSize = new Size(300, 420); MaximizeBox = false; MinimizeBox = false; ControlBox = true; ShowInTaskbar = false; StartPosition = FormStartPosition.Manual; Location = Insert_Registry.GetLocation(); Owner = MainWindow.This; TreeView Tree = new TreeView(); Tree.Parent = this; Tree.Dock = DockStyle.Fill; Tree.BeforeSelect += new TreeViewCancelEventHandler(OnSelect); Insert_Manager.Install(Tree); }
protected override void OnClosing(CancelEventArgs CEA) { base.OnClosing(CEA); Insert_Registry.SetLocation(new Point(Location.X, Location.Y)); }