当前位置: 首页>>代码示例>>C#>>正文


C# ViewModel.GetImage方法代码示例

本文整理汇总了C#中ViewModel.GetImage方法的典型用法代码示例。如果您正苦于以下问题:C# ViewModel.GetImage方法的具体用法?C# ViewModel.GetImage怎么用?C# ViewModel.GetImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ViewModel的用法示例。


在下文中一共展示了ViewModel.GetImage方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitOnce

        public void InitOnce(TableLayoutPanel grid, ViewModel viewModel)
        {
            _Grid = grid;
            _Style = new RowStyle(SizeType.Absolute, 27F);

            Dock = DockStyle.Fill;

            _Label = new Label();
            _Label.TextAlign = ContentAlignment.MiddleRight;
            _Label.Dock = DockStyle.Fill;

            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtView.Image = viewModel.GetImage("att-file-preview");
            _Body.ShowTips(BtView, "查看文件");
            BtOpen.Image = viewModel.GetImage("att-file-append");
            _Body.ShowTips(BtOpen, "添加文件");

            //BtFill.Image = viewModel.GetImage("att-copy");
            //_Body.ShowTips(BtFill, "复制");
            BtCopy.Image = viewModel.GetImage("script-fill-16");
            _Body.ShowTips(BtCopy, "填充");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:25,代码来源:UcFileAtt.cs

示例2: InitOnce

        public void InitOnce(TableLayoutPanel grid, ViewModel viewModel)
        {
            _Grid = grid;
            _Style = new RowStyle(SizeType.Absolute, 27F);

            Dock = DockStyle.Fill;

            _Label = new Label();
            _Label.TextAlign = ContentAlignment.MiddleRight;
            _Label.Dock = DockStyle.Fill;

            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtFill.Image = viewModel.GetImage("att-data-options");
            _Body.ShowTips(BtFill, "选项");
            BtCopy.Image = viewModel.GetImage("att-copy");
            _Body.ShowTips(BtCopy, "复制");
            BtFill.Image = viewModel.GetImage("script-fill-16");
            _Body.ShowTips(BtFill, "填充");
        }
开发者ID:burstas,项目名称:rmps,代码行数:20,代码来源:AttData.cs

示例3: InitOnce

        public void InitOnce(TableLayoutPanel grid, ViewModel viewModel)
        {
            _Grid = grid;
            _ViewModel = viewModel;
            _Style = new RowStyle(SizeType.Absolute, 27F);

            Dock = DockStyle.Fill;

            _Label = new Label();
            _Label.TextAlign = ContentAlignment.MiddleRight;
            _Label.Dock = DockStyle.Fill;

            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtMod.Image = viewModel.GetImage(TbData.UseSystemPasswordChar ? "att-pass-hide" : "att-pass-show");
            _Body.ShowTips(BtMod, TbData.UseSystemPasswordChar ? "显示口令" : "隐藏口令");
            BtCopy.Image = viewModel.GetImage("att-copy");
            _Body.ShowTips(BtCopy, "复制");
            BtFill.Image = viewModel.GetImage("script-fill-16");
            _Body.ShowTips(BtFill, "填充");
        }
开发者ID:burstas,项目名称:rmps,代码行数:21,代码来源:AttPass.cs

示例4: Init

        public void Init(WPwd wPwd, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel)
        {
            _WPwd = wPwd;
            _UserModel = userModel;
            _SafeModel = safeModel;
            _DataModel = dataModel;
            _ViewModel = viewModel;
            _LastIndex = -1;

            _DataList = new DataTable();
            _DataList.Columns.Add("Order", typeof(string));
            _DataList.Columns.Add("Name", typeof(Att));
            OrderCol.DataPropertyName = "Order";
            ValueCol.DataPropertyName = "Name";
            GvAttList.AutoGenerateColumns = false;
            GvAttList.DataSource = _DataList;

            _CmpList = new Dictionary<int, IAttEditer>(Att.TYPE_SIZE + 2);

            BtFill.Image = _ViewModel.GetImage("script-fill-16");
            _WPwd.ShowTips(BtFill, "填充");

            BtSave.Image = _ViewModel.GetImage("att-save");
            _WPwd.ShowTips(BtSave, "保存属性");

            BtDrop.Image = _ViewModel.GetImage("att-drop");
            _WPwd.ShowTips(BtDrop, "移除属性");
        }
开发者ID:burstas,项目名称:rmps,代码行数:28,代码来源:WPro.cs

示例5: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            this.TbText.GotFocus += new EventHandler(TbName_GotFocus);
            this.DtData.GotFocus += new EventHandler(DtData_GotFocus);

            BtNow.Image = viewModel.GetImage("att-date-now");
            _APro.ShowTips(BtNow, "当前时间");
            BtOpt.Image = viewModel.GetImage("att-date-options");
            _APro.ShowTips(BtOpt, "选项");

            InitSpec(DtData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:12,代码来源:UcDateAtt.cs

示例6: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            _DataModel = dataModel;

            BtOpt.Visible = false;

            TbText.GotFocus += new EventHandler(TbText_GotFocus);
            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtOpt.Image = viewModel.GetImage("att-call-options");
            _APro.ShowTips(BtOpt, "选项");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:14,代码来源:UcCallAtt.cs

示例7: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            _DataModel = dataModel;
            _ViewModel = viewModel;

            TbText.GotFocus += new EventHandler(TbText_GotFocus);
            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtMod.Image = viewModel.GetImage(TbData.UseSystemPasswordChar ? "att-pass-hide" : "att-pass-show");
            _APro.ShowTips(BtMod, TbData.UseSystemPasswordChar ? "显示口令" : "隐藏口令");
            BtGen.Image = viewModel.GetImage("att-pass-gen");
            _APro.ShowTips(BtGen, "生成随机口令");
            BtOpt.Image = viewModel.GetImage("att-pass-options");
            _APro.ShowTips(BtOpt, "选项");

            CmMenu.SuspendLayout();
            _CharLenDef = new ToolStripMenuItem();
            _CharLenDef.Size = new System.Drawing.Size(160, 22);
            _CharLenDef.Text = "默认(&D)";
            _CharLenDef.Click += new EventHandler(MiCharLenDef_Click);
            MuCharLen.DropDownItems.Add(_CharLenDef);

            _CharLenSep = new ToolStripSeparator();
            MuCharLen.DropDownItems.Add(_CharLenSep);

            InitMenu("6", "6", MuCharLen);
            InitMenu("8", "8", MuCharLen);
            InitMenu("10", "10", MuCharLen);
            InitMenu("12", "12", MuCharLen);
            InitMenu("14", "14", MuCharLen);
            InitMenu("16", "16", MuCharLen);

            _CharLenDiy = new ToolStripMenuItem();
            _CharLenDiy.Size = new System.Drawing.Size(160, 22);
            _CharLenDiy.Text = "其它…(&O)";
            _CharLenDiy.Click += new EventHandler(MiCharLenDiy_Click);

            _LastCharLen = _CharLenDef;
            _LastCharLen.Checked = true;

            CmMenu.ResumeLayout(true);

            _CharSetDef = new ToolStripMenuItem();
            _CharSetDef.Size = new System.Drawing.Size(160, 22);
            _CharSetDef.Text = "默认(&D)";
            _CharSetDef.Click += new EventHandler(MiCharSetDef_Click);

            _CharSetSep = new ToolStripSeparator();
        }
开发者ID:burstas,项目名称:rmps,代码行数:49,代码来源:UcPassAtt.cs

示例8: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            _DataModel = dataModel;

            TbText.GotFocus += new EventHandler(TbName_GotFocus);
            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtView.Image = viewModel.GetImage("att-file-preview");
            _APro.ShowTips(BtView, "查看文件");
            BtOpen.Image = viewModel.GetImage("att-file-append");
            _APro.ShowTips(BtOpen, "添加文件");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:14,代码来源:UcFileAtt.cs

示例9: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            TbText.GotFocus += new EventHandler(TText_GotFocus);
            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtOpen.Image = viewModel.GetImage("att-link-open");
            _APro.ShowTips(BtOpen, "打开链接");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:10,代码来源:UcLinkAtt.cs

示例10: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            this.TbText.GotFocus += new EventHandler(TbText_GotFocus);
            this.TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtOpt.Image = viewModel.GetImage("att-data-options");
            _APro.ShowTips(BtOpt, "选项");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:10,代码来源:UcDataAtt.cs

示例11: InitOnce

        public void InitOnce(DataModel dataModel, ViewModel viewModel)
        {
            TbText.GotFocus += new EventHandler(TbText_GotFocus);
            TbData.GotFocus += new EventHandler(TbData_GotFocus);

            BtSend.Image = viewModel.GetImage("att-mail-send");
            _APro.ShowTips(BtSend, "撰写邮件");

            InitSpec(TbData);
        }
开发者ID:burstas,项目名称:rmps,代码行数:10,代码来源:UcMailAtt.cs

示例12: Init

        public void Init(DataModel dataModel, ViewModel viewModel)
        {
            _DataModel = dataModel;

            PbFill.Image = viewModel.GetImage("script-fill-24");
            _AWiz.ShowTips(PbFill, "执行填充脚本");
            PbCard.Image = viewModel.GetImage("export-card-24");
            _AWiz.ShowTips(PbCard, "导出为卡片");

            string path = Path.Combine(_UserModel.SysHome, "Card");
            if (!Directory.Exists(path))
            {
                return;
            }

            EventHandler exportHandler = new EventHandler(ExportCard_Click);

            XmlDocument doc = new XmlDocument();
            ToolStripMenuItem item;
            XmlNode node;
            foreach (string cardFile in Directory.GetFiles(path, "*.acxml"))
            {
                try
                {
                    doc.Load(cardFile);

                    node = doc.SelectSingleNode("/amon/info/name");
                    string name = (node != null ? node.InnerText ?? "未知" : Path.GetFileName(cardFile));
                    node = doc.SelectSingleNode("/amon/info/type");
                    string type = (node != null ? node.InnerText ?? "" : "all").Trim().ToLower();

                    item = new ToolStripMenuItem();
                    item.Text = name;

                    if ("htm" == type)
                    {
                        item.Tag = "htm:" + cardFile;
                        item.Click += exportHandler;
                        CcHtm.DropDownItems.Add(item);
                        continue;
                    }
                    if ("svg" == type)
                    {
                        item.Tag = "svg:" + cardFile;
                        item.Click += exportHandler;
                        CcHtm.DropDownItems.Add(item);
                        continue;
                    }
                    if ("txt" == type)
                    {
                        item.Tag = "txt:" + cardFile;
                        item.Click += exportHandler;
                        CcTxt.DropDownItems.Add(item);
                        continue;
                    }
                    if ("vcf" == type)
                    {
                        item.Tag = "vcf:" + cardFile;
                        item.Click += exportHandler;
                        CcTxt.DropDownItems.Add(item);
                        continue;
                    }
                    if ("png" == type)
                    {
                        item.Tag = "png:" + cardFile;
                        item.Click += exportHandler;
                        CcImg.DropDownItems.Add(item);
                        continue;
                    }
                    if ("qrc" == type)
                    {
                        item.Tag = "qrc:" + cardFile;
                        item.Click += exportHandler;
                        CcImg.DropDownItems.Add(item);
                        continue;
                    }
                    item.Tag = "all:" + cardFile;
                    item.Click += exportHandler;
                    CcAll.DropDownItems.Add(item);
                }
                catch (Exception exp)
                {
                    Main.ShowError(exp);
                    return;
                }
            }
        }
开发者ID:burstas,项目名称:rmps,代码行数:87,代码来源:KeyGuid.cs


注:本文中的ViewModel.GetImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。