Esempio n. 1
0
        private void Misc_ListBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            wndSettings.uiWndSettingsNumberRequest bR = new wndSettings.uiWndSettingsNumberRequest();
            //wndSettings.uiWndSettingsValueSelector vS = new wndSettings.uiWndSettingsValueSelector();

            if (Misc_ListBox.IndexFromPoint(e.Location) >= 0)
            {
                switch (Misc_ListBox.SelectedIndex)
                {
                    case 0: bR.Value = ConfigManager.Instance.CommonConfiguration.STYLE_Misc_ChequeRowHeight; break;
                    case 1: bR.Value = ConfigManager.Instance.CommonConfiguration.STYLE_Misc_ArticleRowHeight; break;
                    case 2: bR.Value = ConfigManager.Instance.CommonConfiguration.STYLE_Misc_BillItemsRowHeight; break;
                    case 3: bR.Value = ConfigManager.Instance.CommonConfiguration.STYLE_Misc_BillItemProductsRowHeight; break;
                    case 4:
                        //vS.addValues(new object[] { 50, 100 });
                        bR.Value = ConfigManager.Instance.CommonConfiguration.skin_sensor_com_size_cheque; break;
                    case 5:
                        //vS.addValues(new object[] { 50, 100 });
                        bR.Value = ConfigManager.Instance.CommonConfiguration.skin_sensor_com_size_art; break;
                }
                if (bR.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    switch (Misc_ListBox.SelectedIndex)
                    {
                        case 0: ConfigManager.Instance.CommonConfiguration.STYLE_Misc_ChequeRowHeight = bR.Value; break;
                        case 1: ConfigManager.Instance.CommonConfiguration.STYLE_Misc_ArticleRowHeight = bR.Value; break;
                        case 2: ConfigManager.Instance.CommonConfiguration.STYLE_Misc_BillItemsRowHeight = bR.Value; break;
                        case 3: ConfigManager.Instance.CommonConfiguration.STYLE_Misc_BillItemProductsRowHeight = bR.Value; break;
                        case 4: ConfigManager.Instance.CommonConfiguration.skin_sensor_com_size_cheque = bR.Value; break;
                        case 5: ConfigManager.Instance.CommonConfiguration.skin_sensor_com_size_art = bR.Value; break;
                    }

            }

            bR.Dispose();
        }
Esempio n. 2
0
        private void Misc_ListBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            wndSettings.uiWndSettingsNumberRequest bR = new wndSettings.uiWndSettingsNumberRequest();
            if (Misc_ListBox.IndexFromPoint(e.Location) >= 0)
            {
                switch (Misc_ListBox.SelectedIndex)
                {
                    case 0: bR.Value = AppConfig.STYLE_Misc_ChequeRowHeight; break;
                    case 1: bR.Value = AppConfig.STYLE_Misc_ArticleRowHeight; break;
                }
                if (bR.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    switch (Misc_ListBox.SelectedIndex)
                    {
                        case 0: AppConfig.STYLE_Misc_ChequeRowHeight = bR.Value; break;
                        case 1: AppConfig.STYLE_Misc_ArticleRowHeight = bR.Value; break;
                    }
            }

            bR.Dispose();
        }