Beispiel #1
0
        private void setRadioButton(RadRadioButton rb)
        {
            switch (rb.Text.Replace("&", "").ToLower())
            {
            case "nama":
                ddlNama.Enabled = true;
                ddlNama.Focus();
                ddlTipeAbsen.Enabled = false;
                dtpTanggal.Enabled   = false;
                currentFilter        = "memberid";
                break;

            case "tanggal":
                ddlNama.Enabled      = false;
                ddlTipeAbsen.Enabled = false;
                dtpTanggal.Enabled   = true;
                dtpTanggal.Focus();
                currentFilter = "tanggal";
                break;

            case "tipe absen":
                ddlNama.Enabled      = false;
                ddlTipeAbsen.Enabled = true;
                ddlTipeAbsen.Focus();
                dtpTanggal.Enabled = false;
                currentFilter      = "tipehadirid";
                break;
            }
        }
Beispiel #2
0
        private void rbtn_Changed(object sender, StateChangedEventArgs args)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            if (btn.IsChecked)
            {
                switch (btn.Text.ToLower())
                {
                case "baik":
                    statusbarang_ = 1;
                    break;

                case "pecah":
                    statusbarang_ = 2;
                    break;

                case "rusak":
                    statusbarang_ = 3;
                    break;

                case "sumbing":
                    statusbarang_ = 4;
                    break;

                case "expire":
                    statusbarang_ = 5;
                    break;
                }
            }
        }
Beispiel #3
0
        private void RdRbtDate_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            try
            {
                RadRadioButton _RadRadioButton = (RadRadioButton)sender;
                switch (_RadRadioButton.Name)
                {
                case "RdRbtDate":
                    RdDtpFrom.CustomFormat = "dd-MMM-yyyy";
                    RdDtpTo.CustomFormat   = "dd-MMM-yyyy";
                    break;

                case "RdRbtMonth":
                    RdDtpFrom.CustomFormat = "MMM-yyyy";
                    RdDtpTo.CustomFormat   = "MMM-yyyy";
                    break;

                case "RdRbtYear":
                    RdDtpFrom.CustomFormat = "yyyy";
                    RdDtpTo.CustomFormat   = "yyyy";
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                ClsMessage._IClsMessage.ProjectExceptionMessage(ex);
            }
        }
Beispiel #4
0
        private void rbtn_Changed(object sender, StateChangedEventArgs args)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            if (btn.IsChecked)
            {
                switch (btn.Text.Replace(":", "").Trim().ToLower())
                {
                case "tanggal":
                    dtpTanggal.Enabled = true;
                    dtpTanggal.Value   = DateTime.Now;
                    txtNoSJ.Enabled    = false;
                    btnFind.Enabled    = false;
                    txtNoSJ.ResetText();
                    break;

                case "no sj":
                    dtpTanggal.Enabled = false;
                    dtpTanggal.ResetText();
                    txtNoSJ.Enabled = true;
                    btnFind.Enabled = true;
                    txtNoSJ.ResetText();
                    txtNoSJ.Focus();
                    this.vlogproductdetailTableAdapter.FillByID(this.sinarekDataSet.vlogproductdetail, txtNoSJ.Text);
                    this.vlogproductTableAdapter.FillBySJ(this.sinarekDataSet.vlogproduct, txtNoSJ.Text);
                    break;
                }
            }
        }
        private void Radio_Checked(object sender, RoutedEventArgs e)
        {
            RadRadioButton radio = sender as RadRadioButton;

            List <Organismos> listaOrg = new List <Organismos>();

            switch (radio.Name)
            {
            case "RadCorte": listaOrg = (from n in organismos
                                         where n.IdInstancia == 100
                                         select n).ToList();
                break;

            case "RadPlenos": listaOrg = (from n in organismos
                                          where n.IdInstancia == 4
                                          select n).ToList();
                break;

            case "RadTribunal": listaOrg = (from n in organismos
                                            where n.IdInstancia == 1
                                            select n).ToList();
                break;
            }

            CbxSubInstancia.DataContext = listaOrg;
            CbxSubInstancia.IsEnabled   = true;
        }
Beispiel #6
0
        private void rbtn_Changed(object sender, StateChangedEventArgs args)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            if (btn.IsChecked)
            {
                switch (btn.Text.ToLower().Replace("pecah", "").Trim())
                {
                case "mesin":
                    statusbarang_ = 6;
                    break;

                case "borongan":
                    statusbarang_ = 7;
                    break;

                case "meja":
                    statusbarang_ = 8;
                    break;

                default:
                    statusbarang_ = 1;
                    break;
                }
            }
        }
Beispiel #7
0
        private void RdRbdSortByVal_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            try
            {
                RadRadioButton _radRadioButton = ((RadRadioButton)sender);
                if (_radRadioButton.Tag != null && _radRadioButton.Tag.ToString().Trim() != "")
                {
                    switch (_radRadioButton.Tag.ToString().Trim().ToUpper())
                    {
                    case "SORTBYVAL":
                        EnuReportType = enumReportType.SortByValue;
                        RdGrdReportResult.DataSource = null;
                        break;

                    case "SORTBYQUANTITY":
                        EnuReportType = enumReportType.SortByQty;
                        RdGrdReportResult.DataSource = null;
                        break;

                    default:
                        EnuReportType = enumReportType.SortByValue;
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                ClsMessage._IClsMessage.ProjectExceptionMessage(ex);
            }
        }
Beispiel #8
0
        private void rbtn_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            if (btn.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                switch (btn.Name.ToLower().ToString())
                {
                case "rbtnfilternama":
                    rddNama.Enabled              = true;
                    chkLunas.Enabled             = false;
                    pinjamanBindingSource.Filter = "buruhid = " + rddNama.SelectedValue.ToString();
                    break;

                case "rbtnfilterstatus":
                    rddNama.Enabled              = false;
                    chkLunas.Enabled             = true;
                    pinjamanBindingSource.Filter = "active = " + (chkLunas.Checked ? "0" : "1");
                    break;

                case "rbtnall":
                    rddNama.Enabled              = false;
                    chkLunas.Enabled             = false;
                    pinjamanBindingSource.Filter = "";
                    break;
                }
            }
        }
Beispiel #9
0
        private void OnRadioStackPositionSetting_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            RadRadioButton radioButton = sender as RadRadioButton;

            if (radioButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                (this.pageView1.ViewElement as RadPageViewStackElement).StackPosition = (StackViewPosition)radioButton.Tag;
            }
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Calidad;component/Views/CalidadSubMenuView.xaml" +
                 "", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.IncidenciasModule = ((RadRadioButton)(this.FindName("IncidenciasModule")));
 }
        private void RadButtonsTipoEvento(object sender, RoutedEventArgs e)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            Visibility visible = (btn.Name.Equals("BtnInasistencia")) ? Visibility.Visible : Visibility.Hidden;

            RadJustifica.Visibility     = visible;
            RadNoJustifica.Visibility   = visible;
            RcbJustificantes.Visibility = visible;
            LblObservaciones.Visibility = visible;
            TxtObservaciones.Visibility = visible;
            LblAl.Visibility            = visible;
            RdpHasta.Visibility         = visible;
        }
Beispiel #12
0
        private void radCheckBox40_Click(object sender, EventArgs e)
        {
            RadRadioButton check = (RadRadioButton)sender;

            if (check.Text == "Все")
            {
                radDateTimePicker1.Enabled = false;
                radDateTimePicker2.Enabled = false;
            }
            else
            {
                radDateTimePicker1.Enabled = true;
                radDateTimePicker2.Enabled = true;
            }
        }
Beispiel #13
0
        private void RadButtonsTipoEvento(object sender, RoutedEventArgs e)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            Visibility visible = (btn.Name.Equals("BtnInasistencia")) ? Visibility.Visible : Visibility.Collapsed;

            JustificaNo.Visibility = visible;
            Gmotivos.Visibility    = visible;

            RadJustifica.IsChecked         = false;
            RadNoJustifica.IsChecked       = false;
            RcbJustificantes.SelectedIndex = -1;

            LblAl.Visibility    = visible;
            RdpHasta.Visibility = visible;
        }
Beispiel #14
0
        private void setGajiRadioButton(RadRadioButton rb)
        {
            switch (rb.Text.Replace("&", "").ToLower())
            {
            case "nama":
                ddlTipe2.Enabled = false;
                ddlNama2.Enabled = true;
                ddlNama2.Focus();
                break;

            case "tipe":
                ddlNama2.Enabled = false;
                ddlTipe2.Enabled = true;
                ddlTipe2.Focus();
                break;
            }
        }
        private void RadButtonsTipoEvento(object sender, RoutedEventArgs e)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            Visibility visible = (btn.Name.Equals("BtnInasistencia")) ? Visibility.Visible : Visibility.Hidden;

            RadJustifica.Visibility   = visible;
            RadNoJustifica.Visibility = visible;

            if (btn != BtnInasistencia)
            {
                RcbJustificantes.Visibility = Visibility.Collapsed;
                RadJustifica.IsChecked      = false;
            }

            idEvento = Convert.ToInt32(btn.Tag);
        }
        private void RadButtonsTipoEvento(object sender, RoutedEventArgs e)
        {
            RadRadioButton btn = (RadRadioButton)sender;

            idEvento = Convert.ToInt32(btn.Tag);

            Visibility visible = (idEvento == 1000) ? Visibility.Visible : Visibility.Collapsed;

            RadJustifica.Visibility     = visible;
            RadNoJustifica.Visibility   = visible;
            RcbJustificantes.Visibility = visible;
            LblEvento.Visibility        = visible;
            LblMotivo.Visibility        = visible;

            if (idEvento != 1000)
            {
                RadJustifica.IsChecked = false;
            }
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Ventas;component/Views/VentasMenuView.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.CRM = ((RadRadioButton)(this.FindName("CRM")));
     this.Clients = ((RadRadioButton)(this.FindName("Clients")));
     this.Pedidos = ((RadRadioButton)(this.FindName("Pedidos")));
     this.Facturacion = ((RadRadioButton)(this.FindName("Facturacion")));
     this.Cobros = ((RadRadioButton)(this.FindName("Cobros")));
     this.Comerciales = ((RadRadioButton)(this.FindName("Comerciales")));
     this.Productos = ((RadRadioButton)(this.FindName("Productos")));
     this.SUBCRM = ((System.Windows.Controls.Canvas)(this.FindName("SUBCRM")));
     this.CRMDashboard = ((RadRadioButton)(this.FindName("CRMDashboard")));
     this.CompaniesView = ((RadRadioButton)(this.FindName("CompaniesView")));
     this.ContactsView = ((RadRadioButton)(this.FindName("ContactsView")));
     this.OpportunitiesView = ((RadRadioButton)(this.FindName("OpportunitiesView")));
     this.ActivitiesView = ((RadRadioButton)(this.FindName("ActivitiesView")));
     this.SUBClients = ((System.Windows.Controls.Canvas)(this.FindName("SUBClients")));
     this.SUBComerciales = ((System.Windows.Controls.Canvas)(this.FindName("SUBComerciales")));
     this.SUBProductos = ((System.Windows.Controls.Canvas)(this.FindName("SUBProductos")));
 }
Beispiel #18
0
        private void rbButton_Click(object sender, EventArgs e)
        {
            RadRadioButton rb = (RadRadioButton)sender;

            setRadioButton(rb);
        }
Beispiel #19
0
        private void RrbRebootClicked(object sender, EventArgs e)
        {
            RadRadioButton rb = sender as RadRadioButton;

            RebootStyle = int.Parse(rb.Tag.ToString());
        }
        private void lstFieldsInMeasure_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            RadTextBox     txtCalcParent = new RadTextBox();
            RadRadioButton OptShowFirst  = new RadRadioButton();
            RadRadioButton OptShowEach   = new RadRadioButton();


            try
            {
                modGlobal.gv_sql = "Select cms.*, df.cmsfieldcode, df.jcfieldcode, df.lookuptableid as fieldlookuptableid, CMSParentCDID ";
                modGlobal.gv_sql = modGlobal.gv_sql + " FROM tbl_Setup_CMSFieldMeasures cms INNER JOIN ";
                modGlobal.gv_sql = modGlobal.gv_sql + " tbl_Setup_DataDef df ON cms.DDID = df.DDID LEFT OUTER JOIN ";
                modGlobal.gv_sql = modGlobal.gv_sql + " tbl_Setup_CMSParentFieldMeasures ON cms.FieldMeasureID = tbl_Setup_CMSParentFieldMeasures.FieldMeasureID ";
                modGlobal.gv_sql = string.Format("{0} where cms.FieldMeasureID = {1}", modGlobal.gv_sql, Support.GetItemData(lstFieldsInMeasure, lstFieldsInMeasure.SelectedIndex));

                //LDW rdcFieldList.Resultset = modGlobal.gv_cn.OpenResultset(modGlobal.gv_sql, RDO.ResultsetTypeConstants.rdOpenStatic);
                rdcFieldListTable = "tbl_Setup_CMSFieldMeasures";
                rdcFieldList      = DALcop.DalConnectDataSet(modGlobal.gv_cn.ConnectionString, modGlobal.gv_sql, rdcFieldListTable, rdcFieldList);
                rdcFieldList.AcceptChanges();

                //RefreshFieldsToLink
                //RefreshLinkedFields
                RefreshLookupTablesList();
                //RefreshParentFields
                RefreshParentCDs();
                RefreshFieldMeasureCriteria();
                OptShowEach.IsChecked  = false;
                OptShowFirst.IsChecked = false;

                if (!Information.IsDBNull(rdcFieldList.Tables[rdcFieldListTable].Rows[0]["fieldedit"]))
                {
                    cboFieldEdit.Text = rdcFieldList.Tables[rdcFieldListTable].Rows[0]["fieldedit"].ToString();
                }
                else
                {
                    cboFieldEdit.Text = "";
                }

                if (!Information.IsDBNull(rdcFieldList.Tables[rdcFieldListTable].Rows[0]["OutputFormat"]))
                {
                    cboOutputFormat.Text = rdcFieldList.Tables[rdcFieldListTable].Rows[0]["OutputFormat"].ToString();
                }
                else
                {
                    cboOutputFormat.Text = "";
                }

                //    If Not IsNull(rdcFieldList.Resultset!LinkParent) Then
                //        chkLinkToParent = 1
                //    Else
                //        chkLinkToParent = 0
                //    End If

                //    If Not IsNull(rdcFieldList.Resultset!CalcParent) Then
                //        chkCalcParent = 1
                //    Else
                //        chkCalcParent = 0
                //    End If
                //    If Not IsNull(rdcFieldList.Resultset!ParentField) Then
                //        cboParentField = rdcFieldList.Resultset!ParentField
                //    Else
                //        cboParentField = ""
                //    End If

                if (!Information.IsDBNull(rdcFieldList.Tables[rdcFieldListTable].Rows[0]["CalcParent"]))
                {
                    txtCalcParent.Text = rdcFieldList.Tables[rdcFieldListTable].Rows[0]["CalcParent"].ToString();
                }
                else
                {
                    txtCalcParent.Text = "";
                }
            }
            catch (Exception ex)
            {
                const string errorMessage = "Oops...Something went wrong... ";

                // Create an EventLog instance and assign its source.
                EventLog appLog = new EventLog();
                appLog.Source = "CopSetup";

                appLog.WriteEntry(errorMessage + "Source: " + ex.Source + "=>" + "TargetSite: " + ex.TargetSite + "Exception #: " + ex.HResult + " => " + "Error Message: " +
                                  ex.Message + " => " + "Inner Exception: " + ex.InnerException + " => " + "Stack Trace: " + ex.StackTrace, EventLogEntryType.Error, 1002);

                RadMessageBox.Show(errorMessage + String.Format(format: "Exception: {0}  => Inner Exception: {1}", arg0: ex.Message, arg1: ex.InnerException));
            }

            //    If Not IsNull(rdcFieldList.Resultset!DefaultValue) Then
            //        txtDefaultValue = rdcFieldList.Resultset!DefaultValue
            //    Else
            //        txtDefaultValue = ""
            //    End If
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight;component/Shell.xaml", System.UriKind.Relative));
     this.InitialAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("InitialAnimation")));
     this.PanelStates = ((System.Windows.VisualStateGroup)(this.FindName("PanelStates")));
     this.HidePanel = ((System.Windows.VisualState)(this.FindName("HidePanel")));
     this.ShowPanel = ((System.Windows.VisualState)(this.FindName("ShowPanel")));
     this.PanelMenuStates = ((System.Windows.VisualStateGroup)(this.FindName("PanelMenuStates")));
     this.HideMenuPanel = ((System.Windows.VisualState)(this.FindName("HideMenuPanel")));
     this.ShowMenuPanel = ((System.Windows.VisualState)(this.FindName("ShowMenuPanel")));
     this.PanelNavigationStates = ((System.Windows.VisualStateGroup)(this.FindName("PanelNavigationStates")));
     this.Appearance = ((System.Windows.VisualState)(this.FindName("Appearance")));
     this.EditAppearance = ((System.Windows.VisualState)(this.FindName("EditAppearance")));
     this.Info = ((System.Windows.VisualState)(this.FindName("Info")));
     this.Share = ((System.Windows.VisualState)(this.FindName("Share")));
     this.Download = ((System.Windows.VisualState)(this.FindName("Download")));
     this.grid4 = ((System.Windows.Controls.Grid)(this.FindName("grid4")));
     this.grid3 = ((System.Windows.Controls.Grid)(this.FindName("grid3")));
     this.path = ((System.Windows.Shapes.Path)(this.FindName("path")));
     this.border1 = ((System.Windows.Controls.Border)(this.FindName("border1")));
     this.LoadingMask1 = ((System.Windows.Media.ScaleTransform)(this.FindName("LoadingMask1")));
     this.border2 = ((System.Windows.Controls.Border)(this.FindName("border2")));
     this.LoadingMask2 = ((System.Windows.Media.ScaleTransform)(this.FindName("LoadingMask2")));
     this.border4 = ((System.Windows.Controls.Border)(this.FindName("border4")));
     this.LoadingMask3 = ((System.Windows.Media.ScaleTransform)(this.FindName("LoadingMask3")));
     this.border5 = ((System.Windows.Controls.Border)(this.FindName("border5")));
     this.LoadingMask4 = ((System.Windows.Media.ScaleTransform)(this.FindName("LoadingMask4")));
     this.grid2 = ((System.Windows.Controls.Grid)(this.FindName("grid2")));
     this.stackPanel1 = ((System.Windows.Controls.StackPanel)(this.FindName("stackPanel1")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.border = ((System.Windows.Controls.Border)(this.FindName("border")));
     this.Header = ((System.Windows.Controls.Grid)(this.FindName("Header")));
     this.SubMenuRegionPlaceholder = ((System.Windows.Controls.ContentControl)(this.FindName("SubMenuRegionPlaceholder")));
     this.ModuleMenuRegionPlaceholder = ((System.Windows.Controls.ContentControl)(this.FindName("ModuleMenuRegionPlaceholder")));
     this.HeaderRegionPlaceholder = ((System.Windows.Controls.ContentControl)(this.FindName("HeaderRegionPlaceholder")));
     this.Title = ((System.Windows.Controls.TextBlock)(this.FindName("Title")));
     this.stackPanel2 = ((System.Windows.Controls.StackPanel)(this.FindName("stackPanel2")));
     this.SelectedRange = ((System.Windows.Controls.TextBlock)(this.FindName("SelectedRange")));
     this.radToggleButtonAreas = ((RadToggleButton)(this.FindName("radToggleButtonAreas")));
     this.gridMenuPanel = ((System.Windows.Controls.Grid)(this.FindName("gridMenuPanel")));
     this.MainMenuRegionPlaceholder = ((System.Windows.Controls.ContentControl)(this.FindName("MainMenuRegionPlaceholder")));
     this.BorderHeader = ((System.Windows.Shapes.Rectangle)(this.FindName("BorderHeader")));
     this.radToggleButtonSettings = ((RadToggleButton)(this.FindName("radToggleButtonSettings")));
     this.gridPanel = ((System.Windows.Controls.Grid)(this.FindName("gridPanel")));
     this.stackPanel = ((System.Windows.Controls.StackPanel)(this.FindName("stackPanel")));
     this.AppearancePane = ((RadRadioButton)(this.FindName("AppearancePane")));
     this.InfoPane = ((RadRadioButton)(this.FindName("InfoPane")));
     this.SharePane = ((RadRadioButton)(this.FindName("SharePane")));
     this.DownloadPane = ((RadRadioButton)(this.FindName("DownloadPane")));
     this.panelsGrid = ((System.Windows.Controls.Grid)(this.FindName("panelsGrid")));
     this.appearance = ((System.Windows.Controls.StackPanel)(this.FindName("appearance")));
     this.appearance_edit = ((System.Windows.Controls.Grid)(this.FindName("appearance_edit")));
     this.info = ((System.Windows.Controls.StackPanel)(this.FindName("info")));
     this.logo_Copy1 = ((System.Windows.Controls.Grid)(this.FindName("logo_Copy1")));
     this.share = ((System.Windows.Controls.StackPanel)(this.FindName("share")));
     this.download = ((System.Windows.Controls.StackPanel)(this.FindName("download")));
     this.ModuleMenus = ((System.Windows.Controls.ContentControl)(this.FindName("ModuleMenus")));
     this.ContentRegionPlaceholder = ((System.Windows.Controls.ContentControl)(this.FindName("ContentRegionPlaceholder")));
     this.busyIndicator = ((RadBusyIndicator)(this.FindName("busyIndicator")));
     this.BorderBottom = ((System.Windows.Shapes.Rectangle)(this.FindName("BorderBottom")));
 }
Beispiel #22
0
        private void rbFilterGaji_Click(object sender, EventArgs e)
        {
            RadRadioButton rb = (RadRadioButton)sender;

            setGajiRadioButton(rb);
        }
Beispiel #23
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmFeedback));

            this.suggestionTypeGroupBox    = new RadGroupBox();
            this.featureRequestRadioButton = new RadRadioButton();
            this.commentRadioButton        = new RadRadioButton();
            this.suggestionRadioButton     = new RadRadioButton();
            this.feedbackLabel             = new RadLabel();
            this.feedbackPictureBox        = new PictureBox();
            this.emailLabel   = new RadLabel();
            this.remarksLabel = new RadLabel();
            this.txtEmail     = new RadTextBox();
            this.txtRemarks   = new RadTextBox();
            this.sendButton   = new RadButton();
            this.closeButton  = new RadButton();
            this.suggestionTypeGroupBox.BeginInit();
            this.suggestionTypeGroupBox.SuspendLayout();
            this.featureRequestRadioButton.BeginInit();
            this.commentRadioButton.BeginInit();
            this.suggestionRadioButton.BeginInit();
            this.feedbackLabel.BeginInit();
            ((ISupportInitialize)this.feedbackPictureBox).BeginInit();
            this.emailLabel.BeginInit();
            this.remarksLabel.BeginInit();
            this.txtEmail.BeginInit();
            this.txtRemarks.BeginInit();
            this.sendButton.BeginInit();
            this.closeButton.BeginInit();
            this.BeginInit();
            this.SuspendLayout();
            this.suggestionTypeGroupBox.AccessibleRole = AccessibleRole.Grouping;
            this.suggestionTypeGroupBox.Controls.Add((Control)this.featureRequestRadioButton);
            this.suggestionTypeGroupBox.Controls.Add((Control)this.commentRadioButton);
            this.suggestionTypeGroupBox.Controls.Add((Control)this.suggestionRadioButton);
            this.suggestionTypeGroupBox.HeaderText             = "Suggestion Type:";
            this.suggestionTypeGroupBox.Location               = new Point(12, 87);
            this.suggestionTypeGroupBox.Name                   = "suggestionTypeGroupBox";
            this.suggestionTypeGroupBox.Size                   = new Size(464, 42);
            this.suggestionTypeGroupBox.TabIndex               = 0;
            this.suggestionTypeGroupBox.TabStop                = false;
            this.suggestionTypeGroupBox.Text                   = "Suggestion Type:";
            this.featureRequestRadioButton.Location            = new Point(262, 17);
            this.featureRequestRadioButton.Name                = "featureRequestRadioButton";
            this.featureRequestRadioButton.Size                = new Size(101, 18);
            this.featureRequestRadioButton.TabIndex            = 3;
            this.featureRequestRadioButton.TabStop             = false;
            this.featureRequestRadioButton.Text                = "Feature Request";
            this.featureRequestRadioButton.ToggleStateChanged += new StateChangedEventHandler(this.featureRequestRadioButton_ToggleStateChanged);
            this.commentRadioButton.Location                   = new Point(186, 17);
            this.commentRadioButton.Name                   = "commentRadioButton";
            this.commentRadioButton.Size                   = new Size(70, 18);
            this.commentRadioButton.TabIndex               = 2;
            this.commentRadioButton.TabStop                = false;
            this.commentRadioButton.Text                   = "Comment";
            this.commentRadioButton.ToggleStateChanged    += new StateChangedEventHandler(this.commentRadioButton_ToggleStateChanged);
            this.suggestionRadioButton.CheckState          = CheckState.Checked;
            this.suggestionRadioButton.Location            = new Point(102, 17);
            this.suggestionRadioButton.Name                = "suggestionRadioButton";
            this.suggestionRadioButton.Size                = new Size(76, 18);
            this.suggestionRadioButton.TabIndex            = 0;
            this.suggestionRadioButton.Text                = "Suggestion";
            this.suggestionRadioButton.ToggleState         = ToggleState.On;
            this.suggestionRadioButton.ToggleStateChanged += new StateChangedEventHandler(this.suggestionRadioButton_ToggleStateChanged);
            this.feedbackLabel.Location         = new Point(112, 12);
            this.feedbackLabel.Name             = "feedbackLabel";
            this.feedbackLabel.ShowItemToolTips = false;
            this.feedbackLabel.Size             = new Size(364, 47);
            this.feedbackLabel.TabIndex         = 1;
            this.feedbackLabel.Text             = "Please fill in the form below to submit your feedback.\r\nSelecting the proper feedback type will help us better understand your\r\nopinion.";
            this.feedbackPictureBox.Image       = (Image)Class123.logo;
            this.feedbackPictureBox.Location    = new Point(16, 3);
            this.feedbackPictureBox.Name        = "feedbackPictureBox";
            this.feedbackPictureBox.Size        = new Size(88, 78);
            this.feedbackPictureBox.SizeMode    = PictureBoxSizeMode.AutoSize;
            this.feedbackPictureBox.TabIndex    = 2;
            this.feedbackPictureBox.TabStop     = false;
            this.emailLabel.Location            = new Point(12, 145);
            this.emailLabel.Name       = "emailLabel";
            this.emailLabel.Size       = new Size(136, 18);
            this.emailLabel.TabIndex   = 3;
            this.emailLabel.Text       = "E-mail Address (Optional):";
            this.remarksLabel.Location = new Point(12, 169);
            this.remarksLabel.Name     = "remarksLabel";
            this.remarksLabel.Size     = new Size(51, 18);
            this.remarksLabel.TabIndex = 4;
            this.remarksLabel.Text     = "Remarks:";
            this.txtEmail.Location     = new Point(154, 143);
            this.txtEmail.Name         = "txtEmail";
            this.txtEmail.Size         = new Size(322, 20);
            this.txtEmail.TabIndex     = 5;
            this.txtRemarks.AutoSize   = false;
            this.txtRemarks.Location   = new Point(12, 193);
            this.txtRemarks.Multiline  = true;
            this.txtRemarks.Name       = "txtRemarks";
            this.txtRemarks.Size       = new Size(468, 120);
            this.txtRemarks.TabIndex   = 6;
            this.sendButton.Location   = new Point(405, 319);
            this.sendButton.Name       = "sendButton";
            this.sendButton.Size       = new Size(75, 23);
            this.sendButton.TabIndex   = 7;
            this.sendButton.Text       = "    &Send";
            this.sendButton.Click     += new EventHandler(this.sendButton_Click);
            this.closeButton.Location  = new Point(319, 319);
            this.closeButton.Name      = "closeButton";
            this.closeButton.Size      = new Size(75, 23);
            this.closeButton.TabIndex  = 8;
            this.closeButton.Text      = "&Close";
            this.closeButton.Click    += new EventHandler(this.closeButton_Click);
            this.AutoScaleDimensions   = new SizeF(6f, 13f);
            this.AutoScaleMode         = AutoScaleMode.Font;
            this.ClientSize            = new Size(481, 346);
            this.Controls.Add((Control)this.feedbackPictureBox);
            this.Controls.Add((Control)this.closeButton);
            this.Controls.Add((Control)this.sendButton);
            this.Controls.Add((Control)this.txtRemarks);
            this.Controls.Add((Control)this.txtEmail);
            this.Controls.Add((Control)this.remarksLabel);
            this.Controls.Add((Control)this.emailLabel);
            this.Controls.Add((Control)this.feedbackLabel);
            this.Controls.Add((Control)this.suggestionTypeGroupBox);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = nameof(frmFeedback);
            this.RootElement.ApplyShapeToControl = true;
            this.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Feedback";
            this.Load         += new EventHandler(this.frmFeedback_Load);
            this.suggestionTypeGroupBox.EndInit();
            this.suggestionTypeGroupBox.ResumeLayout(false);
            this.suggestionTypeGroupBox.PerformLayout();
            this.featureRequestRadioButton.EndInit();
            this.commentRadioButton.EndInit();
            this.suggestionRadioButton.EndInit();
            this.feedbackLabel.EndInit();
            ((ISupportInitialize)this.feedbackPictureBox).EndInit();
            this.emailLabel.EndInit();
            this.remarksLabel.EndInit();
            this.txtEmail.EndInit();
            this.txtRemarks.EndInit();
            this.sendButton.EndInit();
            this.closeButton.EndInit();
            this.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Beispiel #24
0
 private void InitializeComponent()
 {
     this.radioL            = new RadRadioButton();
     this.radioH            = new RadRadioButton();
     this.radioB            = new RadRadioButton();
     this.radioG            = new RadRadioButton();
     this.radioS            = new RadRadioButton();
     this.radioR            = new RadRadioButton();
     this.numHue            = new RadSpinEditor();
     this.numSaturation     = new RadSpinEditor();
     this.numLuminance      = new RadSpinEditor();
     this.label1            = new RadLabel();
     this.numAlpha          = new RadSpinEditor();
     this.numRed            = new RadSpinEditor();
     this.numGreen          = new RadSpinEditor();
     this.numBlue           = new RadSpinEditor();
     this.proColorsSlider1  = new ProfessionalColorsSlider();
     this.proColors2DBox1   = new ProfessionalColors2DBox();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.radioL.BeginInit();
     this.radioH.BeginInit();
     this.radioB.BeginInit();
     this.radioG.BeginInit();
     this.radioS.BeginInit();
     this.radioR.BeginInit();
     this.numHue.BeginInit();
     this.numSaturation.BeginInit();
     this.numLuminance.BeginInit();
     this.label1.BeginInit();
     this.numAlpha.BeginInit();
     this.numRed.BeginInit();
     this.numGreen.BeginInit();
     this.numBlue.BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     this.radioL.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioL.AutoSize            = false;
     this.radioL.Location            = new Point(260, 180);
     this.radioL.Margin              = new Padding(0);
     this.radioL.Name                = "radioL";
     this.radioL.Size                = new Size(40, 30);
     this.radioL.TabIndex            = 41;
     this.radioL.Text                = "L:";
     this.radioL.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioH.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioH.AutoSize            = false;
     this.radioH.CheckState          = CheckState.Checked;
     this.radioH.Location            = new Point(260, 120);
     this.radioH.Margin              = new Padding(0);
     this.radioH.Name                = "radioH";
     this.radioH.Size                = new Size(40, 30);
     this.radioH.TabIndex            = 39;
     this.radioH.Text                = "H:";
     this.radioH.ToggleState         = Telerik.WinControls.Enumerations.ToggleState.On;
     this.radioH.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioB.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioB.AutoSize            = false;
     this.radioB.Location            = new Point(260, 60);
     this.radioB.Margin              = new Padding(0);
     this.radioB.Name                = "radioB";
     this.radioB.Size                = new Size(40, 30);
     this.radioB.TabIndex            = 38;
     this.radioB.Text                = "B:";
     this.radioB.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioG.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioG.AutoSize            = false;
     this.radioG.Location            = new Point(260, 30);
     this.radioG.Margin              = new Padding(0);
     this.radioG.Name                = "radioG";
     this.radioG.Size                = new Size(40, 30);
     this.radioG.TabIndex            = 37;
     this.radioG.Text                = "G:";
     this.radioG.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioS.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioS.AutoSize            = false;
     this.radioS.Location            = new Point(260, 150);
     this.radioS.Margin              = new Padding(0);
     this.radioS.Name                = "radioS";
     this.radioS.Size                = new Size(40, 30);
     this.radioS.TabIndex            = 40;
     this.radioS.Text                = "S:";
     this.radioS.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioR.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioR.AutoSize            = false;
     this.radioR.Location            = new Point(260, 0);
     this.radioR.Margin              = new Padding(0);
     this.radioR.Name                = "radioR";
     this.radioR.Size                = new Size(40, 30);
     this.radioR.TabIndex            = 36;
     this.radioR.Text                = "R:";
     this.radioR.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.numHue.Anchor              = AnchorStyles.Left | AnchorStyles.Right;
     this.numHue.Location            = new Point(306, 125);
     this.numHue.Margin              = new Padding(6, 0, 6, 0);
     this.numHue.Maximum             = new Decimal(new int[4]
     {
         360,
         0,
         0,
         0
     });
     this.numHue.Name = "numHue";
     this.numHue.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numHue.Size            = new Size(58, 20);
     this.numHue.TabIndex        = 46;
     this.numHue.TabStop         = false;
     this.numHue.ThemeName       = "TelerikMetro";
     this.numHue.ValueChanged   += new EventHandler(this.numHue_ValueChanged);
     this.numHue.TextChanged    += new EventHandler(this.numHue_TextChanged);
     this.numSaturation.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.numSaturation.Location = new Point(306, 155);
     this.numSaturation.Margin   = new Padding(6, 0, 6, 0);
     this.numSaturation.Name     = "numSaturation";
     this.numSaturation.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numSaturation.Size                    = new Size(58, 20);
     this.numSaturation.TabIndex                = 47;
     this.numSaturation.TabStop                 = false;
     this.numSaturation.ThemeName               = "TelerikMetro";
     this.numSaturation.ValueChanged           += new EventHandler(this.numSaturation_ValueChanged);
     this.numSaturation.TextChanged            += new EventHandler(this.numSaturation_TextChanged);
     this.numLuminance.Anchor                   = AnchorStyles.Left | AnchorStyles.Right;
     this.numLuminance.Location                 = new Point(306, 185);
     this.numLuminance.Margin                   = new Padding(6, 0, 6, 0);
     this.numLuminance.Name                     = "numLuminance";
     this.numLuminance.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numLuminance.Size                     = new Size(58, 20);
     this.numLuminance.TabIndex                 = 48;
     this.numLuminance.TabStop                  = false;
     this.numLuminance.ThemeName                = "TelerikMetro";
     this.numLuminance.ValueChanged            += new EventHandler(this.numLuminance_ValueChanged);
     this.numLuminance.TextChanged             += new EventHandler(this.numLuminance_TextChanged);
     this.label1.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.label1.AutoSize   = false;
     this.label1.Location   = new Point(260, 90);
     this.label1.Margin     = new Padding(0);
     this.label1.Name       = "label1";
     this.label1.Padding    = new Padding(15, 0, 0, 0);
     this.label1.Size       = new Size(40, 30);
     this.label1.TabIndex   = 50;
     this.label1.TabStop    = true;
     this.label1.Text       = "A:";
     this.numAlpha.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.numAlpha.Location = new Point(306, 95);
     this.numAlpha.Margin   = new Padding(6, 0, 6, 0);
     this.numAlpha.Maximum  = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numAlpha.Name          = "numAlpha";
     this.numAlpha.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     }));
     this.numAlpha.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numAlpha.Size      = new Size(58, 20);
     this.numAlpha.TabIndex  = 45;
     this.numAlpha.TabStop   = false;
     this.numAlpha.ThemeName = "TelerikMetro";
     this.numAlpha.Value     = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numAlpha.ValueChanged += new EventHandler(this.numAlpha_ValueChanged);
     this.numAlpha.TextChanged  += new EventHandler(this.numAlpha_TextChanged);
     this.numRed.Anchor          = AnchorStyles.Left | AnchorStyles.Right;
     this.numRed.Location        = new Point(306, 5);
     this.numRed.Margin          = new Padding(6, 0, 6, 0);
     this.numRed.Maximum         = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numRed.Name = "numRed";
     this.numRed.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numRed.Size          = new Size(58, 20);
     this.numRed.TabIndex      = 42;
     this.numRed.TabStop       = false;
     this.numRed.ThemeName     = "TelerikMetro";
     this.numRed.ValueChanged += new EventHandler(this.numRed_ValueChanged);
     this.numRed.TextChanged  += new EventHandler(this.numRed_TextChanged);
     this.numGreen.Anchor      = AnchorStyles.Left | AnchorStyles.Right;
     this.numGreen.Location    = new Point(306, 35);
     this.numGreen.Margin      = new Padding(6, 0, 6, 0);
     this.numGreen.Maximum     = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numGreen.Name = "numGreen";
     this.numGreen.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numGreen.Size          = new Size(58, 20);
     this.numGreen.TabIndex      = 43;
     this.numGreen.TabStop       = false;
     this.numGreen.ThemeName     = "TelerikMetro";
     this.numGreen.ValueChanged += new EventHandler(this.numGreen_ValueChanged);
     this.numGreen.TextChanged  += new EventHandler(this.numGreen_TextChanged);
     this.numBlue.Anchor         = AnchorStyles.Left | AnchorStyles.Right;
     this.numBlue.Location       = new Point(306, 65);
     this.numBlue.Margin         = new Padding(6, 0, 6, 0);
     this.numBlue.Maximum        = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numBlue.Name = "numBlue";
     this.numBlue.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numBlue.Size               = new Size(58, 20);
     this.numBlue.TabIndex           = 44;
     this.numBlue.TabStop            = false;
     this.numBlue.ThemeName          = "TelerikMetro";
     this.numBlue.ValueChanged      += new EventHandler(this.numBlue_ValueChanged);
     this.numBlue.TextChanged       += new EventHandler(this.numBlue_TextChanged);
     this.proColorsSlider1.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom;
     this.proColorsSlider1.ColorHSL  = HslColor.FromAhsl(0.0, 1.0, 1.0);
     this.proColorsSlider1.ColorMode = ColorModes.Red;
     this.proColorsSlider1.ColorRGB  = Color.FromArgb((int)byte.MaxValue, 0, 0);
     this.proColorsSlider1.Location  = new Point(214, 3);
     this.proColorsSlider1.Name      = "proColorsSlider1";
     this.proColorsSlider1.Position  = 0;
     this.tableLayoutPanel1.SetRowSpan((Control)this.proColorsSlider1, 8);
     this.proColorsSlider1.Size     = new Size(41, 217);
     this.proColorsSlider1.TabIndex = 51;
     this.proColors2DBox1.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.proColors2DBox1.ColorHSL  = HslColor.Empty;
     this.proColors2DBox1.ColorMode = ColorModes.Red;
     this.proColors2DBox1.ColorRGB  = Color.Empty;
     this.proColors2DBox1.Location  = new Point(6, 6);
     this.proColors2DBox1.Margin    = new Padding(6, 6, 0, 6);
     this.proColors2DBox1.Name      = "proColors2DBox1";
     this.tableLayoutPanel1.SetRowSpan((Control)this.proColors2DBox1, 8);
     this.proColors2DBox1.Size          = new Size(204, 211);
     this.proColors2DBox1.TabIndex      = 49;
     this.tableLayoutPanel1.ColumnCount = 4;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70f));
     this.tableLayoutPanel1.Controls.Add((Control)this.proColors2DBox1, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.numRed, 3, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.numHue, 3, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioH, 2, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.numBlue, 3, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.numSaturation, 3, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.numGreen, 3, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioS, 2, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.numAlpha, 3, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioL, 2, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.numLuminance, 3, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.proColorsSlider1, 1, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioR, 2, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioG, 2, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioB, 2, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.label1, 2, 3);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 8;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.Size     = new Size(370, 223);
     this.tableLayoutPanel1.TabIndex = 52;
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.Name = nameof(ProfessionalColors);
     this.Size = new Size(370, 223);
     this.radioL.EndInit();
     this.radioH.EndInit();
     this.radioB.EndInit();
     this.radioG.EndInit();
     this.radioS.EndInit();
     this.radioR.EndInit();
     this.numHue.EndInit();
     this.numSaturation.EndInit();
     this.numLuminance.EndInit();
     this.label1.EndInit();
     this.numAlpha.EndInit();
     this.numRed.EndInit();
     this.numGreen.EndInit();
     this.numBlue.EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Beispiel #25
0
        private void radRadioButton_CheckStateChanged(object sender, EventArgs e)
        {
            RadRadioButton radioButton = sender as RadRadioButton;

            RadRadioButton button = radioButton?.Parent.Controls.OfType <RadRadioButton>()
                                    .FirstOrDefault(n => n.IsChecked);

            if (button == null)
            {
                return;
            }

            gridViewDecks.GroupDescriptors.Clear();
            gridViewDecks.FilterDescriptors.Clear();
            gridViewDecks.SortDescriptors.Clear();
            FilterDescriptor fDescriptor = new FilterDescriptor();
            GroupDescriptor  gDescriptor = new GroupDescriptor();
            SortDescriptor   sDescriptor = new SortDescriptor();

            switch (button.Name)
            {
            case "rbFree":
                fDescriptor.Operator       = FilterOperator.IsEqualTo;
                fDescriptor.Value          = 0;
                fDescriptor.IsFilterEditor = true;
                gridViewDecks.Columns["MyDust"].FilterDescriptor = fDescriptor;

                sDescriptor.PropertyName = "Tier";
                sDescriptor.Direction    = ListSortDirection.Ascending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                sDescriptor = new SortDescriptor();
                sDescriptor.PropertyName = "Dust";
                sDescriptor.Direction    = ListSortDirection.Descending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                break;

            case "rbClass":
                gDescriptor.GroupNames.Add("Class", ListSortDirection.Ascending);
                gridViewDecks.GroupDescriptors.Add(gDescriptor);

                sDescriptor.PropertyName = "MyDust";
                sDescriptor.Direction    = ListSortDirection.Ascending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                sDescriptor = new SortDescriptor();
                sDescriptor.PropertyName = "Tier";
                sDescriptor.Direction    = ListSortDirection.Ascending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                sDescriptor = new SortDescriptor();
                sDescriptor.PropertyName = "Dust";
                sDescriptor.Direction    = ListSortDirection.Descending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);

                fDescriptor.Operator       = FilterOperator.IsEqualTo;
                fDescriptor.Value          = DeckType.Standard;
                fDescriptor.IsFilterEditor = true;
                gridViewDecks.Columns["DeckType"].FilterDescriptor = fDescriptor;
                fDescriptor                = new FilterDescriptor();
                fDescriptor.Operator       = FilterOperator.IsLessThanOrEqualTo;
                fDescriptor.Value          = 1;
                fDescriptor.IsFilterEditor = true;
                gridViewDecks.Columns["MissingCardNo"].FilterDescriptor = fDescriptor;
                break;

            case "rbSource":
                gDescriptor.GroupNames.Add("Source", ListSortDirection.Ascending);
                gridViewDecks.GroupDescriptors.Add(gDescriptor);

                sDescriptor.PropertyName = "Tier";
                sDescriptor.Direction    = ListSortDirection.Ascending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                sDescriptor = new SortDescriptor();
                sDescriptor.PropertyName = "MyDust";
                sDescriptor.Direction    = ListSortDirection.Ascending;
                gridViewDecks.MasterTemplate.SortDescriptors.Add(sDescriptor);
                break;
            }

            if (gridViewDecks.SelectedRows.Count > 0)
            {
                gridViewDecks.SelectedRows[0].IsCurrent = false;
            }

            gridViewDecks.MasterTemplate.ExpandAllGroups();
        }
Beispiel #26
0
        private void rb_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            RadRadioButton rb = (RadRadioButton)sender;

            setRadioButton(rb);
        }