コード例 #1
0
        private void SysteConfig_Load(object sender, EventArgs e)
        {
            ConfigurationState state = new ConfigurationState();

            this.checkAutoLogon.Checked  = state.Get(StateKeys.IsAutoLogon) == "1" ? true : false;
            this.checkAutoUpdate.Checked = state.Get(StateKeys.IsAutoUpdate) == "1" ? true : false;
        }
コード例 #2
0
        private void FTPConnection_Load(object sender, EventArgs e)
        {
            ConfigurationState state = new ConfigurationState();

            this.txtAddress.Text = state.Get(ftpAddressKey);
            this.txtPort.Text    = state.Get(ftpPortKey);
            this.txtUid.Text     = state.Get(ftpUidKey);
            this.txtPwd.Text     = state.Get(ftpPwdKey);
        }
コード例 #3
0
ファイル: ProjectRelease.cs プロジェクト: yangyue1943/song
        private void ProjectRelease_Load(object sender, EventArgs e)
        {
            ConfigurationState state        = new ConfigurationState();
            string             fileName     = state.Get(dialogKey);
            string             saveFileName = state.Get(saveDialogKey);
            string             url          = state.Get(urlKey);

            this.selectDialog1.Text = fileName;
            this.dialogExport.Text  = saveFileName;
            string filter = state.Get(filterFileKey);

            this.txtFilterFile.Text = string.IsNullOrEmpty(filter) ? "pdb,old" : filter;
            this.txtUrl.Text        = url;
        }
コード例 #4
0
        private void ModelTree_Load(object sender, EventArgs e)
        {
            IsReloadTree = false;
            DataTable dt = BindProjectList();
            string    id = state.Get("HistoryProjectID");

            //查询项目是否已经删除
            if (!string.IsNullOrEmpty(id))
            {
                if (dt != null)
                {
                    if (dt.Select("ID=" + id).Length > 0)
                    {
                        this.cboProject.SelectedValue = id;
                    }
                }
            }
            object pid = this.cboProject.SelectedValue;

            IsReloadTree = true;
            if (pid != null)
            {
                BindModelTree(pid.ToString());
            }
        }
コード例 #5
0
ファイル: ReleaseFile.cs プロジェクト: yangyue1943/song
        private void UploadFile_Load(object sender, EventArgs e)
        {
            ConfigurationState state = new ConfigurationState();
            string             path  = state.Get(localPathKey);

            this.dialogLocal.Text = path;
        }
コード例 #6
0
        private void FrmAddressBook_Load(object sender, EventArgs e)
        {
            ConfigurationState state    = new ConfigurationState();
            string             fileName = state.Get("AddressBookFileName");

            this.selectDialog.Text = fileName;
        }
コード例 #7
0
ファイル: Logon.cs プロジェクト: yangyue1943/song
        private void Logon_Load(object sender, EventArgs e)
        {
            ConfigurationState state       = new ConfigurationState();
            string             username    = state.Get(StateKeys.UserName);
            string             password    = state.Get(StateKeys.Password);
            string             isAutoLogon = state.Get(StateKeys.IsAutoLogon);

            this.txtUserName.Text         = username;
            this.txtPassWord.Text         = password;
            this.checkBox.Checked         = isAutoLogon == "1" ? true : false;
            this.txtUserName.TextChanged += new EventHandler(txtUserName_TextChanged);
            this.txtPassWord.TextChanged += new EventHandler(txtPassWord_TextChanged);
            this.checkBox.CheckedChanged += new EventHandler(checkBox_CheckedChanged);
            if (this.checkBox.Checked)
            {
                Global.LoadingForm.Show();
                Application.DoEvents();
                CheckLogon();
            }
        }
コード例 #8
0
        private void CodeBuilder_Load(object sender, EventArgs e)
        {
            this.tables.DataBind(TableID);
            ProjectEntity project = Global.GetCurrentProject();

            this.template.TemplateID = project.TemplateID;
            this.template.DataBind();
            ConfigurationState state = new ConfigurationState();

            this.selectDialog.Text = state.Get("CodeBuilderPath");
        }
コード例 #9
0
ファイル: TemplateExport.cs プロジェクト: yangyue1943/song
        private void TemplateExport_Load(object sender, EventArgs e)
        {
            this.template.IsShowExport   = false;
            this.template.IsShowCheckBox = true;
            if (!string.IsNullOrEmpty(TemplateTypeID))
            {
                template.TemplateID = Convert.ToInt32(TemplateTypeID);
            }
            this.template.DataBind();
            ConfigurationState state = new ConfigurationState();
            string             path  = state.Get(exportKey);

            this.selectDialog.Text = path;
        }
コード例 #10
0
ファイル: ProjectRelease.cs プロジェクト: yangyue1943/song
        private void buttonImage1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.selectDialog1.Text))
            {
                return;
            }
            ConfigurationState state    = new ConfigurationState();
            string             fileName = state.Get(dialogKey);

            if (fileName != this.selectDialog1.Text)
            {
                state.Set(dialogKey, this.selectDialog1.Text);
            }
            treeDlls.Nodes.Clear();
            DirectoryInfo rootDir = new DirectoryInfo(this.selectDialog1.Text);

            ShowDirectoryNode(rootDir, null);
            treeDlls.ExpandAll();
        }
コード例 #11
0
ファイル: Program.cs プロジェクト: yangyue1943/song
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ConfigurationState state = new ConfigurationState();
            var isAutoUpdate         = state.Get <bool>(StateKeys.IsAutoUpdate);

            if (isAutoUpdate)
            {
                AutoUpdate();
            }
            Logon logon = new Logon();

            if (logon.ShowDialog() == DialogResult.OK)
            {
                //初始化数据类型
                DataTypeManager.InitMappingConfig();
                //运行主页面
                Application.Run(new Main());
            }
        }
コード例 #12
0
        private void ReaderPdm_Load(object sender, EventArgs e)
        {
            ConfigurationState state = new ConfigurationState();

            this.selectDialog1.Text = state.Get(StateKeys.ReadPdmPath);
        }
コード例 #13
0
ファイル: DbDocument.cs プロジェクト: yangyue1943/song
 private void DbDocument_Load(object sender, EventArgs e)
 {
     this.cboType.DataSource = Enum.GetNames(typeof(DbDocumentType));
     this.selectPath.Text    = config.Get("DbDocumentPath");
 }