private void fullScreenToolStripMenuItem_Click(object sender, EventArgs e) { if (_FullScreen == null) { _FullScreen = new FullScreen(ApWin.OnlineClientForm); } if (fullScreenToolStripMenuItem.Checked == false) { // show FullScreen DialogResult dr = MessageForm.Confirm(this, MsgE.ConfirmStoreNormalView); if (dr == DialogResult.Yes) { _FullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = false; statusStrip1.Visible = false; fullScreenToolStripMenuItem.Checked = true; } } else { // Hide FullScreen _FullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = true; statusStrip1.Visible = true; fullScreenToolStripMenuItem.Checked = false; } }
private void Login_Closed(object sender, EventArgs e) { FullScreen.ShowHHTaskBar(); this.picLoginMain.Image.Dispose(); this.picLogin.Image.Dispose(); Dispose(); }
public MainForm() { InitializeComponent(); //fullScreen mode String _ScreenMode = System.Configuration.ConfigurationManager.AppSettings["Screen Mode"]; FullScreen fullScreen = new FullScreen(); if ((ScreenMode)Enum.Parse(typeof(ScreenMode), _ScreenMode) == ScreenMode.Full) { fullScreen.EnterFullScreenMode(this); } else { fullScreen.LeaveFullScreenMode(this); } //背景設定 String root = System.Configuration.ConfigurationManager.AppSettings["photo_root"]; String backImgage = System.Configuration.ConfigurationManager.AppSettings["Background Image"]; String biPath = System.IO.Path.Combine(root, backImgage); if (System.IO.File.Exists(biPath)) { this.BackgroundImage = System.Drawing.Image.FromFile(biPath); } else { //Message.showMessageOK("I99000"); } //フォームのアイコンを設定する this.Icon = new System.Drawing.Icon(@"Asset\フォト君ForUser.ico"); }
/// <summary> /// @author : TrungMT /// @CreateDate:05/05/2008 /// @Description: show form and play 1 clip /// </summary> public FrmClipView(string pstrFilePlayList) { InitializeComponent(); mstrFilePlayList = pstrFilePlayList; mTimer.Enabled = false; mFullScreen = new FullScreen(this); }
private void FormMain_Load(object sender, EventArgs e) { using (FormLogin login = new FormLogin()) { login.StartPosition = FormStartPosition.CenterScreen; if (login.ShowDialog() == DialogResult.OK) { string username = login.Username; string password = login.Password; if (AppConfig.Instance.ValidateLogin(username, password)) { FullScreen.SetWinFullScreen(this.Handle); lblCompanyName.Text = AppConfig.Instance.CompanyName; lblCompanyAddress.Text = AppConfig.Instance.CompanyAddress + " (" + AppConfig.Instance.CompanyPhoneNumber + ")"; lblGateName.Text = AppConfig.Instance.GateName; OpenVideoPlayer(); OpenSerialPort(); } else { MessageBox.Show("Username atau password salah", "Gagal Login", MessageBoxButtons.OK, MessageBoxIcon.Information); Close(); } } else { Close(); } } }
public Player() { InitializeComponent(); var vlcPath = Classes.Utils.GetWinVlcPath(); if (vlcPath == null || System.IO.Directory.Exists(vlcPath)) { //string msg = string.Format("VLC {0} bit {1}. Tsunami Streaming {2}", Utils.Is64BitOs() ? "64" : "32", // (string)FindResource("NotFound"), // (string)FindResource("NotAvaiable")); //DialogHost dh = new DialogHost() { HorizontalAlignment = HorizontalAlignment.Center, // VerticalAlignment = VerticalAlignment.Center, // Name = "Warning" }; //dh.Content = msg; //dh.ShowDialog(msg).ContinueWith(t => t.Result); //Streaming.StreamingManager.SetPauseButtonStatus = null; //Streaming.StreamingManager.SetPlayButtonStatus = null; //Streaming.StreamingManager.SetStopButtonStatus = null; } else { //Streaming.StreamingManager.SetSurface?.Invoke(this, playerGrid); } fullScreenWindow = new FullScreen((Tsunami.MainWindow)Application.Current.MainWindow); }
/// <summary> /// Save Fullscreen button click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SaveButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(MsgRich.Text)) return; if (string.IsNullOrWhiteSpace(NameTextBox.Text)) { MessageBox.Show(ErrMsg.NameMissingError); return; } var newFullScreen = new FullScreen(MsgRich.Text) { block = (BlockNumeric.Value), sub_block = (SubBlockNumeric.Value), name = NameTextBox.Text }; if (this._existingTrial != null) { this.ReturnEdit = newFullScreen; } else { MainForm.AddFullscreen(newFullScreen); } this.Close(); }
/// <summary> /// 键盘按下 /// </summary> private void KeyDown_Event(IntPtr wParam, IntPtr lParam) { if (wParam.ToInt32() == 0x1B)//ESC按键释放 { Dispatcher.Invoke(() => { FullScreen?.Invoke(false); }); } }
private void FullScreen() { if (fullScreen == null) { fullScreen = new FullScreen(this); } if (fullScreenToolStripMenuItem.Checked == false) { // show FullScreen DialogResult dr = MessageBox.Show("To store normal view, press Ctrl + Alt + F", "Confirm", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { fullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = false; menuStrip1.Visible = false; toolStrip1.Visible = false; statusStrip1.Visible = false; fullScreenToolStripMenuItem.Checked = true; } } else { // Hide FullScreen fullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = true; menuStrip1.Visible = true; toolStrip1.Visible = true; statusStrip1.Visible = true; fullScreenToolStripMenuItem.Checked = false; } }
private void OnPointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args) { _recogniser.ProcessDownEvent(args.GetCurrentPoint(ControlRoot)); FullScreen.CapturePointer(args.Pointer); args.Handled = true; }
private int SshControlProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam) { if (msg == 0x0101 && wParam.ToInt32() == 0x1B)//WM_KEYUP ESC按键释放 { Dispatcher.Invoke(() => { FullScreen?.Invoke(false); }); } return(0); }
public FullscreenForm(FullScreen existing=null) { InitializeComponent(); this.NameGroupBox.Enabled = true; if (existing == null) return; this._existingTrial = existing; this.NameGroupBox.Enabled = false; UpdateExistingTrial(); }
private void CheckMain_Closed(object sender, EventArgs e) { FullScreen.ShowHHTaskBar(); this.picCheckMain.Image.Dispose(); this.pic_auto.Image.Dispose(); this.pic_manul.Image.Dispose(); this.pic_logout.Image.Dispose(); Dispose(); }
protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径 public CheckManual() { InitializeComponent(); this.picCheckManul.Image = new Bitmap(appPath + @"\Pics\chkent.png"); this.picDo.Image = new Bitmap(appPath + @"\Pics\chkentchk.png"); this.picBack.Image = new Bitmap(appPath + @"\Pics\tckback.png"); this.pic_logout.Image = new Bitmap(appPath + @"\Pics\chkentcancel.png"); FullScreen.HideHHTaskBar(); this.WindowState = FormWindowState.Maximized; }
/// <summary> /// Serves as the default hash function. /// </summary> /// <returns> /// A hash code for the current object. /// </returns> public override int GetHashCode() { unchecked { var hashCode = FullScreen.GetHashCode(); hashCode = (hashCode * 397) ^ Resolution.GetHashCode(); hashCode = (hashCode * 397) ^ VSync.GetHashCode(); return(hashCode); } }
protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径 public CheckMain() { InitializeComponent(); this.picCheckMain.Image = new Bitmap(@"\Program Files\PocketGate\Pics\chkmain.png"); this.pic_auto.Image = new Bitmap(@"\Program Files\PocketGate\Pics\chkmainbtn.png"); this.pic_manul.Image = new Bitmap(@"\Program Files\PocketGate\Pics\chkmainbtn.png"); this.pic_logout.Image = new Bitmap(@"\Program Files\PocketGate\Pics\chkmaincancel.png"); FullScreen.HideHHTaskBar(); this.WindowState = FormWindowState.Maximized; }
private void Form2_Closing(object sender, CancelEventArgs e) { Cursor.Show(); if (parentForm.FULLSCREEN) { FullScreen.StopFullScreen(this); } parentForm.blackForm = null; parentForm.Show(); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); fullScreen = new FullScreen(this); this.controlCtrl.PictureBox = this.zwPictureBox; this.zwPictureBox.RegisterHandler(); this.zwPictureBox.LoadImage(); this.zwPictureBox.EscapeFullScreenHandler += EscapeFullScreenHandler; sysConfig.PropertyChanged += EntryForm_PropertyChanged; fullScreen.ShowFullScreen(); }
/// <summary> /// @author : TrungMT /// @CreateDate:05/05/2008 /// @Description: show form and play many clip /// </summary> public FrmClipView(DataRowCollection pClipRows, TimeSpan ptServerLocalDelay,QTC.Adv.DataModule.Single.Workstation workstation) { InitializeComponent(); this.workstation = workstation; mClipRows = pClipRows; Stopped = true; InitTimmerList(); mTimer.Enabled = true; mtServerLocalDelay = ptServerLocalDelay; mFullScreen = new FullScreen(this); }
public ActionResult EditFS(FullScreen fs) { if (ModelState.IsValid) { db.Entry(fs).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fs)); }
private void Start() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { instance = this; } DontDestroyOnLoad(this); }
private void MainForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) { FullScreen.StopFullScreen(this); if (isBarcodeInitiated) { myScanSampleAPI.TermBarcode(); //Remove Form event handlers this.Activated -= myFormActivatedEventHandler; this.Deactivate -= myFormDeactivatedEventHandler; } }
static int Adjust_Scale(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FullScreen obj = (FullScreen)ToLua.CheckObject <FullScreen>(L, 1); obj.Adjust_Scale(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Method to enter the full screen mode. /// Really simple, if the user clicks on the image, the full screen /// window closes and the main window shows up. /// /// Could be improved passing current zoom. /// </summary> /// <param name="sender">Icon/Inage/Button</param> /// <param name="e">Mouse Event Args</param> private void OnMouseDownFullScreen(object sender, MouseButtonEventArgs e) { if (isMedia) { mediaPlayer.Stop(); var fsw = new FullScreen(file); fsw.Show(); } else { var fsw = new FullScreenImage(file); fsw.Show(); } }
private void Form1_Load(object sender, EventArgs e) { TimerAbout.Start(); Temp = new Form(); Temp.WindowState = FormWindowState.Maximized; Temp.KeyUp += new KeyEventHandler(Form1_KeyUp); Temp.BackColor = Color.Black; Temp.ShowInTaskbar = false; Temp.FormBorderStyle = FormBorderStyle.None; g = Temp.CreateGraphics(); //g.DrawImage(PBDataShow.Image, new Point(0, 0)); //g.ScaleTransform(1.2f, 1.2f); FS = new FullScreen(Temp); }
public ActionResult EditFS(FullScreen fs) { if (ModelState.IsValid) { Panel panel = db.Panels.Find(fs.PanelId); panel.FadeLength = fs.FadeLength; db.Entry(panel).State = EntityState.Modified; db.Entry(fs).State = EntityState.Modified; db.SaveChanges(); return(this.RestoreReferrer() ?? RedirectToAction("Index")); } return(View(fs)); }
static int SetSize(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FullScreen obj = (FullScreen)ToLua.CheckObject <FullScreen>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SetSize(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
// // GET: /Panel/EditFS/5 public ActionResult EditFS(int id = 0) { FullScreen fs = db.Panels .Find(id) .FullScreens .FirstOrDefault() ; if (fs == null) { return(View("Missing", new MissingItem(id))); } fs.FadeLength = fs.Panel.FadeLength; return(View(fs)); }
static int set__method(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FullScreen obj = (FullScreen)o; AdaptationMethod arg0 = (AdaptationMethod)ToLua.CheckObject(L, 2, typeof(AdaptationMethod)); obj._method = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index _method on a nil value")); } }
static int get__method(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FullScreen obj = (FullScreen)o; AdaptationMethod ret = obj._method; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index _method on a nil value")); } }
private void MainForm_Load(object sender, System.EventArgs e) { //this.myActivateHandler = new System.EventHandler(this.listViewMain_ItemActivate); // this.listViewMain.ItemActivate += this.myActivateHandler; // Add MainMenu if Pocket PC if (Symbol.Win32.PlatformType.IndexOf("PocketPC") != -1) { this.Menu = new MainMenu(); } // Initialize the ScanSampleAPI reference. this.myScanSampleAPI = new API(); this.isBarcodeInitiated = this.myScanSampleAPI.InitBarcode(); if (!(this.isBarcodeInitiated))// If the Barcode object has not been initialized { // Display a message & exit the application. MessageBox.Show(Resources.GetString("AppExitMsg")); Application.Exit(); } else // If the Barcode object has been initialized { // Clear the statusbar where subsequent status information would be displayed. //statusBar.Text = ""; // Attach a scan notification handler. this.myScanNotifyHandler = new Barcode2.OnScanHandler(myBarcode2_ScanNotify); myScanSampleAPI.AttachScanNotify(myScanNotifyHandler); // Attach a status notification handler. //this.myStatusNotifyHandler = new Barcode2.OnStatusHandler(myBarcode2_StatusNotify); //myScanSampleAPI.AttachStatusNotify(myStatusNotifyHandler); } // Ensure that the keyboard focus is set on a control. myFormActivatedEventHandler = new EventHandler(MainForm_Activated); myFormDeactivatedEventHandler = new EventHandler(MainForm_Deactivate); this.Activated += myFormActivatedEventHandler; this.Deactivate += myFormDeactivatedEventHandler; FullScreen.StartFullScreen(this); }
private void Main_QD_Load(object sender, EventArgs e) { try { ThreadStart starter = delegate { ThreadCallBusy("正在启动..."); }; tBusy = new Thread(starter); tBusy.Start(); //隐藏输入法 ImmDisableIME(0); //隐藏任务栏 FullScreen.HideHHTaskBar(); this.WindowState = FormWindowState.Maximized; Config = Configuration.ReadConfig(); if (Config == null) { MessageBox.Show("配置文件丢失!", "提示"); if (tBusy != null) { tBusy.Abort(); } Close(); } //创建桌面快速启动图标 CreateDesktopIcon(); //读登录页设备码和用户名 txtDevice.Text = Config.DeviceCode; txtUsr.Text = Config.UserName; timer.Tick += new EventHandler(timer_Tick); timer.Interval = 1000; timer.Enabled = true; timedelay = int.Parse(Config.ReturnDelay); } catch (Exception ex) { MessageBox.Show(ex.Message, "严重错误即将关闭"); Close(); } finally { if (tBusy != null) { tBusy.Abort(); } } }
/// <summary> /// @author : TrungMT /// @CreateDate:05/05/2008 /// @Description: show form and play default clip /// </summary> public FrmClipView() { InitializeComponent(); mTimer.Enabled = false; mFullScreen = new FullScreen(this); mFullScreen.ShowFullScreen(); PlayClipDefault(); }