예제 #1
0
 private void CheckBoxItem_PerspectiveMode_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     if (((CheckBoxItem)sender).Checked)
     {
         Main.ogl.ChangeViewMode(false);
     }
 }
예제 #2
0
 /// <summary>
 /// 仅录入盘存数
 /// </summary>
 /// <param name="sender">控件</param>
 /// <param name="e">参数</param>
 private void chkInput_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     if (chkInput.Checked)
     {
         dgDetails.Columns["MaterialID"].ReadOnly    = true;
         dgDetails.Columns["CenterMatName"].ReadOnly = true;
         dgDetails.Columns["Spec"].ReadOnly          = true;
         dgDetails.Columns["ProductName"].ReadOnly   = true;
         dgDetails.Columns["Place"].ReadOnly         = true;
         dgDetails.Columns["BatchNO"].ReadOnly       = true;
         dgDetails.Columns["ValidityDate"].ReadOnly  = true;
         dgDetails.Columns["RetailPrice"].ReadOnly   = true;
         dgDetails.Columns["StockPrice"].ReadOnly    = true;
         dgDetails.Columns["ActAmount"].ReadOnly     = true;
         dgDetails.Columns["UnitName"].ReadOnly      = true;
         dgDetails.Columns["FactAmount"].ReadOnly    = false;
     }
     else
     {
         dgDetails.Columns["MaterialID"].ReadOnly    = false;
         dgDetails.Columns["CenterMatName"].ReadOnly = true;
         dgDetails.Columns["Spec"].ReadOnly          = true;
         dgDetails.Columns["ProductName"].ReadOnly   = true;
         dgDetails.Columns["Place"].ReadOnly         = true;
         dgDetails.Columns["BatchNO"].ReadOnly       = true;
         dgDetails.Columns["ValidityDate"].ReadOnly  = true;
         dgDetails.Columns["RetailPrice"].ReadOnly   = true;
         dgDetails.Columns["StockPrice"].ReadOnly    = true;
         dgDetails.Columns["ActAmount"].ReadOnly     = true;
         dgDetails.Columns["UnitName"].ReadOnly      = true;
         dgDetails.Columns["FactAmount"].ReadOnly    = false;
     }
 }
예제 #3
0
        private void viewCheckboxes_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            ItemTypes newVisibleTypes = 0;
            ItemTypes newEditedTypes  = 0;

            foreach (CheckBoxItem checkbox in checkboxes)
            {
                switch (checkbox.CheckState)
                {
                case CheckState.Checked:
                    newVisibleTypes ^= (ItemTypes)checkbox.Tag;
                    newEditedTypes  ^= (ItemTypes)checkbox.Tag;
                    break;

                case CheckState.Indeterminate:
                    newVisibleTypes ^= (ItemTypes)checkbox.Tag;
                    break;
                }
            }
            ApplicationSettings.visibleTypes = newVisibleTypes;
            ApplicationSettings.editedTypes  = newEditedTypes;
            if (multiBoard.SelectedBoard != null)
            {
                InputHandler.ClearSelectedItems(multiBoard.SelectedBoard);
            }
            multiBoard.RenderFrame();
        }
예제 #4
0
 private void CheckBoxItem_OrthoMode_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     if (((CheckBoxItem)sender).Checked)
     {
         Main.ogl.ChangeViewMode(true);
     }
 }
예제 #5
0
 /// <summary>
 /// 事件
 /// </summary>
 /// <param name="sender">对象</param>
 /// <param name="e">参数</param>
 private void chkInput_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     if (chkInput.Checked)
     {
         dgDetails.Columns["DrugID"].ReadOnly      = true;
         dgDetails.Columns["ChemName"].ReadOnly    = true;
         dgDetails.Columns["Spec"].ReadOnly        = true;
         dgDetails.Columns["ProductName"].ReadOnly = true;
         dgDetails.Columns["Place"].ReadOnly       = true;
         dgDetails.Columns["RetailPrice"].ReadOnly = true;
         dgDetails.Columns["StockPrice"].ReadOnly  = true;
         dgDetails.Columns["ActPackNum"].ReadOnly  = true;
         dgDetails.Columns["PackUnit"].ReadOnly    = true;
         dgDetails.Columns["ActBaseNum"].ReadOnly  = true;
         dgDetails.Columns["UnitName"].ReadOnly    = true;
         dgDetails.Columns["FactPackNum"].ReadOnly = false;
         dgDetails.Columns["FactBaseNum"].ReadOnly = false;
     }
     else
     {
         dgDetails.Columns["DrugID"].ReadOnly      = false;
         dgDetails.Columns["ChemName"].ReadOnly    = true;
         dgDetails.Columns["Spec"].ReadOnly        = true;
         dgDetails.Columns["ProductName"].ReadOnly = true;
         dgDetails.Columns["Place"].ReadOnly       = true;
         dgDetails.Columns["RetailPrice"].ReadOnly = true;
         dgDetails.Columns["StockPrice"].ReadOnly  = true;
         dgDetails.Columns["ActPackNum"].ReadOnly  = true;
         dgDetails.Columns["PackUnit"].ReadOnly    = true;
         dgDetails.Columns["ActBaseNum"].ReadOnly  = true;
         dgDetails.Columns["UnitName"].ReadOnly    = true;
         dgDetails.Columns["FactPackNum"].ReadOnly = false;
         dgDetails.Columns["FactBaseNum"].ReadOnly = false;
     }
 }
예제 #6
0
        private void OnDockedStyleCheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            AppManager.Instance.Settings.UserSettings.UseDockedStyle = checkBoxItemDocked.Checked;
            AppManager.Instance.Settings.UserSettings.Save();

            if (checkBoxItemDocked.Checked)
            {
                AppManager.Instance.Settings.UserSettings.AlwaysExpanded = AppManager.Instance.Settings.UserSettings.DefaultAlwaysExpanded;
                AdjustWindowPosition();

                buttonItemScreen1.Enabled = true;
                buttonItemScreen2.Enabled = true;
                buttonItemScreen3.Enabled = true;
                buttonItemScreen4.Enabled = true;
                buttonItemScreen5.Enabled = true;
                buttonItemScreen6.Enabled = true;

                _buttonItemDock.Visible     = false;
                _buttonItemUndock.Visible   = AppManager.Instance.Settings.Config.ShowUndockButton;
                _buttonItemCollapse.Visible = false;
                notifyIcon.Visible          = false;
            }
            else
            {
                buttonItemScreen1.Enabled = false;
                buttonItemScreen2.Enabled = false;
                buttonItemScreen3.Enabled = false;
                buttonItemScreen4.Enabled = false;
                buttonItemScreen5.Enabled = false;
                buttonItemScreen6.Enabled = false;

                _buttonItemDock.Visible     = AppManager.Instance.Settings.Config.ShowDockRegularButton;
                _buttonItemUndock.Visible   = false;
                _buttonItemCollapse.Visible = true;
                notifyIcon.Visible          = true;

                if (AppManager.Instance.Settings.UserSettings.DefaultShowFloaterWhenUndock)
                {
                    Opacity = 0;
                }

                Move -= OnFormMainMove;
                Top   = AppManager.Instance.Settings.UserSettings.FormLocationTop ?? Top;
                Left  = AppManager.Instance.Settings.UserSettings.FormLocationLeft ?? Left;
                Move += OnFormMainMove;

                if (AppManager.Instance.Settings.UserSettings.AlwaysExpanded)
                {
                    UncollapseWindow();
                }

                if (AppManager.Instance.Settings.UserSettings.DefaultShowFloaterWhenUndock)
                {
                    AppManager.Instance.Settings.UserSettings.ShowFloaterWhenUndock = true;
                    AppManager.Instance.Settings.UserSettings.Save();
                    ShowFloaterForm();
                }
            }
        }
예제 #7
0
        private void viewCheckboxes_CheckedChanging(object sender, CheckBoxChangeEventArgs e)
        {
            CheckBoxItem checkBox = (CheckBoxItem)sender;

            if (!usingMouse && checkBox.Checked && (ApplicationSettings.editedTypes & (ItemTypes)checkBox.Tag) == (ItemTypes)checkBox.Tag)
            {
                e.Cancel = true;
            }
        }
예제 #8
0
파일: Core.cs 프로젝트: CairoLee/svn-dump
        private void chkSettingComments_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            if (mSelectedFile != string.Empty)
            {
                FillGrid(mSelectedFile);
            }

            Properties.Settings.Default.ShowComments = chkSettingComments.Checked;
        }
예제 #9
0
        private void checkBoxItem1_CheckedChanged(object sender, CheckBoxChangeEventArgs e) // 绘制region边界
        {
            BaseForm baseForm = this.ActiveMdiChild as BaseForm;

            if (baseForm != null)
            {
                baseForm.SetRenderRegionEdge((sender as DevComponents.DotNetBar.CheckBoxItem).Checked);
            }
        }
예제 #10
0
        private void checkShowPoly_CheckedChanged(object sender, CheckBoxChangeEventArgs e) // 绘制多边形
        {
            BaseForm baseForm = this.ActiveMdiChild as BaseForm;

            if (baseForm != null)
            {
                m_bRenderPoly = checkShowPoly.Checked;
                baseForm.SceneSceneEditor.EnableRenderPoly((sender as DevComponents.DotNetBar.CheckBoxItem).Checked ? 1 : 0);
            }
        }
예제 #11
0
        void SampleListCheckBox_Change(object sender, CheckBoxChangeEventArgs e)
        {
            try
            {
                Util.WriteToChat("SampleListCheckBox_Change " + SampleListCheckBox.Checked);

                SampleListText.Text = SampleListCheckBox.Checked.ToString();
            }
            catch (Exception ex) { Util.LogError(ex); }
        }
예제 #12
0
 private void a(object A_0, CheckBoxChangeEventArgs A_1)
 {
     if (this.a != null)
     {
         this.a(this, new MVCheckBoxChangeEventArgs(base.Id, this.Checked));
     }
     if (this.b != null)
     {
         this.b(this, null);
     }
 }
예제 #13
0
 private void allLayersBox_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     if (multiBoard.SelectedBoard == null)
     {
         return;
     }
     layersComboBox.Enabled = !allLayersBox.Checked;
     SetLayer();
     InputHandler.ClearSelectedItems(multiBoard.SelectedBoard);
     multiBoard.RenderFrame();
 }
예제 #14
0
        /// <summary>
        /// Handles CheckBox CheckChange events for non-base items
        ///
        /// This routine handles item CheckBox.Checked changes. This routine
        /// then propagates the change to the BaseCalendarItem.  All
        /// associated items should have hooked onto the BaseCalendarItem so
        /// that they will be notified of the change (via BaseCheckedChanged).
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            GlossyCustomItem myView = (GlossyCustomItem)BaseCalendarItem;

            // Propagate the change

            if (myView != null)
            {
                myView.CheckBox.Checked = _CheckBox.Checked;
            }
        }
예제 #15
0
파일: MainForm.cs 프로젝트: BJFX/UWACN
        private void ConnectNode_CheckedChanging(object sender, CheckBoxChangeEventArgs e)
        {
            e.Cancel = true;

            if (CommLineForm.bConnect == true)
            {
                if (ConnectNode.Checked)
                {
                    string                  message       = "是否关闭当前连接?";
                    string                  caption       = "消息";
                    MessageBoxButtons       buttons       = MessageBoxButtons.OKCancel;
                    MessageBoxIcon          icon          = MessageBoxIcon.Question;
                    MessageBoxDefaultButton defaultResult = MessageBoxDefaultButton.Button2;
                    // Show message box
                    DialogResult result = MessageBox.Show(message, caption, buttons, icon, defaultResult);
                    if (result == DialogResult.OK)
                    {
                        CommandLineWin.ExecCommand("disconnect");
                    }
                    else
                    {
                        e.Cancel = true;
                    }
                }
                else
                {
                    e.Cancel = false;

                    IpConnect.ControlText = MainForm.pMainForm.CommandLineWin.Tclient.Client.RemoteEndPoint.ToString().Split(':')[0];
                }
            }
            else if ((CommandLineWin.ConnNodeBtn.Text == "取消连接") && (!CommLineForm.bConnect))
            {
                CommandLineWin.ExecCommand("disconnect");
                e.Cancel = true;
            }
            else
            {
                IPAddress addr = new IPAddress(0x1111);
                if (ConnectNode.Checked)//断开
                {
                    e.Cancel = false;
                }
                else//要连接
                {
                    if (IPAddress.TryParse(IpConnect.TextBox.Text, out addr))
                    {
                        ConnectNode.Text = "取消连接";
                        CommandLineWin.ConnectNode(addr);
                    }
                }
            }
        }
예제 #16
0
        /// <summary>
        /// Handles CheckBox CheckChange events for base items
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void BaseCheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            GlossyCustomItem myView = (GlossyCustomItem)BaseCalendarItem;

            if (myView != null)
            {
                // Update our state and refresh our control

                _CheckBox.Checked = myView.CheckBox.Checked;

                Refresh();
            }
        }
예제 #17
0
        private void OnLoadAtStartupCheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            if (checkBoxItemLoadAtStartup.Checked)
            {
                LoadAtStartupHelper.SetLoadAtStartup();
            }
            else
            {
                LoadAtStartupHelper.UnsetLoadAtStartup();
            }

            AppManager.Instance.Settings.UserSettings.LoadAtStartup = checkBoxItemLoadAtStartup.Checked;
            AppManager.Instance.Settings.UserSettings.Save();
        }
예제 #18
0
        void item_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            List <string> displays = new List <string>();

            foreach (BaseItem item in btnShowItems.SubItems)
            {
                CheckBoxItem citem = (CheckBoxItem)item;
                if (citem.Checked)
                {
                    displays.Add(citem.Text);
                }
                _showItems[item.Text] = citem.Checked;
            }
            _helper.ResetDisplayColumn(displays);
        }
예제 #19
0
        /// <summary>
        /// 周报内容勾选
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ckItem_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            Setting      setting = bll.GetSetting(ProjectId);
            CheckBoxItem item    = (CheckBoxItem)sender;
            int          index   = int.Parse(item.Tag.ToString()) - 1;

            listContent[index] = item.Checked ? "1" : "0";
            string result = "";

            for (int i = 0; i < 8; i++)
            {
                result += listContent[i] + ",";
            }
            setting.WeeklyCheck = result;
            bll.SaveSetting(setting);
        }
        private void Cbi_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            var  cbi       = sender as CheckBoxItem;
            bool isChecked = cbi.Checked;

            foreach (DevComponents.AdvTree.Node node in tree.Nodes)
            {
                if (node.HostedItem == cbi)
                {
                    foreach (DevComponents.AdvTree.Node subNode in node.Nodes)
                    {
                        ((CheckBoxItem)subNode.HostedItem).Checked = isChecked;
                    }
                    break;
                }
            }
        }
예제 #21
0
 //俯视浏览
 private void checkBoxItem_LookDown_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     try
     {
         flyAnimationClass.IsFlyLookdown = this.checkBoxItem_LookDown.Checked;
         FlyAnimationPlayStop();//停止飞行
         if (IsFlyByPolyline)
         {
             flyAnimationClass.CreateAnimationFromPath(flyAnimationClass.globe, flyAnimationClass.FlyPathPolyline,
                                                       this.ratingItem_FlySpeed.Rating, this.checkBoxItem_Loop.Checked, this.checkBoxItem_LookDown.Checked);
         }
         if (TimerProgressBar != null)
         {
             //进度条控制
             this.TimerProgressBar.Stop();
             this.progressBarItem_FlyAnimation.Value = this.progressBarItem_FlyAnimation.Maximum;
             this.progressBarItem_FlyAnimation.Text  = "";
             ProgressBarValue = 0;
             this.progressBarItem_FlyAnimation.Refresh();
         }
     }
     catch { }
 }
예제 #22
0
 private void cb_showMenu_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     this.splitContainer1.Panel1Collapsed = !cb_showMenu.Checked;
 }
예제 #23
0
        //protected override void OnEnter(EventArgs e)
        //{
        //    if (this.CheckBoxStyle == eCheckBoxStyle.RadioButton && Control.MouseButtons == MouseButtons.None && WinApi.GetKeyState(9) < 0 && this.AutoCheck)
        //    {
        //        m_CheckBox.SetChecked(true, eEventSource.Keyboard);
        //    }
        //    base.OnEnter(e);
        //}

        /// <summary>
        /// Invokes the CheckedChanged event.
        /// </summary>
        private void OnCheckedChanged(object sender, CheckBoxChangeEventArgs e)
        {
            CheckBoxX previous = null;
            if (m_CheckBox.CheckBoxStyle == eCheckBoxStyle.RadioButton && m_CheckBox.Checked && this.Parent != null)
            {
                foreach (Control c in this.Parent.Controls)
                {
                    if (c == this)
                    {
                        //c.TabStop = true;
                        continue;
                    }
                    CheckBoxX b = c as CheckBoxX;
                    if (b != null && b.Checked && b.CheckBoxStyle == eCheckBoxStyle.RadioButton)
                    {
                        b.Checked = false;
                        //b.TabStop = false;
                        previous = b;
                    }
                }
            }

            if (this.Command != null)
                this.Command.Checked = this.Checked;

            CheckBoxXChangeEventArgs e1 = new CheckBoxXChangeEventArgs(previous, this, e.EventSource);

            if (CheckedChangedEx != null)
                CheckedChangedEx(this, e1);

            if (CheckedChanged != null)
                CheckedChanged(this, new EventArgs());

            if (GetCheckState(m_CheckValue) != this.CheckState)
                m_CheckValue = GetCheckValue(this.CheckState);

            if (CheckValueChanged != null)
                CheckValueChanged(this, new EventArgs());

            ExecuteCommand();
        }
예제 #24
0
 private void checkToggleShowProfile_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     EngineLayer.ATLBase.SetShowProfile(e.NewChecked.Checked ? 1 : 0);
 }
예제 #25
0
 private void checkBoxItem1_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     navigationPane1.CanCollapse = checkBoxItem1.Checked;
 }
예제 #26
0
		private void chkArrowIndoors_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mArrowHud.DisplayIndoors = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #27
0
		private void chkAlwaysShowErrors_End(object sender, CheckBoxChangeEventArgs e)
		{
			Util.WriteErrorsToMainChat = e.Checked;
		}
예제 #28
0
		private void chkLockArrowPosition_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mArrowHud.PositionLocked = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #29
0
파일: Gobang.cs 프로젝트: goodoycg/Gobang
 private void chkDispalyStep_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     m_BDisplayStep = this.chkDispalyStep.Checked;
     this.Refresh();
 }
예제 #30
0
		private void chkDungeonMapAutoLoad_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mDungeonHud.AutoLoadMaps = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #31
0
		private void chkDungeonMapShow_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mDungeonHud.Visible = e.Checked;
				if (e.Checked)
					mDungeonHud.Minimized = false;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #32
0
		private void chkDerethMapShowLabels_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mMapHud.ShowLabels = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #33
0
		private void chkDerethMapCenterPlayer_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mMapHud.CenterOnPlayer = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #34
0
		private void chkBold_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mArrowHud.TextBold = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #35
0
 /// <summary>
 /// 单选病人状态时 修改界面文字 出院日期/入院日期
 /// </summary>
 /// <param name="sender">触发事件的控件</param>
 /// <param name="e">事件所需参数</param>
 private void RcbPatientState_Changed(object sender, CheckBoxChangeEventArgs e)
 {
     lbDtime.Text = rcbOut.Checked ? "出院日期" : "入院日期";
 }
예제 #36
0
파일: Gobang.cs 프로젝트: goodoycg/Gobang
 private void chkOpenSound_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     m_BOpenSound = this.chkSound.Checked;
 }
예제 #37
0
		private void chkDungeonMapAutoRotate_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (e.Checked)
				{
					mDungeonHud.AutoRotateMap = e.Checked;
				}
				else
				{
					btnDungeonMapN_Click(null, null);
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #38
0
		private void chkOutput4_Change(object sender, CheckBoxChangeEventArgs e)
		{
			SetTargetWindow(ChatWindow.Four, e.Checked);
		}
예제 #39
0
		private void chkDungeonMapMoveWithPlayer_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mDungeonHud.MoveWithPlayer = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #40
0
		private void chkShowDestination_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mArrowHud.ShowDestinationOver = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #41
0
		private void chkHudsToolbarShow_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mToolbar.Visible = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #42
0
		private void chkShowArrow_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				ShowHideArrow(e.Checked);
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #43
0
		private void chkHudToolbarText_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (e.Checked)
				{
					mToolbar.Display |= ToolbarDisplay.Text;
				}
				else
				{
					mToolbar.Display &= ~ToolbarDisplay.Text;
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #44
0
		private void chkHudToolbarVert_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				chkHudToolbarHoriz.Checked = !e.Checked;
				if (chkHudToolbarHoriz.Checked)
					mToolbar.Orientation = ToolbarOrientation.Horizontal;
				else
					mToolbar.Orientation = ToolbarOrientation.Vertical;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #45
0
		private void chkAllowBothMaps_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (!e.Checked && mMapHud.Visible)
				{
					mDungeonHud.Visible = false;
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #46
0
        /// <summary>
        /// Invokes CheckedChanging event.
        /// </summary>
        private void OnCheckedChanging(object sender, CheckBoxChangeEventArgs e)
        {
            CheckBoxXChangeEventArgs e1 = new CheckBoxXChangeEventArgs(null, this, e.EventSource);

            if (m_CheckBox.CheckBoxStyle == eCheckBoxStyle.RadioButton && !m_CheckBox.Checked && this.Parent != null)
            {
                CheckBoxX b = null;
                foreach (Control c in this.Parent.Controls)
                {
                    if (c == this)
                        continue;
                    b = c as CheckBoxX;
                    if (b != null && b.Checked && b.CheckBoxStyle == eCheckBoxStyle.RadioButton)
                    {
                        break;
                    }
                }
                e1 = new CheckBoxXChangeEventArgs(b, this, e.EventSource);
            }

            if (CheckedChanging != null)
            {
                CheckedChanging(this, e1);
                e.Cancel = e1.Cancel;
            }
        }
예제 #47
0
		private void chkSearchNearby_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (Util.IsControlDown())
				{
					chkSearchName.Checked = false;
					chkSearchNearby.Checked = true;
				}
				else if (!e.Checked && !chkSearchName.Checked)
					chkSearchName.Checked = true;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #48
0
파일: Core.cs 프로젝트: CairoLee/svn-dump
 private void chkSettingSaveOnExit_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     Properties.Settings.Default.SaveOnExit = chkSettingSaveOnExit.Checked;
 }
예제 #49
0
		private void chkModifyUseInRoute_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (e.Checked && (edtModifyExitCoords.Text == Coordinates.NO_COORDINATES_STRING
						|| edtModifyExitCoords.Text == ""))
				{
					chkModifyUseInRoute.Checked = false;
					Util.Warning("In order to be used in route finding, a location must have exit coordinates");
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #50
0
 private void cb_night_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     cb_nightChanged(cb_night.Checked);
 }
예제 #51
0
		private void chkRouteToHere_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				if (e.Checked)
				{
					edtRouteToCoords.Text = PlayerCoords.ToString();
					choRouteTo.Selected = 0;
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #52
0
 public void checkBoxItemAccountNumber_CheckedChanged(object sender, CheckBoxChangeEventArgs e)
 {
     Controller.Instance.HomeAccountNumberText.Enabled = Controller.Instance.HomeAccountNumberCheck.Checked;
     SchedulePropertyEditValueChanged(null, null);
 }
예제 #53
0
		private void chkRecentShowRelative_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				UpdateListCoords(lstRecent, e.Checked);
				//mRelativeCoordsTimer.Interval = e.Checked ? RelativeCoordsFast : RelativeCoordsSlow;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #54
0
		private void chkDungeonMapCompass_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mDungeonHud.ShowCompass = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
예제 #55
0
		private void chkDistUnderArrow_Change(object sender, CheckBoxChangeEventArgs e)
		{
			try
			{
				mArrowHud.ShowDistanceUnder = e.Checked;
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}