/// <summary>
        /// Загрузка основного меню в зависимости от настроек
        /// </summary>
        public static void LoadMainMenu()
        {
            if (Variables.DrawingsFloatMenu)
            {
                if (MpDrawingsWin == null)
                {
                    MpDrawingsWin         = new MpDrawings();
                    MpDrawingsWin.Closed += MpDrawingsWinClosed;
                }

                if (MpDrawingsWin.IsLoaded)
                {
                    return;
                }
                AcApp.ShowModelessWindow(
                    AcApp.MainWindow.Handle, MpDrawingsWin);
            }
            else
            {
                MpDrawingsWin?.Close();
            }
        }
 private static void MpDrawingsWinClosed(object sender, EventArgs e)
 {
     RegistryUtils.SetValue("DrawingsWinTop", MpDrawingsWin.Top.ToString(CultureInfo.InvariantCulture));
     RegistryUtils.SetValue("DrawingsWinLeft", MpDrawingsWin.Left.ToString(CultureInfo.InvariantCulture));
     MpDrawingsWin = null;
 }