private void SystemInfoSetting_Load(object sender, EventArgs e) { if (!PubFunc.IsInDesignMode()) { PasswordTabPage_Load(); } }
public JThumbnailView() { InitializeComponent(); if (PubFunc.IsInDesignMode()) { return; } ImageList il = new ImageList(); il.ImageSize = new Size(thumbNailSize, thumbNailSize); il.ColorDepth = ColorDepth.Depth32Bit; il.TransparentColor = Color.White; LargeImageList = il; HandleDestroyed += new EventHandler(JThumbnailView_HandleDestroyed); this.ListViewItemSorter = new ListViewColumnSorter(); this.ColumnClick += new ColumnClickEventHandler(ListViewHelper.ListView_ColumnClick); // m_PrivewFileManager = new PrivewFileManager(); this.folderName = m_LastPreviewForlder = m_PrivewFileManager.GetTheLastForderName(); this.InitListHeader(); this.AnimateTime.Tick += new EventHandler(AnimateTime_Tick); this.AnimateTime.Interval = 200; }
public PrintingInfo() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call #if SHIDAO this.inkTankStatusControl1.Visible = this.purgeControl1.Visible = true; #else this.inkTankStatusControl1.Visible = this.purgeControl1.Visible = false; #endif #if ALLWIN maintenanceSystemStatus1.Visible = true; #else maintenanceSystemStatus1.Visible = false; #endif if (PubFunc.IsInDesignMode()) { return; } if (SPrinterProperty.IsBiHong() && UIFunctionOnOff.SwapXwithY) { m_PrintPreview.Rotate = RotateFlipType.Rotate90FlipNone; } if (UIFunctionOnOff.PreviewRotate180) { m_PrintPreview.Rotate = RotateFlipType.Rotate180FlipNone; } }
/// <summary> /// The set clean parameter. /// </summary> /// <param name="value"> /// The value. /// </param> public void setCleanParameter(CleanparaEpsonMicolor value) { if (PubFunc.IsInDesignMode()) { return; } this.mCleanParameter = value; this.numCarriage_X_Wipe_Speed.Value = this.mCleanParameter.Carriage_X_Wipe_Speed; this.numSpeed_Interval1.Value = this.mCleanParameter.Speed_Interval[0]; this.numSpeed_Interval2.Value = this.mCleanParameter.Speed_Interval[1]; this.numSpeed_Interval3.Value = this.mCleanParameter.Speed_Interval[2]; this.numSpeed_Interval4.Value = this.mCleanParameter.Speed_Interval[3]; this.numRotateDir.Value = this.mCleanParameter.RotateDir; this.numWiper_Y_HideToWipeDistance.Value = this.mCleanParameter.Wiper_Y_HideToWipeDistance; this.numWiper_Y_WipeToSuckDistance.Value = this.mCleanParameter.Wiper_Y_WipeToSuckDistance; this.numWiper_Y_SuckToHideDistance.Value = this.mCleanParameter.Wiper_Y_SuckToHideDistance; this.numsectionCount.Value = this.mCleanParameter.sectionCount; this.numCarriage_X_SuckPos.Value = this.mCleanParameter.Carriage_X_SuckPos; this.numCarriage_X_ReleasePos.Value = this.mCleanParameter.Carriage_X_ReleasePos; this.numCarriage_X_WipePos_Start.Value = this.mCleanParameter.Carriage_X_WipePos_Start; this.numCarriage_X_WipePos_End.Value = this.mCleanParameter.Carriage_X_WipePos_End; this.numCarriage_X_FlashPos.Value = this.mCleanParameter.Carriage_X_FlashPos; this.Section1.setCleanSection(this.mCleanParameter.sections[0]); this.Section2.setCleanSection(this.mCleanParameter.sections[1]); this.Section3.setCleanSection(this.mCleanParameter.sections[2]); this.Section4.setCleanSection(this.mCleanParameter.sections[3]); this.numWiper_Y_HideToWipeDistance_1.Value = this.mCleanParameter.Wiper_Y_HideToWipeDistance_1; this.numCarriage_X_WipePos_1_Start.Value = this.mCleanParameter.Carriage_X_WipePos_1_Start; this.numCarriage_X_WipePos_1_End.Value = this.mCleanParameter.Carriage_X_WipePos_1_End; }
protected override void OnLocationChanged(EventArgs e) { if (PubFunc.IsInDesignMode()) { homeLocation = Location; } base.OnLocationChanged(e); }
private void tabControl1_MouseClick(object sender, MouseEventArgs e) { // this.Expened = !this._Expened; if (PubFunc.IsInDesignMode()) { return; } SlideErrorlist(); }
private void CameraSettings_Load(object sender, EventArgs e) { if (PubFunc.IsInDesignMode()) { return; } toolStripComboBox1.SelectedIndex = 0; LoadCemraSettings(); }
private void collapse() { itmExpand.Text = "Expand Panel"; fullHeight = Height; int[] d = new int[managedControls.Count]; Control tmp; for (int i = 0; i < managedControls.Count; i++) { tmp = Parent.Controls[Parent.Controls.IndexOf((Control)managedControls[i])]; d[i] = tmp.Location.Y - Location.Y - Height; } if (animationSpeed != AnimationSpeed.NoAnimation && !PubFunc.IsInDesignMode()) { // Perform animation while (Height > pnlHeader.Height + 24) { Height -= 24; Invalidate(); Update(); if (manageControls && !PubFunc.IsInDesignMode()) { for (int i = 0; i < managedControls.Count; i++) { c = (Control)managedControls[i]; c.Location = new Point(c.Location.X, c.Location.Y - 24); } } Thread.Sleep(animationStepDelay); } } Height = pnlHeader.Height; if (manageControls) { for (int i = 0; i < managedControls.Count; i++) { c = (Control)managedControls[i]; c.Location = new Point(c.Location.X, Location.Y + Height + d[i]); } } Invalidate(); Update(); // Clear memory //GC.Collect(); // Raise event OnStatusChanged(new DropDownPanelEventArgs(expanded)); }
private void createAutoCollapseTimer() { if (!PubFunc.IsInDesignMode() && autoCollapseDelay > 0) { autoCollapseTimer = new System.Windows.Forms.Timer(); autoCollapseTimer.Tick += new EventHandler(autoCollapseTimer_Tick); autoCollapseTimer.Interval = autoCollapseDelay; autoCollapseTimer.Enabled = true; autoCollapseTimer.Start(); } }
private void button2_Click(object sender, System.EventArgs e) { if (PubFunc.IsInDesignMode()) { return; } if (this.StartButtonClicked != null) { this.StartButtonClicked(this.button2, new EventArgs()); } }
protected override void OnSizeChanged(System.EventArgs e) { // Skip if the expanding/collapsing animation is running (prevents flickering) if (PubFunc.IsInDesignMode()) { fullHeight = Height; } pnlHeader.Width = Width; createPaths(); Invalidate(); Update(); base.OnSizeChanged(e); }
public MoveSetting() { // This call is required by the Windows Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call if (PubFunc.IsInDesignMode()) { return; } bool isVisible = (!PubFunc.IsFhzl3D() && !SPrinterProperty.IsSimpleUV() && (PubFunc.GetUserPermission() == (int)UserPermission.SupperUser)) || PubFunc.IsZhuoZhan(); button4Up.Visible = button4Down.Visible = label1.Visible = m_ComboBox4speed.Visible = isVisible; }
public PrintingInfo() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); if (PubFunc.IsInDesignMode())//设计时支持 { return; } // TODO: Add any initialization after the InitializeComponent call if (SPrinterProperty.IsBiHong() && UIFunctionOnOff.SwapXwithY) { m_PrintPreview.Rotate = RotateFlipType.Rotate90FlipNone; } if (UIFunctionOnOff.PreviewRotate180) { m_PrintPreview.Rotate = RotateFlipType.Rotate180FlipNone; } }
public PreferenceSetting() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call if (PubFunc.IsInDesignMode()) { return; } string skinpath = Path.Combine(Application.StartupPath, CoreConst.SkinForlderName); DirectoryInfo skinDir = new DirectoryInfo(skinpath); DirectoryInfo[] skins = skinDir.GetDirectories(); comboBoxSkins.Items.Clear(); for (int i = 0; i < skins.Length; i++) { comboBoxSkins.Items.Add(skins[i].Name); } }
/// <summary> /// The set clean section. /// </summary> /// <param name="value"> /// The value. /// </param> public void setCleanSection(CLEANSECTION_EPSON_MICOLOR value) { this.mmicolor_cleansection = value; if (PubFunc.IsInDesignMode()) { return; } this.comboBoxtype.SelectedIndex = (int)this.mmicolor_cleansection.type; this.numericUpDownLoopTimes.Value = this.mmicolor_cleansection.LoopTimes; this.numericUpDownsuckInkTime.Value = this.mmicolor_cleansection.SuckInkTime; this.numericUpDownStayTime.Value = this.mmicolor_cleansection.StayTime; this.numericUpDownReleaseTime.Value = this.mmicolor_cleansection.ReleaseTime; this.numericUpDownFlashFreqInterval.Value = this.mmicolor_cleansection.FlashFreqInterval; this.numericUpDownFlashTime.Value = this.mmicolor_cleansection.FlashTime; this.numericUpDownflashCycle.Value = this.mmicolor_cleansection.FlashCycle; this.numericUpDownFlashIdleInCycle.Value = this.mmicolor_cleansection.FlashIdleInCycle; this.numericUpDownSuckSpeed.Value = this.mmicolor_cleansection.SuckSpeed; this.numericUpDownMoveSpeed.Value = this.mmicolor_cleansection.MoveSpeed; this.numericUpDownOption.Value = this.mmicolor_cleansection.Option; }
/// <summary> /// The get clean section. /// </summary> /// <returns> /// </returns> public CLEANSECTION_EPSON_MICOLOR getCleanSection() { if (PubFunc.IsInDesignMode()) { return(this.mmicolor_cleansection); } this.mmicolor_cleansection.type = (MicolorCleanType)this.comboBoxtype.SelectedIndex; this.mmicolor_cleansection.LoopTimes = (byte)this.numericUpDownLoopTimes.Value; this.mmicolor_cleansection.SuckInkTime = (ushort)this.numericUpDownsuckInkTime.Value; this.mmicolor_cleansection.StayTime = (ushort)this.numericUpDownStayTime.Value; this.mmicolor_cleansection.ReleaseTime = (ushort)this.numericUpDownReleaseTime.Value; this.mmicolor_cleansection.FlashFreqInterval = (ushort)this.numericUpDownFlashFreqInterval.Value; this.mmicolor_cleansection.FlashTime = (byte)this.numericUpDownFlashTime.Value; this.mmicolor_cleansection.FlashCycle = (byte)this.numericUpDownflashCycle.Value; this.mmicolor_cleansection.FlashIdleInCycle = (byte)this.numericUpDownFlashIdleInCycle.Value; this.mmicolor_cleansection.SuckSpeed = (byte)this.numericUpDownSuckSpeed.Value; this.mmicolor_cleansection.MoveSpeed = (byte)this.numericUpDownMoveSpeed.Value; this.mmicolor_cleansection.Option = (byte)this.numericUpDownOption.Value; return(this.mmicolor_cleansection); }
/// <summary> /// The get clean parameter. /// </summary> /// <returns> /// </returns> public CleanparaEpsonMicolor getCleanParameter() { if (PubFunc.IsInDesignMode()) { return(this.mCleanParameter); } this.mCleanParameter = new CleanparaEpsonMicolor(); this.mCleanParameter.Carriage_X_Wipe_Speed = (byte)this.numCarriage_X_Wipe_Speed.Value; if (this.mCleanParameter.Speed_Interval == null) { this.mCleanParameter.Speed_Interval = new byte[4]; } this.mCleanParameter.Speed_Interval[0] = (byte)this.numSpeed_Interval1.Value; this.mCleanParameter.Speed_Interval[1] = (byte)this.numSpeed_Interval2.Value; this.mCleanParameter.Speed_Interval[2] = (byte)this.numSpeed_Interval3.Value; this.mCleanParameter.Speed_Interval[3] = (byte)this.numSpeed_Interval4.Value; this.mCleanParameter.RotateDir = (byte)this.numRotateDir.Value; this.mCleanParameter.Wiper_Y_HideToWipeDistance = (ushort)this.numWiper_Y_HideToWipeDistance.Value; this.mCleanParameter.Wiper_Y_WipeToSuckDistance = (ushort)this.numWiper_Y_WipeToSuckDistance.Value; this.mCleanParameter.Wiper_Y_SuckToHideDistance = (ushort)this.numWiper_Y_SuckToHideDistance.Value; this.mCleanParameter.sectionCount = (byte)this.numsectionCount.Value; this.mCleanParameter.Carriage_X_SuckPos = (short)this.numCarriage_X_SuckPos.Value; this.mCleanParameter.Carriage_X_ReleasePos = (ushort)this.numCarriage_X_ReleasePos.Value; this.mCleanParameter.Carriage_X_WipePos_Start = (ushort)this.numCarriage_X_WipePos_Start.Value; this.mCleanParameter.Carriage_X_WipePos_End = (ushort)this.numCarriage_X_WipePos_End.Value; this.mCleanParameter.Carriage_X_FlashPos = (ushort)this.numCarriage_X_FlashPos.Value; if (this.mCleanParameter.sections == null) { this.mCleanParameter.sections = new CLEANSECTION_EPSON_MICOLOR[4]; } this.mCleanParameter.sections[0] = this.Section1.getCleanSection(); this.mCleanParameter.sections[1] = this.Section2.getCleanSection(); this.mCleanParameter.sections[2] = this.Section3.getCleanSection(); this.mCleanParameter.sections[3] = this.Section4.getCleanSection(); this.mCleanParameter.Wiper_Y_HideToWipeDistance_1 = (ushort)this.numWiper_Y_HideToWipeDistance_1.Value; this.mCleanParameter.Carriage_X_WipePos_1_Start = (ushort)this.numCarriage_X_WipePos_1_Start.Value; this.mCleanParameter.Carriage_X_WipePos_1_End = (ushort)this.numCarriage_X_WipePos_1_End.Value; return(this.mCleanParameter); }
//SNozzleOverlap fwData = new SNozzleOverlap(null); public CloseColorNozzle_New() { InitializeComponent(); if (PubFunc.IsInDesignMode()) { return; } //加载模式 if (PubFunc.IsFactoryUser()) { IsSupperUser = true; } comboBox_model.Items.Clear(); foreach (CloseColorNozzleModelEnum place in Enum.GetValues(typeof(CloseColorNozzleModelEnum))) { string cmode = ResString.GetEnumDisplayName(typeof(CloseColorNozzleModelEnum), place); comboBox_model.Items.Add(cmode); } if (!IsSupperUser) { comboBox_model.Items.RemoveAt(2); } RowNum = CoreInterface.GetRowNum(); if (RowNum > 1) { RowNum -= 1; } //HeadNumPerRow = 0; //maxHeadNumPerRow = 0; //for (int i = 0; i < RowNum; i++) //{ // HeadNumPerRow = CoreInterface.GetHeadNumPerRow(i); // if (maxHeadNumPerRow < HeadNumPerRow) // { // maxHeadNumPerRow = HeadNumPerRow; // } //} //int lineIdx = 1; //for (int i = 0; i < RowNum; i++) //{ // List<byte> tempArray = new List<byte>(); // int lineNum = CoreInterface.GetLineNumPerRow(i); // for (int j = 0; j < lineNum; j++) // { // NozzleLineData lineData = new NozzleLineData(); // CoreInterface.GetlineIDtoNozzleline(lineIdx, ref lineData); // if (tempArray.IndexOf(lineData.ColorID) < 0) // { // tempArray.Add(lineData.ColorID); // } // lineIdx++; // } // if (maxHeadNumPerRow < tempArray.Count) // { // maxHeadNumPerRow = tempArray.Count; // } //} //从JobPrint中获取支持的最大颜色数 maxHeadNumPerRow = CoreInterface.GetLayoutColorNum(); for (int i = 0; i < maxHeadNumPerRow; i++) { LayoutColorNameEnums.Add((LayoutColorNameEnum)CoreInterface.GetLayoutColorID(i)); } m_HorColumnNum = CoreInterface.GetMaxColumnNum(); if (m_HorColumnNum < 1) { m_HorColumnNum = 1; } //if (maxHeadNumPerRow < 2) maxHeadNumPerRow = 2; comboBox_model.SelectedIndex = 0; }