コード例 #1
0
        private void FrmPurchaseKeyPress(object sender, KeyPressEventArgs e)
        {
            try
            {
                // for giving barcode from user
                if (e.KeyChar == '$')
                {
                    try
                    {
                        var elanguage = new System.Globalization.CultureInfo("en-us");
                        InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(elanguage);
                    }
                    catch (Exception)
                    {
                        return;
                    }

                    _isBarCode = !_isBarCode;
                    e.Handled  = true;
                    if (!_isBarCode)
                    {
                        if (_barcode.Length > 2)
                        {
                            jsBarCodeBox1.Text = _barcode;
                            BarcodeChanged();
                        }
                        _barcode = "";
                        try
                        {
                            var planguage = new System.Globalization.CultureInfo("fa-ir");
                            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(planguage);
                        }
                        catch (Exception)
                        {
                            return;
                        }
                    }
                }
                else if (_isBarCode)
                {
                    e.Handled = true;
                    _barcode += e.KeyChar;
                }
            }
            catch (Exception)
            {
                MessageBox.Show(@"خطا در خواندن اطلاعات از کاربر", @"سامانه مدیریت سوپر مارکت");
                return;
            }
        }
コード例 #2
0
ファイル: Config.cs プロジェクト: ChenglongMa/AutoIME
        public void Switch2TextIME()
        {
            var txtCulture = Settings.Default.TextIMECulture;

            if (!string.IsNullOrEmpty(txtCulture))
            {
                TextIME = InputLanguage.FromCulture(CultureInfo.GetCultureInfo(txtCulture));
                InputLanguage.CurrentInputLanguage = TextIME;
            }
            else
            {
                Program.Editor.WriteMessage("无法切换语言,请使用'SetIME'命令设置\n");
            }
        }
コード例 #3
0
        private void applySettings()
        {//apply stored settings on the preferences window-----------------------------------
            TopMost = Properties.Settings.Default.alwaysOnTop;

            string cul = Properties.Settings.Default.culture;

            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo(Properties.Settings.Default.culture));
            SystemParametersInfo(0x005A, 0, InputLanguage.CurrentInputLanguage.Handle, 0);

            red              = Properties.Settings.Default.overlayR;
            green            = Properties.Settings.Default.overlayG;
            blue             = Properties.Settings.Default.overlayB;
            panel1.BackColor = Color.FromArgb(255, red, green, blue);
        }
コード例 #4
0
ファイル: Form3.cs プロジェクト: robmas1356/ManiFestGitHub
        private void Form3_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo language = new System.Globalization.CultureInfo("en-us");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(language);

            txtVoy1.Text = Properties.Settings.Default.LineCode;
            txtVoy2.Text = Properties.Settings.Default.LineCode;
            txt02.Text   = Properties.Settings.Default.LineCode;

            cmb06.DataSource    = CustomsCode.GetAllData();
            cmb06.DisplayMember = "Full";

            cmb07.DataSource    = CustomsCode.GetAllData();
            cmb07.DisplayMember = "Full";
        }
コード例 #5
0
        private void vk_latrus_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (keyBoard.Locale == keyBoard.ru)
            {
                keyBoard.Locale = keyBoard.lat;
            }
            else
            {
                keyBoard.Locale = keyBoard.ru;
            }

            keyBoard.changeKeyboard();

            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo(keyBoard.Locale));
        }
コード例 #6
0
        private void frmGhabzPardakht_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo inp = new System.Globalization.CultureInfo("fa-IR");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(inp);
            cur_date = Date.currentDate_Getter();
            newform();

            teachers  te       = new teachers();
            DataTable dttename = new DataTable();

            dttename              = te.Search("SELECT name FROM teachers order by name");
            txtname.DataSource    = dttename;
            txtname.DisplayMember = "name";
            txtname.ValueMember   = "name";
        }
コード例 #7
0
ファイル: WinApiInteraction.cs プロジェクト: lujiawen/Code
 public static void ChangeLanguage(KeyboardCurrentState state)
 {
     if (state == KeyboardCurrentState.eng)
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
     }
     if (state == KeyboardCurrentState.rus)
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("ru-RU"));
     }
     else
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
     }
 }
コード例 #8
0
        public FormMain()
        {
            InitializeComponent();

            nagging = new FormNag();
            nagging.Show(this);

            var query =
                from ss in model.Stages.All
                join ts in model.Tumors.All on ss.Diagnosis equals ts.Diagnosis
                join ns in model.Nodules.All on ss.Diagnosis equals ns.Diagnosis
                join ms in model.Metastases.All on ss.Diagnosis equals ms.Diagnosis
                select new ClassesRecord {
                ID          = 0,
                Diagnosis   = ts.Diagnosis,
                Stage       = ss.Code,
                StageArabic = ss.CodeArabic,
                Tumor       = ts.Code,
                Nodus       = ns.Code,
                Metastasis  = ms.Code,
                Code        = ClassesRecord.GetCode(ss.ID, ts.ID, ns.ID, ms.ID)
            };

            // Load directions' table with options
            DataTable table = lib.DataTableHelper.ConvertToDatatable(query.Take(100));

            sgData.DataSource = table;
            sgData.Columns["Code"].Visible = false;
            lblCaseCode.DataBindings.Add("Text", sgData.DataSource, "Code");

            // Preload stage-coding table
            tableDirections = lib.DataTableHelper.ConvertToDatatable(model.Directions.All);
            tableDirections.DefaultView.Sort = "Title";
            sgDirections.DataSource          = tableDirections;
            lblDirection.DataBindings.Add("Text", sgDirections.DataSource, "ID");

            // Keyboard to latin:
            CultureInfo TypeOfLanguage = CultureInfo.CreateSpecificCulture("en-US");

            System.Threading.Thread.CurrentThread.CurrentCulture = TypeOfLanguage;
            InputLanguage l = InputLanguage.FromCulture(TypeOfLanguage);

            InputLanguage.CurrentInputLanguage = l;

            // Select first tab
            pcMain.SelectedIndex = 0;
            edICD.Select();
        }
コード例 #9
0
        public void ConvertsKeyToCorrectChar(Key key, bool shift, bool alt, bool ctrl, char output)
        {
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(CultureInfo.GetCultureInfo("en-GB"));

            var keyCombination = new KeyCombination
            {
                Key   = key,
                Shift = shift,
                Alt   = alt,
                Ctrl  = ctrl
            };

            var ascii = keyCombination.ToChar();

            ascii.Should().Be(output);
        }
コード例 #10
0
ファイル: login.cs プロジェクト: majidam20/Office_Mnagement
        private void login_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-US");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(c);

            LDBclass  LDB = new LDBclass();
            DataTable dt  = new DataTable();

            dt = LDB.Search();
            if (dt.Columns.Count > 0)
            {
                txtServAdd.Text  = dt.Rows[0]["ServerAddress"].ToString();
                Txt_db_uid.Text  = dt.Rows[0]["DbUserID"].ToString();
                Txt_db_pass.Text = dt.Rows[0]["DbUserPass"].ToString();
            }
        }
コード例 #11
0
        private void frmGhabzDaryaftIndividual_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo inp = new System.Globalization.CultureInfo("fa-IR");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(inp);
            cur_date = Date.currentDate_Getter();

            Courses   co     = new Courses();
            DataTable dtname = new DataTable();

            dtname = co.Search("SELECT coursename FROM courses order by coursename");
            txtartcourse.DataSource    = dtname;
            txtartcourse.DisplayMember = "coursename";
            txtartcourse.ValueMember   = "coursename";

            fillInfo();
        }
コード例 #12
0
ファイル: Config.cs プロジェクト: ChenglongMa/AutoIME
        public void Initialize()
        {
            DefaultIME = InputLanguage.CurrentInputLanguage;
            var cmdCulture = Settings.Default.CommandIMECulture;

            if (!string.IsNullOrEmpty(cmdCulture))
            {
                CommandIME = InputLanguage.FromCulture(CultureInfo.GetCultureInfo(cmdCulture));
            }
            var txtCulture = Settings.Default.TextIMECulture;

            if (!string.IsNullOrEmpty(txtCulture))
            {
                TextIME = InputLanguage.FromCulture(CultureInfo.GetCultureInfo(txtCulture));
            }
        }
コード例 #13
0
        public void DoOnClipSelection(object sender, EventArgs e)
        {
            this._clipboardWrapper.SetDataObject(this._bufer.ViewModel.Clip);

            this._bufermanHost.HideWindow();

            var currentLanguage = InputLanguage.CurrentInputLanguage;

            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("en-US"));// TODO (m) This culture should be calculated automatically

            new KeyboardEmulator()
            .HoldDownCtrl()
            .SendKeyboardKeys("v", false);

            InputLanguage.CurrentInputLanguage = currentLanguage;
        }
コード例 #14
0
        public FormTrainNumberGenerator()
        {
            Application.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ru-RU"));

            InitializeComponent();

            baseFontSize = lblTestWord.Font.Size;

            train = new TrainMachineNumberGenerator();

            FillNetsComboBox();

            defence = new DoubleClickDefence(this.components);

            #region Начальная инициализация.

            chBAutoShow.Checked      = train.IsAutoShowing;
            chBTimeForAnswer.Checked = train.IsAutoAnswer;
            chbValueRange.Checked    = train.IsRangeEnabled;

            nUDLeft.Value  = train.MinNumber;
            nUDRight.Value = train.MaxNumber;

            nUDVisibleTime.Value   = train.TimeShowing;
            nUDTimeForAnswer.Value = train.TimeForAnswer;

            nUDSymbolsCount.Value = train.SymbolsCount;

            #endregion Начальная инициализация.

            netCheckedListBox.ListBox.ItemCheck += new ItemCheckEventHandler(ListBox_ItemCheck);

            Common.SetLabelText(lblTestWord, baseFontSize, string.Empty);
            lblTestWord.Visible = false;

            lblCheckResult.Text    = string.Empty;
            lblCheckResult.Visible = false;

            LoadFormConfiguration();

            train.TrainStarted         += new EventHandler(train_TrainStarted);
            train.TrainQuestionNew     += new EventHandler(train_TrainQuestionNew);
            train.TrainQuestionHided   += new EventHandler(train_TrainQuestionHided);
            train.TrainAnswerAutoCheck += new AutoCheckEventHandler(train_TrainAnswerAutoCheck);
            train.TrainQuestionResult  += new QuestionResultEventHandler(train_TrainQuestionResult);
            train.TrainStoped          += new EventHandler(train_TrainStoped);
        }
コード例 #15
0
ファイル: frmHozoorView.cs プロジェクト: ppourali/Rohab_new
        private void frmHozoorView_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo inp = new System.Globalization.CultureInfo("fa-IR");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(inp);
            cur_date = Date.currentDate_Getter();


            Courses   co     = new Courses();
            DataTable dtname = new DataTable();

            dtname = co.Search("SELECT coursename FROM courses order by coursename");
            txtartcourse.DataSource    = dtname;
            txtartcourse.DisplayMember = "coursename";
            txtartcourse.ValueMember   = "coursename";

            std       st        = new std();
            DataTable dtstdname = new DataTable();

            dtstdname             = st.Search("SELECT name FROM std order by name");
            txtname.DataSource    = dtstdname;
            txtname.DisplayMember = "name";
            txtname.ValueMember   = "name";

            txtartcourse.Text = "";
            txtname.Text      = "";



            checkBox1.Checked = true;
            btnfilter.PerformClick();

            grdDataViewer.AutoGenerateColumns = true;

            string[] col_headers = { "ردیف", "مشخصه هنرجو", "نام و نام خانوادگی", "مشخصه کلاس", "رشته هنری", "تاریخ", "روز", "وضعیت" };
            int[]    col_width   = { 60, 70, 120, 70, 90, 80, 80, 77 };

            for (int i = 0; i < col_headers.Length; i++)
            {
                grdDataViewer.Columns[i].HeaderText = col_headers[i].ToString();
                grdDataViewer.Columns[i].Width      = col_width[i];
            }

            DataGridViewCellStyle objAlternatingCellStyle = new DataGridViewCellStyle();

            objAlternatingCellStyle.BackColor             = Color.Khaki;
            grdDataViewer.AlternatingRowsDefaultCellStyle = objAlternatingCellStyle;
        }
コード例 #16
0
        public FormImpressionTrain()
        {
            Application.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ru-RU"));

            InitializeComponent();

            labelDrawPoint                  = new PointF((float)lblTestWord.Width / 2, (float)lblTestWord.Height / 2);
            labelStringFormat               = new StringFormat();
            labelStringFormat.Alignment     = StringAlignment.Center;
            labelStringFormat.LineAlignment = StringAlignment.Center;

            defence = new DoubleClickDefence(this.components);

            baseFontSize = lblTestWord.Font.Size;

            Common.SetLabelText(lblTestWord, baseFontSize, string.Empty);
            lblTestWord.Visible = false;

            cBDictionary.DataSource            = WordDictionary.SourcesFile;
            cBDictionary.DisplayMember         = "Name";
            cBDictionary.SelectedIndexChanged += new EventHandler(cBDictionary_SelectedIndexChanged);

            train = new TrainMachineImpression();

            nUDVisibleTime.Value    = train.TimeShowing;
            rbSymbols.Checked       = train.TestType == TrainTypeImpression.Symbols;
            rbDictionary.Checked    = train.TestType == TrainTypeImpression.Dictionary;
            cbRandomSymbols.Checked = train.WithRandomLiters;
            cBColor.Checked         = train.WithColor;
            nUDSymbolsCount.Value   = train.SymbolsCount;
            nUDWordsCount.Value     = train.WordsCount;

            LoadFormConfiguration();

            if (string.IsNullOrEmpty(tStStatusWords.Text))
            {
                FillWordCount();
            }

            train.TrainStarted        += new EventHandler(train_TrainStarted);
            train.TrainTestBegin      += new EventHandler(train_TrainTestBegin);
            train.TrainQuestionNew    += new EventHandler(train_TrainQuestionNew);
            train.TrainTestEnd        += new EventHandler(train_TrainTestEnd);
            train.TrainQuestionResult += new QuestionResultEventHandler(train_TrainQuestionResult);
            train.TrainStoped         += new EventHandler(train_TrainStoped);
        }
コード例 #17
0
        public KeyboardEmulator TypeText(string keysCombination)
        {
            this.Wait();

            var currentLanguage = InputLanguage.CurrentInputLanguage;

            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("en"));//This culture should be calculated automatically here and in other place.

            foreach (var escapedChar in KeyboardEmulator._ReplaceSpecialSendKeysCharacters(keysCombination))
            {
                this.SendKeyboardKeys(escapedChar);
            }

            InputLanguage.CurrentInputLanguage = currentLanguage;

            return(this);
        }
コード例 #18
0
ファイル: WelcomeForm.cs プロジェクト: Hazaaa/TextCorrect
        //

        private void pbxSerbian_Click(object sender, EventArgs e)
        {
            string[] languages = { "sr-Cyrl-RS", "sr-Latn-RS" };

            foreach (string languageName in languages)
            {
                var culture  = System.Globalization.CultureInfo.GetCultureInfo(languageName);
                var language = InputLanguage.FromCulture(culture);

                if (InputLanguage.InstalledInputLanguages.IndexOf(language) < 0)
                {
                    MessageBox.Show("Serbian language pack is missing.\nTry installing Serbian Latin and Cyrillic in your Windows preferences and restart application.", "Language pack missing.", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
            }
            ShowMainForm(Language.Serbian_latin);
        }
コード例 #19
0
#pragma warning disable 1591

        public DialogContact(bool virtualKeybord = false)
#pragma warning restore 1591
        {
            InitializeComponent();
            //TODO обеспечить чтение параметров
            _keybordVisible = virtualKeybord;

            try
            {
                _language = InputLanguage.CurrentInputLanguage;
                InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
            }
            catch
            {
                // ignored
            }
        }
コード例 #20
0
        private void frmControl_Load(object sender, EventArgs e)
        {
            // prepare search trie
            _bw = new BackgroundWorker();
            _bw.WorkerReportsProgress = true;
            _bw.DoWork += (object s1, DoWorkEventArgs e1) =>
            {
                Utils.BuildSearchTries(_bw);
            };
            _bw.ProgressChanged += (object s1, ProgressChangedEventArgs e1) =>
            {
                btnSearch.Text = "در حال آماده‌سازی جستجو (" + e1.ProgressPercentage + "%)...";
            };
            _bw.RunWorkerCompleted += (object s1, RunWorkerCompletedEventArgs e1) =>
            {
                if (e1.Error != null)
                {
                    btnSearch.Text = e1.Error.ToString();
                }
                else
                {
                    btnSearch.Text    = "جستجو... (Ctrl+F)";
                    btnSearch.Enabled = true;
                    btnGoto.Enabled   = true;
                }
            };
            _bw.RunWorkerAsync();


            //this.WindowState = FormWindowState.Maximized;
            if (Screen.AllScreens.Count() < 2)
            {
                MessageBox.Show("لطفا قبل از استفاده از نرم افزار ویدئو پروژکتور را به کامپیوتر وصل کرده به مسیر زیر بروید \n\r Control Panel\\Display\\Adjust resulution\\Multiple displays\n\r و آن را روی \n\r Extend these displays\n\r تنظیم کنید.", "", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign);
            }

            groupBox1.BackColor = Color.FromArgb(245, 245, 255);
            Global.ShowForms();
            browser.BrowserType = LIB.Browser.BrowserTypes.Image;
            browser.GoToFolder(1);
            SendToOutput();

            System.Globalization.CultureInfo language = new System.Globalization.CultureInfo("fa-ir");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(language);

            //CleanFolders();
        }
コード例 #21
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Text = "Программа для работы с базой телефонных номеров Администрации города Челябинска v 2.0";
            dataGridView1.DataSource                            = GetTable();
            dataGridView1.DefaultCellStyle.Font                 = new Font("Times New Roman", 9F);
            dataGridView1.DefaultCellStyle.WrapMode             = DataGridViewTriState.True;
            dataGridView1.Columns[1].DefaultCellStyle.BackColor = Color.LightCyan;
            dataGridView1.Columns[0].DefaultCellStyle.Font      = new Font("Times New Roman", 9F, FontStyle.Bold);
            dataGridView1.Columns[2].DefaultCellStyle.BackColor = Color.LightCyan;
            dataGridView1.Columns[4].DefaultCellStyle.BackColor = Color.LightCyan;
            InputLanguage.CurrentInputLanguage                  = InputLanguage.FromCulture(System.Globalization.CultureInfo.CreateSpecificCulture("Ru"));
            dataGridView1.Columns[0].Width                      = 220;
            dataGridView1.Columns[1].Width                      = 120;
            dataGridView1.Columns[2].Width                      = 60;

            textBox_FIO.Select(); //установка курсора в строку поиска
        }
コード例 #22
0
ファイル: addteacher.cs プロジェクト: ppourali/Rohab_new
        private void addteacher_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo inp = new System.Globalization.CultureInfo("fa-IR");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(inp);


            Courses   co     = new Courses();
            DataTable dtname = new DataTable();

            dtname = co.Search("SELECT coursename FROM courses");
            txtartcourse.DataSource    = dtname;
            txtartcourse.DisplayMember = "coursename";
            txtartcourse.ValueMember   = "coursename";

            FillDataSetAndView();

            if (objCurrencyManager.Count == 0)
            {
                foreach (Control c in grpinfo_box.Controls)
                {
                    if (c.GetType() == typeof(NormalTextbox) || c.GetType() == typeof(NormalCombobox) || c.GetType() == typeof(DateMaskedTextbox))
                    {
                        c.Enabled = false;
                    }
                }

                btnAdd.Enabled          = false;
                btnMoveFirst.Enabled    = false;
                btnMovePrevious.Enabled = false;
                btnMoveNext.Enabled     = false;
                btnMoveLast.Enabled     = false;
                btnUpdate.Enabled       = false;
                btnNew.Visible          = true;
                //btnCancel.Visible = false;
                txtRecordPosition.Text     = "No Record";
                toolStripStatusLabel1.Text = "آماده ایجاد رکورد جدید";
            }
            else
            {
                BindFields();
                objCurrencyManager.Position = objCurrencyManager.Count - 1;
                ShowPosition();
                btnAdd.Enabled = false;
            }
        }
コード例 #23
0
 protected override void OnEnter(EventArgs e)
 {
     base.OnEnter(e);
     try
     {
         if (PersianText)
         {
             var language = new System.Globalization.CultureInfo("fa-ir");
             InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(language);
         }
         else
         {
             var language = new System.Globalization.CultureInfo("en-us");
             InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(language);
         }
     }
     catch (Exception){return;}
 }
コード例 #24
0
 private void ListKarshenasiFrm_Load(object sender, EventArgs e)
 {
     try
     {
         Karshenasi.My.MyProject.MyForms.Wait_frm.Show();
         Karshenasi.My.MyProject.MyForms.Wait_frm.Refresh();
         First_Initialize();
         Type_Sazman();
         Unit_Sazman(Conversions.ToInteger(ComboBox1.SelectedValue));
         Clear_Textbox();
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("Fa"));
         Karshenasi.My.MyProject.MyForms.Wait_frm.Close();
     }
     catch (Exception ex)
     {
         Interaction.MsgBox(ex.ToString());
     }
 }
コード例 #25
0
        private void tb_add_name_TextChanged(object sender, EventArgs e)
        {
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("el-GR"));

            if (tb_add_name.Text.ToCharArray().Any(element => char.IsDigit(element)))
            {
                tb_add_name.Text           = tb_add_name.Text.Substring(0, tb_add_name.Text.Length - 1);
                tb_add_name.SelectionStart = tb_add_name.Text.Length;
            }

            foreach (string item in cbb_add_names.Items)
            {
                if (item.Contains(tb_add_name.Text))
                {
                    cbb_add_names.SelectedItem = item;
                }
            }
        }
コード例 #26
0
        private void frmControl_Load(object sender, EventArgs e)
        {
            //this.WindowState = FormWindowState.Maximized;
            if (Screen.AllScreens.Count() < 2)
            {
                MessageBox.Show("لطفا قبل از استفاده از نرم افزار ویدئو پروژکتور را به کامپیوتر وصل کرده به مسیر زیر بروید \n\r Control Panel\\Display\\Adjust resulution\\Multiple displays\n\r و آن را روی \n\r Extend these displays\n\r تنظیم کنید.", "", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign);
            }

            groupBox1.BackColor = Color.FromArgb(245, 245, 255);
            Global.ShowForms();
            browser.BrowserType = LIB.Browser.BrowserTypes.Image;
            browser.GoToFolder(1);
            SendToOutput();

            System.Globalization.CultureInfo language = new System.Globalization.CultureInfo("fa-ir");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(language);

            CleanFolders();
        }
コード例 #27
0
ファイル: classview.cs プロジェクト: ppourali/Rohab_new
        private void classview_Load(object sender, EventArgs e)
        {
            System.Globalization.CultureInfo inp = new System.Globalization.CultureInfo("fa-IR");
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(inp);
            cur_date = Date.currentDate_Getter();


            Courses   co     = new Courses();
            DataTable dtname = new DataTable();

            dtname = co.Search("SELECT coursename FROM courses order by coursename");
            txtartcourse.DataSource    = dtname;
            txtartcourse.DisplayMember = "coursename";
            txtartcourse.ValueMember   = "coursename";

            std       st        = new std();
            DataTable dtstdname = new DataTable();

            dtstdname                = st.Search("SELECT name FROM std order by name");
            txtstdname.DataSource    = dtstdname;
            txtstdname.DisplayMember = "name";
            txtstdname.ValueMember   = "name";

            teachers  te       = new teachers();
            DataTable dttename = new DataTable();

            dttename = te.Search("SELECT name FROM teachers order by name");
            txtteacher.DataSource    = dttename;
            txtteacher.DisplayMember = "name";
            txtteacher.ValueMember   = "name";

            txtartcourse.Text = "";
            txtteacher.Text   = "";
            txtstdname.Text   = "";
            txtday.Text       = "";



            cmddel.Enabled  = true;
            cmdedit.Enabled = true;

            checkBox1.Checked = true;
        }
コード例 #28
0
        public MainForm(string[] args)
        {
            InitializeComponent();
            // EH keeps main form responsive/refreshed
            this.Shown += MainForm_Splash;

            var ci     = new CultureInfo("en-US");
            var thread = System.Threading.Thread.CurrentThread;

            Application.CurrentCulture       = thread.CurrentCulture = thread.CurrentUICulture = ci;
            Application.CurrentInputLanguage = InputLanguage.FromCulture(ci);

            if (args.Length > 0 && File.Exists(args[0]))
            {
                LoadTemplate(args[0]);
            }

            InitMainForm();
        }
コード例 #29
0
 public void changeLanguage(string param)
 {
     if (param == "ru")
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ru-RU"));
     }
     else if (param == "en")
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("en-US"));
     }
     else if (param == "ro")
     {
         InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ro-RO"));
     }
     else
     {
         return;
     }
 }
コード例 #30
0
        private void Form2_Load(object sender, EventArgs e)
        {
            // Переключение на русский язык
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ru-RU"));

            // создание объекта подключения
            conn = new SqlConnection(connectionStr);

            // открыть соединение
            conn.Open();

            DownloadCategory();
            DownloadPN();
            DownloadEmail();
            DownloadPerson();

            // закрыть соединение
            conn.Close();
        }