Exemplo n.º 1
0
 protected virtual void Start()
 {
     _editPanel = FindObjectOfType <EditPanel>();
     _editPanel.OnEntryChanged += onEntryChanged;
     _volumeFactory             = FindObjectOfType <EntryVolumeFactory>();
     createPreview();
 }
Exemplo n.º 2
0
 private void editbranchbtn_Click(object sender, EventArgs e)
 {
     if (editlocationtxt.Text == String.Empty)
     {
         MessageBox.Show("Fill all Fields", "Required", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         if (editcomboadmin.SelectedIndex > 0)
         {
             B.Br_Admin_ID = itemid[editcomboadmin.SelectedIndex];
         }
         B.Location = editlocationtxt.Text;
         ServiceBranch.BranchServiceClient s    = new ServiceBranch.BranchServiceClient();
         ServiceBranch.Branchdata          data = new ServiceBranch.Branchdata();
         data = s.updateBranch(B);
         if (data != null)
         {
             MessageBox.Show("Edit Successfully", "Edit", MessageBoxButtons.OK, MessageBoxIcon.Information);
             Load_data();
             AddPanel.Hide();
             EditPanel.Hide();
             List.Show();
         }
         else
         {
             MessageBox.Show("Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
        private void EditPanel_LoadedPage(EditPanel sender, LoadedPageEventArgs e)
        {
            var currentUser = HttpContext.Current.User;
            if (currentUser == null)
                return;

            PageData typedPage = PageTypeBuilder.PageTypeResolver.Instance.ConvertToTyped(e.Page);
            Type typedPageType = PageTypeBuilder.PageTypeResolver.Instance.GetPageTypeType(e.Page.PageTypeID);

            if (typedPageType == null)
                return;

            var locator = new AuthorizedPropertyDefinitionLocator(typedPage, typedPageType, new TabDefinitionRepository());

            List<AuthorizedPropertyDefinition> definitions = locator.GetAuthorizedPropertyDefinitions();

            foreach (var definition in definitions)
            {
                if (e.Page.Property[definition.PropertyName] == null)
                    continue;

                e.Page.Property[definition.PropertyName].DisplayEditUI =
                    currentUser.IsInAnyRoleOrUserList(definition.AuthorizedPrincipals);
            }

            foreach (var property in e.Page.Property)
            {
                if (property.DisplayEditUI)
                    Debug.WriteLine(property.Name);
            }

        }
Exemplo n.º 4
0
        private void branchaddbtn_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtlocation.Text) && combobr_adminList.SelectedIndex > 0)
            {
                int br_admin_id = itemid[combobr_adminList.SelectedIndex];
                ServiceBranch.BranchServiceClient c = new ServiceBranch.BranchServiceClient();
                ServiceBranch.Branch d = new ServiceBranch.Branch();
                d.Location    = txtlocation.Text;
                d.Br_Admin_ID = br_admin_id;
                d             = c.addBranch(d);
                if (d != null && d.Id > 0)
                {
                    MessageBox.Show("Add Sucessfully", "Branch Added !", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Load_data();
                    AddPanel.Hide();
                    EditPanel.Hide();
                    List.Show();
                }
                else
                {
                    MessageBox.Show("Fail", "Fail !", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            else
            {
                MessageBox.Show("Fill all Fields", " Info !", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemplo n.º 5
0
 private void btnSubjectEditCancel_Click(object sender, EventArgs e)
 {
     subjectDetails.Show();
     btnSubjectEdit.Show();
     EditPanel.Hide();
     btnEdit2Main.Hide();
 }
Exemplo n.º 6
0
 protected virtual void Start()
 {
     _editPanel          = FindObjectOfType <EditPanel>();
     _contentDataFactory = new ContentDataFactory();
     initDropdown();
     initContent();
     _editPanel.OnEntryChanged += onEntryChanged;
 }
Exemplo n.º 7
0
 private void AllBranch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     AllBranch.LinkBehavior = System.Windows.Forms.LinkBehavior.AlwaysUnderline;
     AddBranch.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
     List.Show();
     EditPanel.Show();
     AddPanel.Show();
 }
 protected virtual void Start()
 {
     _factory   = FindObjectOfType <MetaContentEditorFactory>();
     _editPanel = FindObjectOfType <EditPanel>();
     _current   = _editPanel.Entry;
     initEntry();
     _editPanel.OnEntryChanged += onEntryChanged;
 }
 protected virtual void Start()
 {
     _editPanel   = FindObjectOfType <EditPanel>();
     _dataFactory = new MetaDataFactory();
     _current     = _editPanel.Entry;
     onEntryChanged();
     _editPanel.OnEntryChanged += onEntryChanged;
 }
Exemplo n.º 10
0
 public Subject()
 {
     InitializeComponent();
     createNewPanel.Hide();
     btnSubjectMain.Hide();
     EditPanel.Hide();
     btnEdit2Main.Hide();
     FillClassList();
 }
Exemplo n.º 11
0
 private void EditMode()
 {
     if (Input.GetKeyDown(KeyCode.Delete))
     {
         Selectable.ShortcutDelete();
         return;
     }
     if (Input.GetKeyDown(KeyCode.Backslash))
     {
         EditPanel.ExitEditMode();
         return;
     }
 }
        private async void AddClick(object s, RoutedEventArgs e)
        {
            EditPanel panel = new EditPanel();
            await panel.ShowDialog(this);

            if (!panel.exitNormally)
            {
                return;
            }
            this.FindControl <ListBox>("list").SelectedItem = null;
            // this.FindControl<ListBox>("list").Items = new List<ListBoxItem>().ToImmutableArray();
            this.FindControl <ListBox>("list").Items     = Restore.db.Add(panel.F, panel.N, panel.C, panel.S);
            this.FindControl <TextBox>("Searchbox").Text = "";
        }
Exemplo n.º 13
0
        private void ChoosePanel(string panel)
        {
            if (panel.Equals("order"))
            {
                OrderPanel.Show();
                EditPanel.Hide();
            }

            else
            {
                EditPanel.Show();
                OrderPanel.Hide();
            }
        }
Exemplo n.º 14
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DialogResult r = MessageBox.Show("Are you want to Edit Info !", "Edit", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (r == DialogResult.Yes)
            {
                DataGridViewRow row = branchdata.Rows[e.RowIndex];

                B.Id = Int32.Parse(row.Cells["Id"].Value.ToString());

                B.Br_Admin_ID        = Int32.Parse(row.Cells["Br_Admin_ID"].Value.ToString());
                B.Location           = row.Cells["Location"].Value.ToString();
                editlocationtxt.Text = B.Location;
                EditPanel.Show();
                List.Hide();
            }
        }
Exemplo n.º 15
0
        protected void WrapStylesGrid_RowEditing(object sender, GridViewEditEventArgs e)
        {
            int       wrapStyleId = (int)WrapStylesGrid.DataKeys[e.NewEditIndex].Value;
            WrapStyle style       = WrapStyleDataSource.Load(wrapStyleId);

            if (style != null)
            {
                AddPanel.Visible  = false;
                EditPanel.Visible = true;
                EditCaption.Text  = string.Format(EditCaption.Text, style.Name);
                EditWrapStyleDialog editDialog = EditPanel.FindControl("EditWrapStyleDialog1") as EditWrapStyleDialog;
                if (editDialog != null)
                {
                    editDialog.WrapStyleId = wrapStyleId;
                }
            }
        }
Exemplo n.º 16
0
        protected void GroupGrid_RowEditing(object sender, GridViewEditEventArgs e)
        {
            int groupId = (int)GroupGrid.DataKeys[e.NewEditIndex].Value;

            CommerceBuilder.Users.Group group = GroupDataSource.Load(groupId);
            if (group != null)
            {
                AddPanel.Visible  = false;
                EditPanel.Visible = true;
                EditCaption.Text  = string.Format(EditCaption.Text, group.Name);
                EditGroupDialog editDialog = EditPanel.FindControl("EditGroupDialog1") as EditGroupDialog;
                if (editDialog != null)
                {
                    editDialog.GroupId = groupId;
                }
                AddEditAjax.Update();
            }
        }
Exemplo n.º 17
0
        protected void PaymentMethodGrid_RowEditing(object sender, GridViewEditEventArgs e)
        {
            int           paymentMethodId = (int)PaymentMethodGrid.DataKeys[e.NewEditIndex].Value;
            PaymentMethod paymentMethod   = PaymentMethodDataSource.Load(paymentMethodId);

            if (paymentMethod != null)
            {
                AddPanel.Visible  = false;
                EditPanel.Visible = true;
                EditCaption.Text  = string.Format(EditCaption.Text, paymentMethod.Name);
                AbleCommerce.Admin.Payment.EditPaymentMethodDialog editDialog = EditPanel.FindControl("EditPaymentMethodDialog1") as AbleCommerce.Admin.Payment.EditPaymentMethodDialog;
                if (editDialog != null)
                {
                    editDialog.LoadDialog(paymentMethodId);
                }
                UpdatePanel1.Update();
            }
        }
Exemplo n.º 18
0
        protected void LanguagesGrid_RowEditing(object sender, GridViewEditEventArgs e)
        {
            int      languageId = (int)LanguagesGrid.DataKeys[e.NewEditIndex].Value;
            Language language   = LanguageDataSource.Load(languageId);

            if (language != null)
            {
                AddPanel.Visible  = false;
                EditPanel.Visible = true;
                EditCaption.Text  = string.Format(EditCaption.Text, language.Name);
                EditLanguageDialog editDialog = EditPanel.FindControl("EditLanguageDialog1") as EditLanguageDialog;
                if (editDialog != null)
                {
                    editDialog.LanguageId = languageId;
                }
                AddEditAjax.Update();
            }
        }
Exemplo n.º 19
0
    protected void onCommand(object sender, CommandEventArgs e)
    {
        EditPanel editPanel = sender as EditPanel;

        // set the content from the file on 'Cancel' button click
        // (by default the previous content is restored - after the last submit)
        if (e.CommandName == "cancel")
        {
            StreamReader input;
            input             = new StreamReader(System.Web.HttpContext.Current.Server.MapPath("contents/Content1.txt"), System.Text.Encoding.ASCII);
            editPanel.Content = input.ReadToEnd();
            input.Close();
        }
        // 'Submit' clicked
        if (e.CommandName == "submit")
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "response", "setTimeout(function(){alert('Submitted HTML code length: " + editPanel.Content.Length.ToString() + "');},0);", true);
        }
    }
Exemplo n.º 20
0
        private void editbranchbtn_Click(object sender, EventArgs e)
        {
            B.Br_Admin_ID = UserInfo.id;
            B.Location    = editlocationtxt.Text;
            ServiceBranch.BranchServiceClient s    = new ServiceBranch.BranchServiceClient();
            ServiceBranch.Branchdata          data = new ServiceBranch.Branchdata();
            data = s.updateBranch(B);
            if (data != null)
            {
                MessageBox.Show("Edit Successfully", "Edit", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Load_data();
                List.Show();

                EditPanel.Hide();
            }
            else
            {
                MessageBox.Show("Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 21
0
        private void UsersGridView_CellContentClick(object sender, EventArgs e)
        {
            if (UsersGridView.SelectedRows.Count == 0)
            {
                return;
            }
            UserInfo f = new UserInfo(new User(UsersGridView.SelectedRows[0].Cells["Login"].Value.ToString()));
            Panel    p = f.EditPanel;

            p.Top    = UsersGridView.Top + 12;
            p.Left   = UsersGridView.Left + UsersGridView.Width + 5;
            p.Height = MainPanel.Height;
            p.Width  = MainPanel.Width;
            p.Anchor = AnchorStyles.Left | AnchorStyles.Top;
            p.Name   = "UserInfoPanel";
            EditPanel.Controls.Add(p);
            p.BringToFront();
            EditPanel.Invalidate();
            p.Invalidate();
        }
        private async void EditClick(object s, RoutedEventArgs e)
        {
            if (this.FindControl <ListBox>("list").SelectedItem == null)
            {
                return;
            }
            Database.Data data  = (Database.Data)((ListBoxItem)this.FindControl <ListBox>("list").SelectedItem).DataContext;
            EditPanel     panel = new EditPanel();

            panel.Change(data.formula, data.name, data.cas, data.smiles);
            await panel.ShowDialog(this);

            if (!panel.exitNormally)
            {
                return;
            }
            this.FindControl <ListBox>("list").SelectedItem = null;
            // this.FindControl<ListBox>("list").Items = new List<ListBoxItem>().ToImmutableArray();
            this.FindControl <ListBox>("list").Items     = Restore.db.Add(panel.F, panel.N, panel.C, panel.S);
            this.FindControl <TextBox>("Searchbox").Text = "";
        }
Exemplo n.º 23
0
        private void InitializeComponent()
        {
            SuspendLayout();

            ClientSize = new Size(1200, 800);

            Board      = new BoardPanel(controller);
            Edit       = new EditPanel(controller);
            Statistics = new StatisticsPanel(controller);

            Result        = new Label();
            Result.Height = 100;
            Result.Font   = new Font(Result.Font.FontFamily, 15);

            var MultiPanel = new FlowLayoutPanel
            {
                FlowDirection = FlowDirection.TopDown,
                Dock          = DockStyle.Fill
            };

            MultiPanel.Controls.Add(Result);
            MultiPanel.Controls.Add(Board);
            MultiPanel.Controls.Add(Edit);

            var TotalPanel = new FlowLayoutPanel
            {
                FlowDirection = FlowDirection.LeftToRight,
                Dock          = DockStyle.Fill
            };

            TotalPanel.Controls.Add(MultiPanel);
            TotalPanel.Controls.Add(Statistics);

            Controls.Add(MultiPanel);

            Name = "FourInARow";
            ResumeLayout(false);
        }
Exemplo n.º 24
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DialogResult r = CustomMessage.Show("Operation", "Select Edit or Delete", "Edit", "Delete", "Cancel");

            if (r == DialogResult.Yes)
            {
                DataGridViewRow row = branchdata.Rows[e.RowIndex];

                B.Id = Int32.Parse(row.Cells["Id"].Value.ToString());

                B.Br_Admin_ID        = Int32.Parse(row.Cells["Br_Admin_ID"].Value.ToString());
                B.Location           = row.Cells["Location"].Value.ToString();
                editlocationtxt.Text = B.Location;
                EditPanel.Show();
                List.Hide();
                AddPanel.Hide();
            }
            else if (r == DialogResult.No)
            {
                DataGridViewRow row = branchdata.Rows[e.RowIndex];
                ServiceBranch.BranchServiceClient sb = new ServiceBranch.BranchServiceClient();


                ServiceBranch.Branchdata data = new ServiceBranch.Branchdata();
                data = sb.deleteBranch(Int32.Parse(row.Cells["Id"].Value.ToString()));

                if (data != null)
                {
                    MessageBox.Show("Deleted successfully", "Deleted", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Load_data();
                }
            }
            else
            {
            }
        }
Exemplo n.º 25
0
        // Use this for initialization
        public void Init()
        {
            image_Edit        = transform.Find("Panel_Edit").GetComponent <Image>();
            image_Time1       = transform.Find("Panel_Edit/Image_Time1").GetComponent <Image>();
            image_Time2       = transform.Find("Panel_Edit/Image_Time2").GetComponent <Image>();
            panel_KeyParent   = transform.Find("Panel_Edit/Panel_KeyParent").GetComponent <Image>();
            image_KeyPressed1 = transform.Find("Panel_Edit/Image_KeyPressed1").GetComponent <Image>();
            image_KeyPressed2 = transform.Find("Panel_Edit/Image_KeyPressed2").GetComponent <Image>();

            image_Keys = new List <Image>();
            {
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyA").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyB").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyC").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyD").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyE").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyF").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyG").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyH").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyI").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyJ").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyK").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyL").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyN").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyM").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyO").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyP").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyQ").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyR").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyS").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyT").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyU").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyV").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyW").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyX").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyY").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyZ").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyDel").GetComponent <Image>());
                image_Keys.Add(transform.Find("Panel_Edit/Image_KeyEnter").GetComponent <Image>());
            }

            image_Edits = new List <EditPanel>();
            {
                EditPanel ui = new EditPanel();
                ui.image_CharSlotList = new List <Image>();
                ui.image_Head         = transform.Find("Panel_Edit/Image_P1").GetComponent <Image>();
                ui.image_Target       = transform.Find("Panel_Edit/Image_Target1").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P1/Image_Name1").GetComponent <Image>());
                ui.image_Key = null;
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P1/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P1/Image_Name3").GetComponent <Image>());
                image_Edits.Add(ui);
            }

            {
                EditPanel ui = new EditPanel();
                ui.image_CharSlotList = new List <Image>();
                ui.image_Head         = transform.Find("Panel_Edit/Image_P2").GetComponent <Image>();
                ui.image_Target       = transform.Find("Panel_Edit/Image_Target2").GetComponent <Image>();
                ui.image_Key          = null;
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P2/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P2/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P2/Image_Name3").GetComponent <Image>());
                image_Edits.Add(ui);
            }

            {
                EditPanel ui = new EditPanel();
                ui.image_CharSlotList = new List <Image>();
                ui.image_Head         = transform.Find("Panel_Edit/Image_P3").GetComponent <Image>();
                ui.image_Target       = transform.Find("Panel_Edit/Image_Target3").GetComponent <Image>();
                ui.image_Key          = null;
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P3/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P3/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_Edit/Image_P3/Image_Name3").GetComponent <Image>());
                image_Edits.Add(ui);
            }

            image_TopN = transform.Find("Panel_TopN").GetComponent <Image>();
            image_Tops = new List <TopPanel>();
            {
                TopPanel ui = new TopPanel();
                ui.image_CharSlotList   = new List <Image>();
                ui.image_NumberSlotList = new List <Image>();
                ui.image_Head           = transform.Find("Panel_TopN/Image_P1/Image_Head").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Name3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Value1").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Value2").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Value3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Value4").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P1/Image_Value5").GetComponent <Image>());
                image_Tops.Add(ui);
            }

            {
                TopPanel ui = new TopPanel();
                ui.image_CharSlotList   = new List <Image>();
                ui.image_NumberSlotList = new List <Image>();
                ui.image_Head           = transform.Find("Panel_TopN/Image_P2/Image_Head").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Name3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Value1").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Value2").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Value3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Value4").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P2/Image_Value5").GetComponent <Image>());
                image_Tops.Add(ui);
            }

            {
                TopPanel ui = new TopPanel();
                ui.image_CharSlotList   = new List <Image>();
                ui.image_NumberSlotList = new List <Image>();
                ui.image_Head           = transform.Find("Panel_TopN/Image_P3/Image_Head").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Name3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Value1").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Value2").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Value3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Value4").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P3/Image_Value5").GetComponent <Image>());
                image_Tops.Add(ui);
            }

            {
                TopPanel ui = new TopPanel();
                ui.image_CharSlotList   = new List <Image>();
                ui.image_NumberSlotList = new List <Image>();
                ui.image_Head           = transform.Find("Panel_TopN/Image_P4/Image_Head").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Name3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Value1").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Value2").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Value3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Value4").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P4/Image_Value5").GetComponent <Image>());
                image_Tops.Add(ui);
            }

            {
                TopPanel ui = new TopPanel();
                ui.image_CharSlotList   = new List <Image>();
                ui.image_NumberSlotList = new List <Image>();
                ui.image_Head           = transform.Find("Panel_TopN/Image_P5/Image_Head").GetComponent <Image>();
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Name1").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Name2").GetComponent <Image>());
                ui.image_CharSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Name3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Value1").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Value2").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Value3").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Value4").GetComponent <Image>());
                ui.image_NumberSlotList.Add(transform.Find("Panel_TopN/Image_P5/Image_Value5").GetComponent <Image>());
                image_Tops.Add(ui);
            }

            {
                image_Ground1      = transform.Find("Panel_Edit/Image_Ground1").GetComponent <Image>();
                image_Ground1_En   = transform.Find("Panel_Edit/Image_Ground1_En").GetComponent <Image>();
                image_TextTips1    = transform.Find("Panel_Edit/Image_TextTips1").GetComponent <Image>();
                image_TextTips1_En = transform.Find("Panel_Edit/Image_TextTips1_En").GetComponent <Image>();
                iamge_EnSure       = transform.Find("Panel_Edit/Image_KeyEnter").GetComponent <Image>();
                image_EnSure_En    = transform.Find("Panel_Edit/Image_KeyEnter_En").GetComponent <Image>();

                image_TopN_Ground1    = transform.Find("Panel_TopN/Image_Ground1").GetComponent <Image>();
                image_TopN_Ground1_En = transform.Find("Panel_TopN/Image_Ground1_En").GetComponent <Image>();
            }

            {
                low_water   = transform.parent.Find("LowWater").gameObject;
                hight_water = transform.parent.Find("HightWater").gameObject;
            }
        }
 private void OnEnable()
 {
     editor_panel = (EditPanel)target;
 }
Exemplo n.º 27
0
 protected virtual void Start()
 {
     _editPanel = FindObjectOfType <EditPanel>();
     _editPanel.OnEntryChanged += updateText;
 }
Exemplo n.º 28
0
 protected virtual void Start()
 {
     _editPanel = FindObjectOfType <EditPanel>();
     _editPanel.OnEntryChanged += onEntryChanged;
     initEntry();
 }
Exemplo n.º 29
0
 protected virtual void Start()
 {
     _button.onClick.AddListener(delete);
     _editPanel = FindObjectOfType <EditPanel>();
 }
Exemplo n.º 30
0
 protected virtual void Start()
 {
     _editPanel = FindObjectOfType <EditPanel>(true);
     _button.onClick.AddListener(onClick);
 }
Exemplo n.º 31
0
 void Awake()
 {
     singleton = this;
     gameObject.SetActive(false);
 }