예제 #1
0
        private void btnExcluir_Click_1(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Time RegTime = new Time();

                RegTime.IdTime = Convert.ToInt16(txtId.Text);
                RegTime.NomeTime = txtNomeTime.Text;

                if (RegTime.Excluir() > 0)
                {
                    MessageBox.Show("Time excluído com sucesso!");
                    Time R = new Time();
                    dsTime.Tables.Clear();
                    dsTime.Tables.Add(R.Listar());
                    bnTime.DataSource = dsTime.Tables["TIME"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Time!");
                }
            }
        }
예제 #2
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Jogo RegJogo = new Jogo();

                RegJogo.IdJogo = Convert.ToInt16(txtIdJogo.Text);

                if (RegJogo.Excluir() > 0)
                {
                    MessageBox.Show("Jogo excluído com sucesso!");
                    Jogo R = new Jogo();
                    dsJogo.Tables.Clear();
                    dsJogo.Tables.Add(R.Listar());
                    bnJogo.DataSource = dsJogo.Tables["JOGO"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Jogo!");
                }
            }
        }
예제 #3
0
        private void btnNovoRegistro_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }

            bnJogo.AddNew();
            cbTime1.Enabled   = true;
            cbTime2.Enabled   = true;
            cbEstadio.Enabled = true;
            txtGrupo.Enabled  = true;
            txtObs.Enabled    = true;
            dtpData.Enabled   = true;
            cbTime1.Focus();
            cbTime2.Focus();
            txtIdJogo.Focus();
            txtGrupo.Focus();
            txtObs.Focus();
            cbEstadio.Focus();

            btnSalvar.Enabled       = true;
            btnAlterar.Enabled      = false;
            btnNovoRegistro.Enabled = false;
            btnExcluir.Enabled      = false;
            btnCancelar.Enabled     = true;

            bInclusao = true;
        }
예제 #4
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Membro RegCid = new Membro();

                RegCid.IdMembro    = Convert.ToInt16(txtId.Text);
                RegCid.NomeMembro  = txtNomeMembro.Text;
                RegCid.PapelMembro = txtPapelMembro.Text;


                if (RegCid.Excluir() > 0)
                {
                    MessageBox.Show("Membro excluído com sucesso!");
                    Membro R = new Membro();
                    dsMembro.Tables.Clear();
                    dsMembro.Tables.Add(R.Listar());
                    bnMembro.DataSource = dsMembro.Tables["Membro"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Membro!");
                }
            }
        }
예제 #5
0
        private void InitializeComponent()
        {
            this.StopTalk.Click                += new EventHandler(this.StopTalk_Click);
            this.DelPosts.Click                += new EventHandler(this.DelPosts_Click);
            this.SaveUserInfo.Click            += new EventHandler(this.SaveUserInfo_Click);
            this.ResetPassWord.Click           += new EventHandler(this.ResetPassWord_Click);
            this.IsEditUserName.CheckedChanged += new EventHandler(this.IsEditUserName_CheckedChanged);

            this.DelUserInfo.Click         += new EventHandler(this.DelUserInfo_Click);
            this.ReSendEmail.Click         += new EventHandler(this.ReSendEmail_Click);
            this.CalculatorScore.Click     += new EventHandler(this.CalculatorScore_Click);
            this.ResetUserDigestPost.Click += new EventHandler(this.ResetUserDigestPost_Click);
            this.ResetUserPost.Click       += new EventHandler(this.ResetUserPost_Click);

            this.GivenMedal.Click += new EventHandler(this.GivenMedal_Click);

            this.Load += new EventHandler(this.Page_Load);

            extgroupids.AddTableData(DatabaseProvider.GetInstance().GetGroupInfo());

            groupid.AddTableData(DatabaseProvider.GetInstance().GetGroupInfo());
            templateid.AddTableData(DatabaseProvider.GetInstance().GetTemplateInfo());
            templateid.Items[0].Text = "默认";
            TabControl1.InitTabPage();
            if (DNTRequest.GetString("uid") == "")
            {
                Response.Redirect("global_usergrid.aspx");
                return;
            }
            LoadCurrentUserInfo(DNTRequest.GetInt("uid", -1));
            LoadScoreInf(DNTRequest.GetString("uid"), DNTRequest.GetString("fieldname"));
        }
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                TipoDespesa RegCid = new TipoDespesa();

                RegCid.IdTipoDespesa   = Convert.ToInt16(txtId.Text);
                RegCid.NomeTipoDespesa = txtNomeTipoDespesa.Text;


                if (RegCid.Excluir() > 0)
                {
                    MessageBox.Show("Tipo de despesa excluído com sucesso!");
                    TipoDespesa R = new TipoDespesa();
                    dsTipoDespesa.Tables.Clear();
                    dsTipoDespesa.Tables.Add(R.Listar());
                    bnTipoDespesa.DataSource = dsTipoDespesa.Tables["TIPODESPESA"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir tipo de despesa!");
                }
            }
        }
예제 #7
0
        private void btnExcluir_Click_1(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Estadio RegEstadio = new Estadio();

                RegEstadio.IdEstadio   = Convert.ToInt16(txtIdEstadio.Text);
                RegEstadio.NomeEstadio = txtNomeEstadio.Text;

                if (RegEstadio.Excluir() > 0)
                {
                    MessageBox.Show("Estadio excluído com sucesso!");
                    Estadio R = new Estadio();
                    dsEstadio.Tables.Clear();
                    dsEstadio.Tables.Add(R.Listar());
                    bnEstadio.DataSource = dsEstadio.Tables["ESTADIO"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Estadio!");
                }
            }
        }
예제 #8
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Cidade RegCid = new Cidade();

                RegCid.Idcidade   = Convert.ToInt16(txtId.Text);
                RegCid.Nomecidade = txtNomeCidade.Text;
                RegCid.Ufcidade   = cbxEstado.SelectedItem.ToString();

                if (RegCid.Excluir() > 0)
                {
                    MessageBox.Show("Cidade excluída com sucesso!");
                    Cidade R = new Cidade();
                    dsCidade.Tables.Clear();
                    dsCidade.Tables.Add(R.Listar());
                    bnCidade.DataSource = dsCidade.Tables["TBCidade"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir cidade!");
                }
            }
        }
예제 #9
0
        private string SetThemes(string Name, Color A, Color B, Color C)
        {
            if (A.IsNamedColor == false || B.IsNamedColor == false || C.IsNamedColor == false)
            {
                return("Unnamed color will not work");
            }

            Themes theme = new Themes();

            theme.ThemeName           = Name;
            theme.TextColor           = B.Name;
            theme.BackColor           = A.Name;
            theme.TopColor            = C.Name;
            TCDataFiltering.ForeColor = Color.FromName(theme.TextColor);
            TCDataFiltering.BackColor = Color.FromName(theme.BackColor);
            TCSettings.BackColor      = Color.FromName(theme.BackColor);
            TCSettings.ForeColor      = Color.FromName(theme.TextColor);
            TCEmailTemplate.BackColor = Color.FromName(theme.BackColor);
            TCEmailTemplate.ForeColor = Color.FromName(theme.TextColor);
            TCEmail.BackColor         = Color.FromName(theme.BackColor);
            TCEmail.ForeColor         = Color.FromName(theme.TextColor);
            panel1.BackColor          = Color.FromName(theme.TopColor);
            panel1.ForeColor          = Color.FromName(theme.TextColor);
            TabControl1.Update();
            var x = ThemesCollection.Contains(theme);

            ThemesCollection.themesList.Remove(x);
            ThemesCollection.themesList.Add(theme);

            return(null);
        }
예제 #10
0
        private void btnNovoRegistro_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }

            bnDespesa.AddNew();
            txtDataDespesa.Enabled       = true;
            cbxTipoDespesa.Enabled       = true;
            cbxTipoDespesa.SelectedIndex = 0;

            cbxMembro.Enabled       = true;
            cbxMembro.SelectedIndex = 0;
            txtValor.Enabled        = true;
            txtObs.Enabled          = true;

            txtDataDespesa.Focus();
            btnSalvar.Enabled       = true;
            btnAlterar.Enabled      = false;
            btnNovoRegistro.Enabled = false;
            btnExcluir.Enabled      = false;
            btnCancelar.Enabled     = true;

            bInclusao = true;;
        }
예제 #11
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Despesa RegDesp = new Despesa();

                RegDesp.IdDespesa     = Convert.ToInt16(txtId.Text);
                RegDesp.DataDespesa   = Convert.ToDateTime(txtDataDespesa.Text);
                RegDesp.TipoDespesaId = Convert.ToInt32(cbxTipoDespesa.SelectedValue);
                RegDesp.MembroId      = Convert.ToInt32(cbxMembro.SelectedValue);
                RegDesp.ValorDespesa  = Convert.ToDouble(txtValor.Text);
                RegDesp.ObsDespesa    = txtObs.Text;

                if (RegDesp.Excluir() > 0)
                {
                    MessageBox.Show("Despesa excluída com sucesso!");
                    Despesa R = new Despesa();
                    dsDespesa.Tables.Clear();
                    dsDespesa.Tables.Add(R.Listar());
                    bnDespesa.DataSource = dsDespesa.Tables["DESPESA"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Despesa!");
                }
            }
        }
예제 #12
0
 public void ShowWebPanel()
 {
     if (!TabControl1.Contains(tpWeb))
     {
         TabControl1.Controls.Add(tpWeb);
     }
 }
예제 #13
0
 public void HideWebPanel(object sender, EventArgs e)
 {
     if (TabControl1.Contains(tpWeb))
     {
         TabControl1.Controls.Remove(tpWeb);
     }
 }
예제 #14
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }


            if (MessageBox.Show("Confirma exclusão?", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Aluno RegAlu = new Aluno();

                RegAlu.Raaluno        = Convert.ToInt32(txtRa.Text);
                RegAlu.Nomealuno      = txtNomeAluno.Text;
                RegAlu.Cidadeidcidade = Convert.ToInt32(cbxCidade.SelectedValue);

                if (RegAlu.Excluir() > 0)
                {
                    MessageBox.Show("Aluno excluído com sucesso!");
                    Aluno R = new Aluno();
                    dsAluno.Tables.Clear();
                    dsAluno.Tables.Add(R.Listar());
                    bnAluno.DataSource = dsAluno.Tables["TBAluno"];
                }
                else
                {
                    MessageBox.Show("Erro ao excluir Aluno!");
                }
            }
        }
예제 #15
0
        private void LogOutBtn_Click(object sender, EventArgs e)
        {
            TabControl1.Hide();
            EmailLoginLbl.Show();
            PasswordLoginLbl.Show();
            LoginBtn.Show();
            EmailLoginTxt.Show();
            PasswordLoginTxt.Show();
            MailTxt.Show();
            MailBtn.Show();
            PWLbl.Show();

            if (role == "User")                          //Nedan är för att user och admin ska kunna ha olika sidor.
            {
                TabControl1.TabPages.Add(tabPage2);
                TabControl1.TabPages.Add(tabPage3);
                TabControl1.TabPages.Add(TabPage4);
                TabControl1.TabPages.Remove(TabPage5);
                TabControl1.TabPages.Add(TabPage5);
                TabControl1.TabPages.Add(tabPage6);
            }

            PasswordLoginTxt.Clear();
            EmailLoginTxt.Clear();
        }
예제 #16
0
 void StartServerList()
 {
     if (c == null)
     {
         c           = new LoginClientMinecraft();
         c.Progress += new EventHandler <ProgressEventArgs>(c_Progress);
         DrawServerList();
         TabControl1.SelectTab(1);
     }
 }
예제 #17
0
        public Form1()
        {
            InitializeComponent();

            TabControl1.Hide();

            PasswordLoginTxt.PasswordChar = '*';
            OldPWTxt.PasswordChar         = '*';
            NewPWTxt.PasswordChar         = '*';
            RepeatNewPWTxt.PasswordChar   = '*';

            Updates.SearchAllUpdates();
            UpdateTxt.Text = settingsUpdate;
        }
예제 #18
0
    private void Button2_Click(System.Object sender, System.EventArgs e)
    {
        WebBrowser Browser = new WebBrowser();

        TabControl1.TabPages.Add("New Page");
        TabControl1.SelectTab(@int);
        Browser.Name = "Web Browser";
        Browser.Dock = DockStyle.Fill;
        TabControl1.SelectedTab.Controls.Add(Browser);
        Browser.ProgressChanged   += Loading;
        Browser.DocumentCompleted += Done;
        @int = @int + 1;
        ((WebBrowser)TabControl1.SelectedTab.Controls.Item(0)).GoHome();
    }
예제 #19
0
        // Tab Context Menu
        private void TabContMenu_Opening(object sender, CancelEventArgs e)
        {
            Point     p = Control.MousePosition;
            Rectangle rTab;

            for (int i = 0; i <= TabControl1.TabCount - 1; i++)
            {
                rTab = TabControl1.RectangleToScreen(TabControl1.GetTabRect(i));
                if (rTab.Contains(p))
                {
                    TabControl1.SelectedIndex = i;
                    break;
                }
            }
        }
예제 #20
0
        public void lvRoom_DoubleClick(object sender, System.EventArgs e)
        {
            string a = System.Convert.ToString(Interaction.MsgBox("Update selected Item?", (int)Constants.vbQuestion + Constants.vbYesNo, "Update Room"));

            if (a == Constants.vbYes.ToString())
            {
                id                    = int.Parse(lvRoom.SelectedItems[0].Text);
                txtID.Text            = lvRoom.SelectedItems[0].SubItems[1].Text;
                txtRoomType.Text      = lvRoom.SelectedItems[0].SubItems[2].Text;
                txtRoomRate.Text      = lvRoom.SelectedItems[0].SubItems[3].Text;
                txtNoOfOccupancy.Text = lvRoom.SelectedItems[0].SubItems[4].Text;

                TabControl1.SelectTab(0);
                bttnSave.Text = "&Update";
            }
        }
예제 #21
0
        private void btnAlterar_Click_1(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }

            txtNomeTime.Enabled = true;
            txtNomeTime.Focus();
            btnSalvar.Enabled = true;
            btnAlterar.Enabled = false;
            btnNovoRegistro.Enabled = false;
            btnExcluir.Enabled = false;
            btnCancelar.Enabled = true;
            bInclusao = false;
        }
예제 #22
0
        private void InitializeComponent()
        {
            this.StopTalk.Click                += new EventHandler(this.StopTalk_Click);
            this.DelPosts.Click                += new EventHandler(this.DelPosts_Click);
            this.SaveUserInfo.Click            += new EventHandler(this.SaveUserInfo_Click);
            this.ResetPassWord.Click           += new EventHandler(this.ResetPassWord_Click);
            this.IsEditUserName.CheckedChanged += new EventHandler(this.IsEditUserName_CheckedChanged);

            this.DelUserInfo.Click         += new EventHandler(this.DelUserInfo_Click);
            this.ReSendEmail.Click         += new EventHandler(this.ReSendEmail_Click);
            this.CalculatorScore.Click     += new EventHandler(this.CalculatorScore_Click);
            this.ResetUserDigestPost.Click += new EventHandler(this.ResetUserDigestPost_Click);
            this.ResetUserPost.Click       += new EventHandler(this.ResetUserPost_Click);

            this.GivenMedal.Click += new EventHandler(this.GivenMedal_Click);
            //UserCredits.UpdateUserCredits(DNTRequest.GetInt("uid", -1));
            userInfo = AdminUsers.GetUserInfo(DNTRequest.GetInt("uid", -1));

            UserGroupInfo tmpUserGroupInfo = CreditsFacade.GetCreditsUserGroupId(userInfo.Credits);

            groupid.Items.Add(new ListItem(UserGroups.GetUserGroupInfo(tmpUserGroupInfo.Groupid).Grouptitle, tmpUserGroupInfo.Groupid.ToString()));
            foreach (UserGroupInfo userGroupInfo in UserGroups.GetUserGroupList())
            {
                //if (userGroupInfo.System == 0 && userInfo.Groupid != userGroupInfo.Groupid || userGroupInfo.Groupid == 7)
                //    continue;

                if ((userGroupInfo.System == 0 && userGroupInfo.Radminid == 0) || userGroupInfo.Groupid == 7)
                {
                    continue;
                }
                groupid.Items.Add(new ListItem(userGroupInfo.Grouptitle, userGroupInfo.Groupid.ToString()));
                extgroupids.Items.Add(new ListItem(userGroupInfo.Grouptitle, userGroupInfo.Groupid.ToString()));
            }

            templateid.AddTableData(Templates.GetValidTemplateList(), "name", "templateid");
            templateid.Items[0].Text = "默认";
            TabControl1.InitTabPage();

            if (DNTRequest.GetString("uid") == "")
            {
                Response.Redirect("global_usergrid.aspx");
                return;
            }
            LoadCurrentUserInfo(DNTRequest.GetInt("uid", -1));
            LoadScoreInf(DNTRequest.GetString("uid"), DNTRequest.GetString("fieldname"));
        }
예제 #23
0
 private void btnNovoRegistro_Click_1(object sender, EventArgs e)
 {
     if (TabControl1.SelectedIndex == 0)
     {
         TabControl1.SelectTab(1);
     }
     bnCidade.AddNew();
     txtNomeCidade.Enabled   = true;
     cbxEstado.Enabled       = true;
     cbxEstado.SelectedIndex = 0;
     txtNomeCidade.Focus();
     btnSalvar.Enabled       = true;
     btnAlterar.Enabled      = false;
     btnNovoRegistro.Enabled = false;
     btnExcluir.Enabled      = false;
     btnCancelar.Enabled     = true;
     bInclusao = true;
 }
예제 #24
0
        public TabbedSystem()
        {
            InitializeComponent();
            th.Translate(this);
            changesPanel1.Execute();
            changesPanel1.OnChangeLanguage = TranslateAll;
            webPanel1.AddButtonClick(new System.EventHandler(this.HideWebPanel));
            sniperPanel1.AddButtonClick(new System.EventHandler(this.AddLink));
            sniperPanel1.webBrowser = webPanel1.webBrowser1;

            if (!GlobalVars.EnableConsoleInTab)
            {
                if (TabControl1.Contains(tpConsole))
                {
                    TabControl1.Controls.Remove(tpConsole);
                }
            }
        }
예제 #25
0
        private void LoginBtn_Click(object sender, EventArgs e)             //Login delen är nedan.
        {
            Encrypter.MD5Hash(PasswordLoginTxt.Text);
            Login.LoginChecker(EmailLoginTxt.Text, hashed);
            Login.LoginRoleChecker(EmailLoginTxt.Text);

            if (Log == "Successful")            //Om inloggningen går igenom så ska "nästa sida" visas. Då ska inloggninssidan gömmas.
            {
                if (role == "User")             //Om man har rollen "User" så ska man kunna se vissa saker.
                {
                    loginEmail = EmailLoginTxt.Text;
                    TabControl1.Show();
                    TabControl1.TabPages.Remove(tabPage2);
                    TabControl1.TabPages.Remove(tabPage3);
                    TabControl1.TabPages.Remove(TabPage4);
                    TabControl1.TabPages.Remove(tabPage6);
                    EmailLoginLbl.Hide();
                    PasswordLoginLbl.Hide();
                    LoginBtn.Hide();
                    EmailLoginTxt.Hide();
                    PasswordLoginTxt.Hide();
                    MailTxt.Hide();
                    MailBtn.Hide();
                    PWLbl.Hide();
                }
                else                         //Är man inte User så är man Admin och då ska man kunna se vissa saker.
                {
                    loginEmail = EmailLoginTxt.Text;
                    TabControl1.Show();
                    EmailLoginLbl.Hide();
                    PasswordLoginLbl.Hide();
                    LoginBtn.Hide();
                    EmailLoginTxt.Hide();
                    PasswordLoginTxt.Hide();
                    MailTxt.Hide();
                    MailBtn.Hide();
                    PWLbl.Hide();
                }
            }
            else                              //Annars så ska den skriva att det är fel lösenord eller email.
            {
                MessageBox.Show("Wrong Email or password!");
            }
        }
예제 #26
0
        private void btnNovoRegistro_Click(object sender, EventArgs e)
        {
            if (TabControl1.SelectedIndex == 0)
            {
                TabControl1.SelectTab(1);
            }

            bnMembro.AddNew();
            txtNomeMembro.Enabled  = true;
            txtPapelMembro.Enabled = true;

            txtNomeMembro.Focus();
            btnSalvar.Enabled       = true;
            btnAlterar.Enabled      = false;
            btnNovoRegistro.Enabled = false;
            btnExcluir.Enabled      = false;
            btnCancelar.Enabled     = true;

            bInclusao = true;;
        }
예제 #27
0
        private string SetThemes(string themeName)
        {
            Themes theme = ThemesCollection.Contains(themeName);

            if (theme == null)
            {
                return("This theme is not specified");
            }
            TCDataFiltering.ForeColor = Color.FromName(theme.TextColor);
            TCDataFiltering.BackColor = Color.FromName(theme.BackColor);
            TCSettings.BackColor      = Color.FromName(theme.BackColor);
            TCSettings.ForeColor      = Color.FromName(theme.TextColor);
            TCEmailTemplate.BackColor = Color.FromName(theme.BackColor);
            TCEmailTemplate.ForeColor = Color.FromName(theme.TextColor);
            TCEmail.BackColor         = Color.FromName(theme.BackColor);
            TCEmail.ForeColor         = Color.FromName(theme.TextColor);
            panel1.BackColor          = Color.FromName(theme.TopColor);
            panel1.ForeColor          = Color.FromName(theme.TextColor);

            TabControl1.Update();
            return("Theme is updated");
        }
예제 #28
0
 private void btn2editcust_Click(object sender, EventArgs e)
 {
     TabControl1.SelectTab(0);
 }
예제 #29
0
 public void frmRoom_Load(System.Object sender, System.EventArgs e)
 {
     TabControl1.SelectTab(0);
     display_room();
 }
예제 #30
0
 public void frmGuest_Load(System.Object sender, System.EventArgs e)
 {
     display_guest();
     TabControl1.SelectTab(0);
 }