public AttPass(KeyBody body, UserModel userModel) { _Body = body; _UserModel = userModel; InitializeComponent(); }
public KeyHead(WWiz awiz, UserModel userModel, SafeModel safeModel) { _AWiz = awiz; _UserModel = userModel; _SafeModel = safeModel; InitializeComponent(); }
public WWiz(WPwd wPwd, UserModel userModel, SafeModel safeModel) { _WPwd = wPwd; _UserModel = userModel; _SafeModel = safeModel; InitializeComponent(); }
public ACfg(UserModel userModel) { _UserModel = userModel; InitializeComponent(); this.Icon = Me.Amon.Properties.Resources.Icon; }
public void Init(WWiz aWiz, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel) { _AWiz = aWiz; _UserModel = userModel; _SafeModel = safeModel; _DataModel = dataModel; _ViewModel = viewModel; }
public void Init(WWiz aWiz, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel) { _AWiz = aWiz; _SafeModel = safeModel; _DataModel = dataModel; beanGuid1.Init(aWiz, userModel, safeModel, dataModel, viewModel); beanHead1.Init(aWiz, userModel, safeModel, dataModel, viewModel); beanBody1.Init(aWiz, userModel, safeModel, dataModel, viewModel); }
public void Init(WWiz aWiz, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel) { _AWiz = aWiz; _UserModel = userModel; _SafeModel = safeModel; _DataModel = dataModel; TbName.GotFocus += new EventHandler(TbName_GotFocus); TbMeta.GotFocus += new EventHandler(TbMeta_GotFocus); TbAuto.GotFocus += new EventHandler(TbAuto_GotFocus); }
/// <summary> /// /// </summary> /// <param name="userModel"></param> public SafeModel(UserModel userModel) { _UserModel = userModel; }
public void InitView(UserModel userModel) { _UserModel = userModel; }
public void Init(WPwd wPwd, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel) { _WPwd = wPwd; _UserModel = userModel; _SafeModel = safeModel; _DataModel = dataModel; _ViewModel = viewModel; }
public void Init(WWiz awiz, UserModel userModel, SafeModel safeModel, DataModel dataModel, ViewModel viewModel) { _AWiz = awiz; _UserModel = userModel; _SafeModel = safeModel; _DataModel = dataModel; PbFill.Image = viewModel.GetImage("script-fill-24"); _AWiz.ShowTips(PbFill, "执行脚本"); PbCard.Image = viewModel.GetImage("export-card-24"); _AWiz.ShowTips(PbCard, "导出为卡片"); if (!Directory.Exists("Card")) { return; } EventHandler exportHandler = new EventHandler(ExportCard_Click); XmlDocument doc = new XmlDocument(); ToolStripMenuItem item; XmlNode node; foreach (string cardFile in Directory.GetFiles("Card", "*.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; } } }