Exemplo n.º 1
0
        public ServerConnectionForm(ActionBuilder owner, Framework.Interfaces.ICore core)
            : this()
        {
            _owner = owner;
            _core  = core;

            var af = (owner.ChildForm as ActionBuilderForm).AvailableActionFlows;

            if (af != null)
            {
                foreach (var a in af)
                {
                    ActionImplementation startAction = (from sa in a.Actions where sa is ActionStart select sa).FirstOrDefault();
                    if (startAction != null)
                    {
                        FlowInfo fi = new FlowInfo();
                        fi.Author      = "";
                        fi.Created     = DateTime.MinValue;
                        fi.Modified    = DateTime.MinValue;
                        fi.Description = "";
                        fi.Name        = a.Name;
                        fi.ID          = startAction.ID;
                        fi.IsPublic    = false;
                        fi.ActionFlow  = a;
                        comboBox1.Items.Add(fi);
                    }
                }
            }

            flowsList1.flowList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(flowList_SelectionChanged);

            this.Text              = string.Format("{0} - {1}", Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE1), Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE2));
            this.groupBox2.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_SERVERFLOWS);
            this.groupBox3.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_YOURFLOWS);
            this.radioButton1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_YOURUPLOADED);
            this.radioButton2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_ALLPUBLICFLOWS);
            this.label3.Text       = Utils.LanguageSupport.Instance.GetTranslation(STR_DESCRIPTION);
            this.label6.Text       = Utils.LanguageSupport.Instance.GetTranslation(STR_DESCRIPTION);
            flowsList1.flowList.Columns[0].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_NAME);
            flowsList1.flowList.Columns[1].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_AUTHOR);
            flowsList1.flowList.Columns[2].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_CREATED);
            flowsList1.flowList.Columns[3].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_MODIFIED);
            flowsList1.flowList.Columns[4].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_PUBLIC);
            this.button3.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_DOWNLOAD);
            this.button4.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_DELETE);
            this.label4.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_FLOW);
            this.button5.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_UPLOAD);
            this.checkBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_PUBLIC);
            this.button6.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_OK);
        }
Exemplo n.º 2
0
        public ServerConnectionForm(ActionBuilder owner, Framework.Interfaces.ICore core)
            : this()
        {
            _owner = owner;
            _core = core;

            var af = (owner.ChildForm as ActionBuilderForm).AvailableActionFlows;
            if (af != null)
            {
                foreach (var a in af)
                {
                    ActionImplementation startAction = (from sa in a.Actions where sa is ActionStart select sa).FirstOrDefault();
                    if (startAction != null)
                    {
                        FlowInfo fi = new FlowInfo();
                        fi.Author = "";
                        fi.Created = DateTime.MinValue;
                        fi.Modified = DateTime.MinValue;
                        fi.Description = "";
                        fi.Name = a.Name;
                        fi.ID = startAction.ID;
                        fi.IsPublic = false;
                        fi.ActionFlow = a;
                        comboBox1.Items.Add(fi);
                    }
                }
            }

            flowsList1.flowList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(flowList_SelectionChanged);

            this.Text = string.Format("{0} - {1}", Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE1), Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE2));
            this.groupBox2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SERVERFLOWS);
            this.groupBox3.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_YOURFLOWS);
            this.radioButton1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_YOURUPLOADED);
            this.radioButton2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_ALLPUBLICFLOWS);
            this.label3.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_DESCRIPTION);
            this.label6.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_DESCRIPTION);
            flowsList1.flowList.Columns[0].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_NAME);
            flowsList1.flowList.Columns[1].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_AUTHOR);
            flowsList1.flowList.Columns[2].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_CREATED);
            flowsList1.flowList.Columns[3].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_MODIFIED);
            flowsList1.flowList.Columns[4].Header = Utils.LanguageSupport.Instance.GetTranslation(STR_PUBLIC);
            this.button3.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_DOWNLOAD);
            this.button4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_DELETE);
            this.label4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_FLOW);
            this.button5.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_UPLOAD);
            this.checkBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_PUBLIC);
            this.button6.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_OK);
        }