Inheritance: MonoBehaviour
        public PolyFileDbWriterFrame(PolyFileDbWriter writer)
        {
            InitializeComponent();
            m_writer = writer;

            cbxFileType.Items.Add(new FileWriterComboItem {
                Frame = new CodeWriterFrame(this, TextGeneratorLanguage.Template)
            });
            cbxFileType.Items.Add(new FileWriterComboItem {
                Frame = new CodeWriterFrame(this, TextGeneratorLanguage.Python)
            });
            cbxFileType.Items.Add(new FileWriterComboItem {
                Frame = new BlobWriterFrame(this)
            });
            cbxFileType.Items.Add(new FileWriterComboItem {
                Frame = new DataStoreWriterFrame(this)
            });
            m_created = true;

            foreach (var file in writer.Files)
            {
                lbxFiles.Items.Add(file);
            }

            UpdateEnabling();
            Translating.TranslateControl(this);
        }
    void OnTriggerStay(Collider collision)
    {
        //Debug.Log ("Trigger detected");

        //print (collision);
        targetCollision = collision.gameObject.GetComponent("Translating") as Translating;

        if(collision.gameObject.name == "Player 1"){
            Debug.Log("Player 1_Stay");
            playerOneDetect = true;

            if(targetCollision.movementEnabled)
                collision.gameObject.animation.Play("startle", PlayMode.StopAll);
        }
        if(collision.gameObject.name == "Player 2"){
            Debug.Log("Player 2_Stay");
            playerTwoDetect = true;

            if(targetCollision.movementEnabled)
                collision.gameObject.animation.Play("startle", PlayMode.StopAll);
        }
        if(collision.gameObject.name == "Player 3"){
            Debug.Log("Player 3_Stay");
            playerThreeDetect = true;

            if(targetCollision.movementEnabled)
                collision.gameObject.animation.Play("startle", PlayMode.StopAll);
        }
    }
Example #3
0
        private void ReloadData()
        {
            string sql = "select ID, QueryText_ID, ExecutedAt as \"{s_executed_at}\", Dialect as \"{s_dialect}\", DbServer as \"{s_server}\", DbName as \"{s_database}\", FileName as \"{s_filename}\", DurationInMilisecs as \"{s_duration} (ms)\" from QueryExecute order by ID desc";
            var    tbl = m_conn.LoadQuery(sql);

            dataGridView1.DataSource         = tbl;
            dataGridView1.Columns[0].Visible = false;
            dataGridView1.Columns[1].Visible = false;
            dataGridView1.Columns[2].Width   = 150;
            Translating.TranslateColumns(dataGridView1.Columns);
        }
Example #4
0
        public IDicomMappingItem Clone()
        {
            StorageItem itemB = new StorageItem();

            itemB.GWDataDBField  = GWDataDBField.Clone();
            itemB.Translating    = Translating.Clone();
            itemB.RedundancyFlag = RedundancyFlag;
            itemB.SourceField    = SourceField;
            itemB.TargetField    = TargetField;
            itemB.DPath          = DPath.Clone();
            return(itemB);
        }
Example #5
0
        public IXmlElementItem Clone()
        {
            XIMMappingItem item = new XIMMappingItem();

            item.GWDataDBField  = GWDataDBField.Clone();
            item.Translating    = Translating.Clone();
            item.RedundancyFlag = RedundancyFlag;
            item.SourceField    = SourceField;
            item.TargetField    = TargetField;
            item.Element        = Element.Clone();
            item.Enable         = Enable;
            return(item);
        }
Example #6
0
 public MultiTableDatabaseWriterFrame(MultiTableDatabaseWriter writer)
 {
     InitializeComponent();
     m_writer = writer;
     dataStoreFrame1.DataStoreMode = TabularDataStoreMode.WriteStream;
     if (m_writer.DataStore != null)
     {
         dataStoreFrame1.SetDataStore(m_writer.DataStore);
     }
     tbxFileName.Text = m_writer.FileNameTemplate;
     m_created        = true;
     Translating.TranslateControl(this);
 }
Example #7
0
        public IDicomMappingItem Clone()
        {
            MWLQueryCriteriaItem itemB = new MWLQueryCriteriaItem();

            itemB.GWDataDBField  = GWDataDBField.Clone();
            itemB.Translating    = Translating.Clone();
            itemB.RedundancyFlag = RedundancyFlag;
            itemB.SourceField    = SourceField;
            itemB.TargetField    = TargetField;
            itemB.DPath          = DPath.Clone();
            itemB.Operator       = Operator;
            itemB.Type           = Type;
            return(itemB);
        }
        private void BtnFiveDays_By_Hours_Click(object sender, EventArgs e)
        {
            Size = new System.Drawing.Size(600, 630);
            btnNext.Show();
            btnPrev.Show();
            WeatherModel.Last = (int)LastFunc.FIVEH;
            WeatherModel.TommorowShowIndex = 5; // 5-12
            WeatherModel.FiveDaysShowIndex = 1; // 1-5
            WeatherModel.IndexFiveDays     = 0;

            using (WebClient wc = new WebClient())
            {
                wc.Encoding = Encoding.UTF8;
                if (txtCityName.Text.Any())
                {
                    try
                    {
                        RadioButtonsUnitSet();
                        WeatherModel.City = txtCityName.Text;

                        WeatherModel.MinTemperature = 99999;
                        WeatherModel.MaxTemperature = -99999;
                        WeatherPresenter.FiveDaysHWeatherSet();
                        WeatherFiveDaysByHours();
                    }
                    catch {
                        txtRes.Text    = null;
                        txtResult.Text = "Incorrect city name";
                    }
                }
                else
                {
                    txtResult.Text = "Enter city name";
                }

                try
                {
                    txtResult.Text  = Translating.TranslateResult(txtResult.Text);
                    txtRes.Text     = Translating.TranslateResult(txtRes.Text);
                    txtCityDay.Text = Translating.TranslateResult(txtCityDay.Text);
                }
                catch { }
            }
        }
        private void BtnTomorrowWeather_Click(object sender, EventArgs e)
        {
            Size = new System.Drawing.Size(500, 400);

            txtRes.Text = "";
            btnNext.Show();
            btnPrev.Show();
            WeatherModel.Last = (int)LastFunc.TOMORROW;
            WeatherModel.FiveDaysShowIndex  = 1; // 1-5
            WeatherModel.FiveDaysHShowIndex = 1; // 1-5
            WeatherModel.IndexFiveDays      = 0;
            WeatherModel.Index = 0;

            if (txtCityName.Text.Any())
            {
                try
                {
                    RadioButtonsUnitSet();
                    WeatherModel.City = txtCityName.Text;

                    WeatherModel.MinTemperature = 99999;
                    WeatherModel.MaxTemperature = -99999;
                    WeatherPresenter.TommorowWeatherSet();
                    WeatherTomorrow();
                }
                catch {
                    txtRes.Text    = null;
                    txtResult.Text = "Incorrect city name";
                }
            }
            else
            {
                txtResult.Text = "Enter city name";
            }

            try
            {
                txtResult.Text  = Translating.TranslateResult(txtResult.Text);
                txtRes.Text     = Translating.TranslateResult(txtRes.Text);
                txtCityDay.Text = Translating.TranslateResult(txtCityDay.Text);
            }
            catch { }
        }
        private void BtnTodayWeather_Click(object sender, EventArgs e)
        {
            Size        = new System.Drawing.Size(500, 460);
            txtRes.Text = "";

            WeatherModel.Last = (int)LastFunc.TODAY;
            WeatherModel.TommorowShowIndex  = 5; // 5-12
            WeatherModel.FiveDaysShowIndex  = 1; // 1-5
            WeatherModel.FiveDaysHShowIndex = 1; // 1-5
            WeatherModel.IndexFiveDays      = 0;
            WeatherModel.Index = 0;

            if (txtCityName.Text.Any())
            {
                try
                {
                    RadioButtonsUnitSet();
                    WeatherModel.City = txtCityName.Text;

                    WeatherPresenter.TodayWeatherSet();
                    WeatherToday();
                }
                catch
                {
                    txtRes.Text    = null;
                    txtResult.Text = "Некорректное название города";
                }
            }
            else
            {
                txtResult.Text = "Введите название города";
            }

            try
            {
                txtResult.Text  = Translating.TranslateResult(txtResult.Text);
                txtRes.Text     = Translating.TranslateResult(txtRes.Text);
                txtCityDay.Text = Translating.TranslateResult(txtCityDay.Text);
            }
            catch { }
        }
Example #11
0
 private void cbxDataSourceType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (m_cfgFrame != null)
     {
         m_cfgFrame.Visible = false;
     }
     m_cfgFrame = Configurator.GetEditor();
     if (m_cfgFrame.Parent == null)
     {
         panConfigurator.Controls.Add(m_cfgFrame);
         m_cfgFrame.Dock = DockStyle.Fill;
         Translating.TranslateControl(m_cfgFrame);
     }
     else
     {
         m_cfgFrame.Visible = true;
     }
     if (chbAutoRefresh.Checked)
     {
         RefreshChartData();
     }
 }
Example #12
0
    void OnTriggerEnter(Collider targetCollider)
    {
        if(targetCollider != null){
            //Debug.Log(targetCollider.name + " killed");
            target = targetCollider.gameObject.GetComponent("Translating") as Translating;
            targetFlashlight = targetCollider.gameObject.GetComponent("FlashlightScript") as FlashlightScript;
            targetAudioSource = targetCollider.gameObject.GetComponent("AudioSource") as AudioSource;

            //if(target == null)
            //	Debug.Log ("Broken =(");

            if(target != null && targetFlashlight != null && targetAudioSource != null){
                if(target.movementEnabled){ //FUUUUUUUUUU
                    target.animation.Play("faint",PlayMode.StopAll);
                }

                target.movementEnabled = false;
                targetFlashlight.isActivated = false;
                targetAudioSource.enabled = false;

                GamePad.SetVibration(0, 1, 1);
            }
        }
    }
Example #13
0
 public GenericConnWizard()
 {
     InitializeComponent();
     Translating.TranslateControl(this);
     //wizard1.Pages.Remove(wpselectdb);
 }
Example #14
0
 protected override void OnVisibleChanged(EventArgs e)
 {
     base.OnVisibleChanged(e);
     Translating.TranslateControl(this);
 }
Example #15
0
 private void Initialize()
 {
     Translating.TranslateControl(this);
     dataGridView1.Sort(dataGridView1.Columns[1], ListSortDirection.Descending);
 }
Example #16
0
        public TextImportFrame(TextImportDataStore store)
        {
            InitializeComponent();

            foreach (var i in EncodingTypeConverter.EncodingItems)
            {
                cbxEncoding.Items.Add(i);
            }

            m_store = store;

            cbxFieldType.Items.Add(new FieldAnalyseComboItem {
                Frame = new WholeLineFieldFrame(this)
            });
            cbxFieldType.Items.Add(new FieldAnalyseComboItem {
                Frame = new SeparatedFieldsFrame(this)
            });
            cbxFieldType.Items.Add(new FieldAnalyseComboItem {
                Frame = new RegexFieldsFrame(this)
            });
            cbxFieldType.Items.Add(new FieldAnalyseComboItem {
                Frame = new ScriptFieldsFrame(this)
            });

            switch (m_store.SourceType)
            {
            case TextSourceType.File:
                tbxFile.Text    = m_store.Source;
                rbtFile.Checked = true;
                break;

            case TextSourceType.Url:
                tbxUrl.Text    = m_store.Source;
                rbtUrl.Checked = true;
                break;

            case TextSourceType.Text:
                tbxTextInput.Text    = m_store.Source;
                rbtTextInput.Checked = true;
                break;
            }

            tbxLineLimitBegin.Text  = m_store.LineLimitBegin ?? "";
            tbxLineLimitEnd.Text    = m_store.LineLimitEnd ?? "";
            tbxLineRegex.Text       = m_store.LineRegex ?? "";
            tbxLineRegexGroup.Text  = m_store.LineRegexGroup ?? "";
            tbxLineSeparator.Text   = m_store.LineSeparator ?? "";
            chbLineSepRegex.Checked = m_store.LineSeparatowIsRegex;

            switch (m_store.RowDelimiter)
            {
            case RowDelimiterType.Limitation:
                rbtLineLimitation.Checked = true;
                break;

            case RowDelimiterType.Lines:
                rbtLines.Checked = true;
                break;

            case RowDelimiterType.Regex:
                rbtLineRegex.Checked = true;
                break;

            case RowDelimiterType.Separator:
                rbtLineSeparator.Checked = true;
                break;
            }

            UpdateRowsEnabling();
            UpdateSourceEnabling();

            cbxEncoding.SelectedIndex = EncodingTypeConverter.GetEncodingIndex(m_store.SourceEncoding);

            Translating.TranslateControl(this);

            if (m_store.FieldAnalyser is WholeLineAnalyser)
            {
                cbxFieldType.SelectedIndex = 0;
            }
            else if (m_store.FieldAnalyser is SeparatedFieldsAnalyser)
            {
                cbxFieldType.SelectedIndex = 1;
            }
            else if (m_store.FieldAnalyser is RegexFieldAnalyser)
            {
                cbxFieldType.SelectedIndex = 2;
            }
            else if (m_store.FieldAnalyser is ScriptAnalyser)
            {
                cbxFieldType.SelectedIndex = 3;
            }

            FieldFrame.LoadFromAnalyser(m_store.FieldAnalyser);

            // add field frame
            panel1.Controls.Add(FieldFrame);
            FieldFrame.Dock = DockStyle.Fill;

            m_created = true;
        }