public PremiumFeaturesTaskMenuAd(TaskMenu taskMenu) { this.taskMenu = taskMenu; taskMenu.AdProvider = this; taskMenu.Showing += taskMenu_Showing; this.LayoutChanged += PremiumFeaturesTaskMenuAd_LayoutChanged; }
protected override void OnLoad(EventArgs e) { this.SetStyle(ControlStyles.UserPaint, true); //this.SetStyle(ControlStyles.ResizeRedraw, true); Version v = System.Environment.Version; this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); TaskMenu.ShowSYSMENU(this); int Rgn = Win32.CreateRoundRectRgn(0, 0, this.Width + 1, this.Height + 1, 5, 5); Win32.SetWindowRgn(this.Handle, Rgn, true); this.BackgroundImageLayout = MyFormTemp.CurrentImageLayout; this.StartPosition = FormStartPosition.CenterScreen; this.BackColor = MyFormTemp.CurrentBackgroundColor; if (MyFormTemp.CurrentBackgroundImage != null) { this.BackgroundImage = MyFormTemp.CurrentBackgroundImage; } if (this.StartPosition == FormStartPosition.CenterScreen && (!this.DesignMode)) { this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2); } ResizeControl(); // this.TransparencyKey = Color.FromArgb(255,0,255); // this.TransparencyKey = BackColor; base.OnLoad(e); oldSize = this.Size; }
// [HideInInspector] public GameObject car; // Use this for initialization void Awake() { secondCanvas = GameObject.Find("SecondCanvas"); fireBackground = GameObject.Find("FireBackground"); fireStart = GameObject.Find("FireStart"); garage = GameObject.FindObjectOfType<Garage>(); taskMenu = GameObject.FindObjectOfType<TaskMenu>(); kaController = GameObject.FindObjectOfType<KAController>(); waitBackground = GameObject.FindObjectOfType<WaitBackground>(); mainScreen = GameObject.FindObjectOfType<MainScreen>(); bg = GameObject.Find("BG"); carsInfo = GetComponent<CarsInfo>(); filling = GameObject.FindObjectOfType<Filling>(); carChanger = GameObject.FindObjectOfType<CarChanger>(); dustSmall = GameObject.Find("DustSmall"); windowWarning = GameObject.FindObjectOfType<WindowWarning>(); windowConfirmation = GameObject.FindObjectOfType<WindowConfirmation>(); mainBonus = GetComponent<MainBonus>(); dailyEvents = GetComponent<DailyEvents>(); moneyBar = GameObject.FindObjectOfType<MoneyBar>(); boosterMenu = GameObject.FindObjectOfType<BoosterMenu>(); dailyGiftMenu = GameObject.FindObjectOfType<DailyGiftMenu>(); backMenuButton = GameObject.FindObjectOfType<BackMenuButton>(); /* car = garage.transform.Find("Car").gameObject; if (car == null) CreateCar(); */ }
// [HideInInspector] public GameObject car; // Use this for initialization void Awake() { secondCanvas = GameObject.Find("SecondCanvas"); fireBackground = GameObject.Find("FireBackground"); fireStart = GameObject.Find("FireStart"); garage = GameObject.FindObjectOfType <Garage>(); taskMenu = GameObject.FindObjectOfType <TaskMenu>(); kaController = GameObject.FindObjectOfType <KAController>(); waitBackground = GameObject.FindObjectOfType <WaitBackground>(); mainScreen = GameObject.FindObjectOfType <MainScreen>(); bg = GameObject.Find("BG"); carsInfo = GetComponent <CarsInfo>(); filling = GameObject.FindObjectOfType <Filling>(); carChanger = GameObject.FindObjectOfType <CarChanger>(); dustSmall = GameObject.Find("DustSmall"); windowWarning = GameObject.FindObjectOfType <WindowWarning>(); windowConfirmation = GameObject.FindObjectOfType <WindowConfirmation>(); mainBonus = GetComponent <MainBonus>(); dailyEvents = GetComponent <DailyEvents>(); moneyBar = GameObject.FindObjectOfType <MoneyBar>(); boosterMenu = GameObject.FindObjectOfType <BoosterMenu>(); dailyGiftMenu = GameObject.FindObjectOfType <DailyGiftMenu>(); backMenuButton = GameObject.FindObjectOfType <BackMenuButton>(); /* * car = garage.transform.Find("Car").gameObject; * if (car == null) * CreateCar(); */ }
static void Main(string[] args) { int selection; do { var mainMenu = new MainMenu(); selection = mainMenu.GetMainMenuInpput(); if (selection == 1) // View tickets { TicketMenu ticketMenu = new TicketMenu(); ticketMenu.Process(selection); } else if (selection == 2) // View Enhancements { EnhancementMenu enhMenu = new EnhancementMenu(); enhMenu.Process(selection); } else if (selection == 3) // View Tasks { TaskMenu taskMenu = new TaskMenu(); taskMenu.Process(selection); } } while (selection != 4); }
static void Main(string[] args) { ////prompt the user for task name, due date //string taskName = "test"; //DateTime dueDate = DateTime.Now; ////create a task that has not yet been added to the list //Task task = new Task(taskName, dueDate); //TaskList list = new TaskList("foo"); //task = list.AddTask(task); //create menu and show it TaskMenu menu = new TaskMenu(); menu.Show(); }
public void initialize(StandaloneController standaloneController) { RocketInterface.Instance.FileInterface.addExtension(new RocketAssemblyResourceLoader(this.GetType().Assembly)); if (VirtualFileSystem.Instance.exists("Watermark/AnomalousMedical.png")) { standaloneController.ImageRenderer.LoadLogo = () => { using (Stream stream = VirtualFileSystem.Instance.openStream("Watermark/AnomalousMedical.png", Engine.Resources.FileMode.Open)) { return(new FreeImageBitmap(stream)); } }; } this.guiManager = standaloneController.GUIManager; this.standaloneController = standaloneController; standaloneController.MovementSequenceController.GroupAdded += MovementSequenceController_GroupAdded; bool hasPremium = licenseManager.allowFeature(1); standaloneController.AnatomyController.ShowPremiumAnatomy = hasPremium; guiManager.SaveUIConfiguration += guiManager_SaveUIConfiguration; guiManager.LoadUIConfiguration += guiManager_LoadUIConfiguration; guiManager.MainGUIShown += guiManager_MainGUIShown; guiManager.MainGUIHidden += guiManager_MainGUIHidden; //Controllers imageLicenseServer = new ImageLicenseServer(licenseManager); bookmarksController = new BookmarksController(standaloneController, ScaleHelper.Scaled(100), ScaleHelper.Scaled(100), hasPremium); //Create Dialogs aboutDialog = new AboutDialog(licenseManager); chooseSceneDialog = new ChooseSceneDialog(guiManager); chooseSceneDialog.ChooseScene += new EventHandler(chooseSceneDialog_ChooseScene); standaloneController.AnatomyController.ShowPremiumAnatomyChanged += AnatomyController_ShowPremiumAnatomyChanged; anatomyFinder = new AnatomyFinder(standaloneController.AnatomyController, standaloneController.SceneViewController, standaloneController.LayerController, standaloneController.AnatomyTaskManager); guiManager.addManagedDialog(anatomyFinder); options = new OptionsDialog(guiManager); options.VideoOptionsChanged += new EventHandler(options_VideoOptionsChanged); options.RequestRestart += new EventHandler(options_RequestRestart); bookmarks = new BookmarksGUI(bookmarksController, standaloneController.GUIManager, standaloneController.SceneViewController); viewsGui = new ViewsGui(standaloneController.SceneViewController, standaloneController.AnatomyController); guiManager.addManagedDialog(viewsGui); //Taskbar taskbar = new AppButtonTaskbar(); taskbar.OpenTaskMenu += taskbar_OpenTaskMenu; taskbar.setAppIcon("AppButton/Hamburger", "AppButton/Hamburger"); taskbarLink = new SingleChildChainLink(GUILocationNames.Taskbar, taskbar); guiManager.addLinkToChain(taskbarLink); guiManager.pushRootContainer(GUILocationNames.Taskbar); //Task Menu taskMenu = new TaskMenu(standaloneController.DocumentController, standaloneController.TaskController, standaloneController.GUIManager, new LayoutElementName(GUILocationNames.FullscreenPopup)); taskMenu.GroupComparison = TaskMenuCategories.Sorter; guiTaskManager = new GUITaskManager(taskbar, taskMenu, standaloneController.TaskController); //Tasks Menu TaskController taskController = standaloneController.TaskController; standaloneController.AnatomyTaskManager.HighlightTasks += AnatomyTaskManager_HighlightTasks; //Tasks cameraMovementModeTask = new CameraMovementModeTask(standaloneController.SceneViewController); taskController.addTask(cameraMovementModeTask); Slideshow.AdditionalTasks.addTask(cameraMovementModeTask); selectionOperatorTask = new SelectionOperatorTask(standaloneController.AnatomyController); taskController.addTask(selectionOperatorTask); Slideshow.AdditionalTasks.addTask(selectionOperatorTask); var viewsTask = new PinableMDIDialogOpenTask(viewsGui, "Medical.Views", "Views", "AnomalousMedical/ViewIcon", TaskMenuCategories.Explore); taskController.addTask(viewsTask); //Patient Section taskController.addTask(new ShowPopupTask(chooseSceneDialog, "Medical.NewPatient", "New", "AnomalousMedical/ChangeScene", TaskMenuCategories.Explore, 0)); taskController.addTask(new DialogOpenTask(aboutDialog, "Medical.About", "About", "AnomalousMedical/About", TaskMenuCategories.System, int.MaxValue - 2)); taskController.addTask(new VolumeControlTask()); CallbackTask unhideAllAnatomy = new CallbackTask("Medical.UnhideAllAnatomy", "Unhide All", "AnatomyFinder.ShowAll", TaskMenuCategories.Explore, int.MaxValue - 2, false, (item) => { LayerState undo = LayerState.CreateAndCapture(); standaloneController.LayerController.unhideAll(); standaloneController.LayerController.pushUndoState(undo); }); taskController.addTask(unhideAllAnatomy); //Navigation Section PinableMDIDialogOpenTask anatomyFinderTask = new PinableMDIDialogOpenTask(anatomyFinder, "Medical.AnatomyFinder", "Anatomy Finder", "AnomalousMedical/SearchIcon", TaskMenuCategories.Explore); taskController.addTask(anatomyFinderTask); Slideshow.AdditionalTasks.addTask(anatomyFinderTask); ShowPopupTask bookmarkTask = null; standaloneController.AnatomyController.setCommandPermission(AnatomyCommandPermissions.Unrestricted, PlatformConfig.UnrestrictedEnvironment); standaloneController.AnatomyController.setCommandPermission(AnatomyCommandPermissions.PremiumActive, hasPremium); if (PlatformConfig.UnrestrictedEnvironment || hasPremium) { //Explore selectionModeTask = new SelectionModeTask(standaloneController.AnatomyController); taskController.addTask(selectionModeTask); Slideshow.AdditionalTasks.addTask(selectionModeTask); bookmarkTask = new ShowPopupTask(bookmarks, "Medical.Bookmarks", "Bookmarks", "AnomalousMedical/FavoritesIcon", TaskMenuCategories.Explore); taskController.addTask(bookmarkTask); Slideshow.AdditionalTasks.addTask(bookmarkTask); } if (PlatformConfig.UnrestrictedEnvironment) { //System CallbackTask helpTaskItem = new CallbackTask("Medical.Help", "Help", "AnomalousMedical/Help", TaskMenuCategories.System, int.MaxValue - 4, false); helpTaskItem.OnClicked += new CallbackTask.ClickedCallback(helpTaskItem_OnClicked); taskController.addTask(helpTaskItem); taskController.addTask(new ShowPopupTask(options, "Medical.Options", "Options", "AnomalousMedical/Options", TaskMenuCategories.System, int.MaxValue - 3)); CallbackTask exitTaskItem = new CallbackTask("Medical.Exit", "Exit", "AnomalousMedical/Exit", TaskMenuCategories.System, int.MaxValue, false); exitTaskItem.OnClicked += new CallbackTask.ClickedCallback(exitTaskItem_OnClicked); taskController.addTask(exitTaskItem); if (MedicalConfig.ShowDeveloperTools) { CallbackTask createOverrideTaskItem = new CallbackTask("Medical.CreateOverride", "CreateOverride", CommonResources.NoIcon, TaskMenuCategories.Developer, int.MaxValue, false); createOverrideTaskItem.OnClicked += CreateOverrideTaskItem_OnClicked; taskController.addTask(createOverrideTaskItem); } } if (PlatformConfig.AllowFullscreenToggle) { CallbackTask toggleFullscreen = new CallbackTask("Medical.ToggleFullscreen", "Toggle Fullscreen", "AnomalousMedical/ToggleFullscreen", TaskMenuCategories.System, int.MaxValue - 2, false, (item) => { MainWindow.Instance.toggleFullscreen(); }); taskController.addTask(toggleFullscreen); //Fullscreen Toggle Shortcut var toggleFullscreenMessageEvent = new ButtonEvent(EventLayers.Gui, frameUp: (evtMgr) => { MainWindow.Instance.toggleFullscreen(); }); toggleFullscreenMessageEvent.addButton(KeyboardButtonCode.KC_RETURN); toggleFullscreenMessageEvent.addButton(KeyboardButtonCode.KC_LMENU); standaloneController.MedicalController.EventManager.addEvent(toggleFullscreenMessageEvent); } //Premium / Non Premium if (!hasPremium) { if (PlatformConfig.UnrestrictedEnvironment) { buyScreens = new BuyScreenController(standaloneController); taskMenuAd = new PremiumFeaturesTaskMenuAd(taskMenu); selectionModeTask.SelectionModeChooser.ShowBuyMessage += SelectionModeChooser_ShowBuyMessage; anatomyFinder.ShowBuyMessage += anatomyFinder_ShowBuyMessage; bookmarks.ShowBuyMessage += bookmarks_ShowBuyMessage; } if (MedicalConfig.FirstRun) { guiTaskManager.addPinnedTask(anatomyFinderTask); guiTaskManager.addPinnedTask(viewsTask); guiTaskManager.addPinnedTask(cameraMovementModeTask); if (bookmarkTask != null) { guiTaskManager.addPinnedTask(bookmarkTask); } guiTaskManager.addPinnedTask(unhideAllAnatomy); } } standaloneController.AtlasPluginManager.RequestDependencyDownload += AtlasPluginManager_RequestDependencyDownload; //Teeth mover teethMover = new SimObjectMover("Teeth", standaloneController.MedicalController.PluginManager.RendererPlugin, standaloneController.MedicalController.EventManager, standaloneController.SceneViewController); TeethToolController teethToolController = new TeethToolController(teethMover); standaloneController.ImageRenderer.ImageRenderStarted += teethToolController.ScreenshotRenderStarted; standaloneController.ImageRenderer.ImageRenderCompleted += teethToolController.ScreenshotRenderCompleted; standaloneController.ViewHostFactory.addFactory(new WizardComponentFactory(teethToolController)); }
private void WM_NCHITTEST(ref Message m) { int wparam = m.LParam.ToInt32(); Point point = new Point(Win32.LOWORD(wparam), Win32.HIWORD(wparam)); point = PointToClient(point); if (m.Msg != Win32.WM_NCHITTEST) { return; } if (_IsResize) { TaskMenu.DeleteSYSMENU(this); if (point.X <= 8) { if (point.Y <= 8) { m.Result = (IntPtr)Win32.HTTOPLEFT; } else if (point.Y > Height - 8) { m.Result = (IntPtr)Win32.HTBOTTOMLEFT; } else { m.Result = (IntPtr)Win32.HTLEFT; } } else if (point.X >= Width - 8) { if (point.Y <= 8) { m.Result = (IntPtr)Win32.HTTOPRIGHT; } else if (point.Y >= Height - 8) { m.Result = (IntPtr)Win32.HTBOTTOMRIGHT; } else { m.Result = (IntPtr)Win32.HTRIGHT; } } else if (point.Y <= 8) { m.Result = (IntPtr)Win32.HTTOP; } else if (point.Y >= Height - 8) { m.Result = (IntPtr)Win32.HTBOTTOM; } else { TaskMenu.AddSYSMENU(this); m.Result = (IntPtr)Win32.HTCAPTION; } //this.Invalidate(); } else { m.Result = (IntPtr)Win32.HTCAPTION; } }
//重载WndProc方法 protected override void WndProc(ref Message m) { try { //渐变相关 if (_UseFadeStyle && m.Msg != Win32.WM_NCPAINT) { if (m.Msg == Win32.WM_SYSCOMMAND || m.Msg == Win32.WM_COMMAND) { //渐变到0,当最小化时 if (m.WParam == (IntPtr)Win32.SC_MINIMIZE) { if (heldMessage.WParam != (IntPtr)Win32.SC_MINIMIZE) { heldMessage = m; TargetOpacity = minimizedOpacity; } else { heldMessage = new Message(); TargetOpacity = activeOpacity; } return; } //当任务栏还原时渐变 else if (m.WParam == (IntPtr)Win32.SC_RESTORE && this.WindowState == FormWindowState.Minimized) { base.WndProc(ref m); TargetOpacity = activeOpacity; return; } //当窗体关闭时. else if (m.WParam == (IntPtr)Win32.SC_CLOSE) { heldMessage = m; TargetOpacity = minimizedOpacity; return; } } } switch (m.Msg) { //窗体客户区以外的重绘消息,一般是由系统负责处理 case Win32.WM_NCPAINT: break; // 在需要计算窗口客户区的大小和位置时发送。通过处理这个消息,应用程序可以在窗口大小或位置改变时控制客户区的内容 //case Win32.WM_NCCALCSIZE: // break; // 画窗体被激活或者没有被激活时的样子 case Win32.WM_NCACTIVATE: if (m.WParam == (IntPtr)Win32.WM_FALSE) { m.Result = (IntPtr)Win32.WM_TRUE; } break; case Win32.WM_ACTIVATE: TaskMenu.AddSYSMENU(this); base.WndProc(ref m); break; case Win32.WM_NCLBUTTONDBLCLK: if (_IsResize) { base.WndProc(ref m); } break; //鼠标移动,按下或释放都会执行该消息 case Win32.WM_NCHITTEST: WM_NCHITTEST(ref m); break; default: base.WndProc(ref m); break; } } catch (Exception Exception) { } }
/// <summary> /// 初始化 /// </summary> public MainWindow() { DataContext = Shortcut; InitializeComponent(); Hide(); Closing += (s, e) => { if (MenuClickClose) { notifyIcon.Visible = false; Menu.Close(); KeyBoard.Dispose(); } else { Hide(); e.Cancel = true; } }; Activated += (s, e) => { InputBox.Focus(); }; // 初始化字段 MenuClickClose = false; Shortcut = new Shortcut("别敲键盘"); KeyBoard = new KeyBoardHandle(); Menu = new TaskMenu(); notifyIcon = new NotifyIcon(); TodayKeyUpList = new Dictionary <Keys, long>(); KeyBoardControl.CloseKeyClick += (s, e) => { Close(); }; KeyBoardControl.ResetClick += (s, e) => { App.StartQueryTime = DateTime.Now; TodayKeyUpList.Clear(); KeyBoardControl.ResetKeyBoardHot(); Title = $"{Shortcut.ProductName} - 自 {App.StartQueryTime:M月d日 H点m分} 以来的统计数据"; }; KeyBoardControl.StartWithWindowsChanged += (check) => { if (check.HasValue) { Properties.Settings.Default.StartWithWindows = check.Value; Properties.Settings.Default.Save(); if (check.Value) { Shortcut.CreateShortcut(ShortcutType.Startup); } else { Shortcut.RemoveShortcut(ShortcutType.Startup); } } }; KeyBoardControl.BackgroundRunChanged += (check) => { if (check.HasValue) { Properties.Settings.Default.BackgroundRun = check.Value; Properties.Settings.Default.Save(); } }; KeyBoardControl.AutoPlayChanged += (check) => { if (check.HasValue) { Properties.Settings.Default.AutoPlay = check.Value; Properties.Settings.Default.Save(); } }; DateTime time = DateTime.Now; KeyBoard.KeyDown += (s, e) => { KeyBoardControl.SetDown(e.KeyCode); if (KeyBoard.KeyState == KeyState.Closed) { return; } }; KeyBoard.KeyUp += (s, e) => { KeyBoardControl.SetUp(e.KeyCode); if (KeyBoard.KeyState == KeyState.Closed) { return; } if (TodayKeyUpList.ContainsKey(e.KeyCode)) { int i = (int)e.KeyCode; TodayKeyUpList[e.KeyCode] += 1; } else { TodayKeyUpList.Add(e.KeyCode, 1); } double timeSpan = Properties.Settings.Default.RefreshTimeSpan; if (timeSpan < 0) { return; } if (timeSpan == 0) { KeyBoardControl.SetKeyListHot(TodayKeyUpList); } else if (DateTime.Now - time > TimeSpan.FromSeconds(timeSpan)) { time = DateTime.Now; KeyBoardControl.SetKeyListHot(TodayKeyUpList); } Title = $"{Shortcut.ProductName} —— 自 {App.StartQueryTime:yy年M月d日 H点m分} 以来共击键 {TodayKeyUpList.Values.Sum()} 次"; }; KeyBoard.KeyStateChanged += (s, e) => { notifyIcon.Text = $"{Shortcut.ProductName} - {(e == KeyState.Open ? "记录中" : "已暂停")}"; Menu.SetState(KeyBoard.KeyState); }; Menu.Show(KeyBoard.KeyState); Menu.CloseH += (s, e) => { MenuClickClose = true; Close(); }; Menu.ShowH += (s, e) => { Show(); Activate(); }; Menu.StartR += (s, e) => { KeyBoard.Start(); }; Menu.StopR += (s, e) => { KeyBoard.Stop(); }; notifyIcon.Text = $"{Shortcut.ProductName} - {(KeyBoard.KeyState == KeyState.Open ? "记录中" : "已暂停")}"; notifyIcon.Icon = Properties.Resources.Logo; notifyIcon.Visible = true; notifyIcon.MouseClick += (s, e) => { if (e.Button == MouseButtons.Right) { Menu.ShowMenu(); } }; notifyIcon.DoubleClick += (s, e) => { Show(); Activate(); }; { if (Properties.Settings.Default.Version == 0) { MigrationWindows migration = new MigrationWindows(); migration.ShowDialog(); Properties.Settings.Default.Version = 1; Properties.Settings.Default.Save(); } if (Properties.Settings.Default.FirstRun) { string content = "也许你不知道,你都敲了多少次键盘,也许你也根本不关心。但是现在你可以,为了键盘的健康,让我们一起别敲键盘吧!"; string title = " —— 《 别敲键盘 》"; if (MessageBox.Show(content, $"您好{title}", MessageBoxButton.OK) == MessageBoxResult.OK) { Properties.Settings.Default.FirstRun = false; if (!Shortcut.GetShortcut(ShortcutType.Desktop)) { if (MessageBox.Show("是否创建一个桌面的快捷方式?", $"还有一步{title}", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { Shortcut.CreateShortcut(ShortcutType.Desktop); } } if (!Shortcut.GetShortcut(ShortcutType.Startup)) { if (MessageBox.Show("让我们每天都记录一下键盘的敲击情况,怎么样?\r\n\r\n【这需要让我随 Windows 一起启动,但您仍然可以稍后在程序中设置此选项】", $"马上就好{title}", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { Properties.Settings.Default.StartWithWindows = Shortcut.CreateShortcut(ShortcutType.Startup); } else { Properties.Settings.Default.StartWithWindows = false; } } Properties.Settings.Default.Save(); Show(); Activate(); } else { MenuClickClose = true; Close(); } } bool asAdmin = Properties.Settings.Default.AsAdmin; bool startWithWindows = Properties.Settings.Default.StartWithWindows; bool backgroundRun = Properties.Settings.Default.BackgroundRun; bool autoPlay = Properties.Settings.Default.AutoPlay; if (startWithWindows) { if (!Shortcut.GetShortcut(ShortcutType.Startup)) { Shortcut.CreateShortcut(ShortcutType.Startup); } } if (!backgroundRun) { Show(); Activate(); } if (autoPlay) { KeyBoard.Start(); } TodayKeyUpList = KeyBoard.Count(App.StartQueryTime, DateTime.Now); KeyBoardControl.SetKeyListHot(TodayKeyUpList); KeyBoardControl.SetSettingState(asAdmin, startWithWindows, backgroundRun, autoPlay); Title = $"{Shortcut.ProductName} - 自 {App.StartQueryTime:yy年M月d日 H点m分} 以来的统计数据"; }; }
public void AddWorkOrder(TaskMenu menu) { this.menu = menu; }
static void Main(string[] args) { TaskMenu menu = new TaskMenu(); menu.Show(); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (this.FormBorderStyle != FormBorderStyle.None) { TaskMenu.InitSYSMENU(this); } else { TaskMenu.ShowSYSMENU(this); } if (this.ControlBox) { this.ButtonClose.Visible = true; if (!this.MinimizeBox) { this.ButtonMin.Visible = false; } else { this.ButtonMin.Visible = true; } if (!this.MaximizeBox) { this.ButtonMax.Visible = false; } else { this.ButtonMax.Visible = true; } } else { this.ButtonClose.Visible = false; this.ButtonMin.Visible = false; this.ButtonMax.Visible = false; } ResizeControl(); int Rgn = Win32.CreateRoundRectRgn(0, 0, this.Width + 1, this.Height + 1, 5, 5); Win32.SetWindowRgn(this.Handle, Rgn, true); isOneLoad = false; slist = new List <string>(14); slist.Add("pic_defaultcolor_normal"); if (Directory.Exists(Application.StartupPath + "\\skins")) { string[] sd = Directory.GetDirectories(Application.StartupPath + "\\skins"); for (int i = 0; i < sd.Length; i++) { string[] sf = Directory.GetFiles(sd[i], "main*"); if (sf.Length > 0) { slist.Add(sd[i]); } } } LoadSkinList(); string msg = "我的好友;12;0;0ッ20000;芭比娃娃;暂无;big1;2;0000-00-00;;127.0.0.1;3300;1ソ20002;低调华丽;暂无;big1;2;0000-00-00;;127.0.0.1;3301;0ソ20003;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20004;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20005;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20006;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20007;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20008;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20009;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20010;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20011;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0ソ20012;☆Kiss☆;暂无;big1;1;0000-00-00;;127.0.0.1;3303;0テlove;1;0;1ッ20001;翱翔雄鹰;暂无;big1;1;0000-00-00;;127.0.0.1;3301;0テaaaaa;1;0;2ッ20013;翱翔雄鹰13;暂无;big1;1;0000-00-00;;127.0.0.1;3301;0テrrrtrr;1;0;3ッ20014;翱翔雄鹰14;暂无----------------------------;big1;1;0000-00-00;;127.0.0.1;3301;0テgggg;1;0;4ッ20015;翱翔雄鹰15;暂无15;big1;1;0000-00-00;;127.0.0.1;3301;0"; Login(msg); }